use std::io::stdin;
use chess::{ChessMove, Board};
use method_shorthands::methods::*;
use super::{Player, get_move_from_input};
#[derive(Debug, Clone, Copy, PartialEq, Default)]
pub struct Local;
impl Player for Local {
fn get_move(_: Board, _: usize, _: u64) -> Result<ChessMove, ()> {
let mut input = String::new();
stdin().read_line(&mut input).uw();
if input.trim().to_uppercase() == "!QUIT" { panic!("Program terminated."); }
get_move_from_input(input)
}
}