fixup! Add ascii mode: @ print the board using only ascii
This commit is contained in:
parent
cb6ad49e85
commit
27be72f3be
@ -358,7 +358,10 @@ fn start_keyboard_input_thread(
|
||||
let b = bytes.next().unwrap().unwrap();
|
||||
let e = parse_event(b, &mut bytes).unwrap();
|
||||
let is_player_turn = is_player_turn.lock().unwrap();
|
||||
if !*is_player_turn && e != Event::Key(Key::Ctrl('c')) {
|
||||
if !*is_player_turn
|
||||
&& e != Event::Key(Key::Ctrl('c'))
|
||||
&& e != Event::Key(Key::Char('@'))
|
||||
{
|
||||
//ignore input when it's not the client turn
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user