Add serialization to String

This commit is contained in:
2021-12-05 18:14:16 +01:00
parent 4f3469b3e3
commit 57931b29de
3 changed files with 68 additions and 19 deletions

View File

@@ -1,17 +1,7 @@
mod board;
mod ui;
fn main() {
println!(
"{}",
match board::Board::new()
.get_at(&board::Position::new(board::Rank::_2, board::File::A))
{
Some(piece) => "Some",
None => "None",
}
);
// reset -> (ok/fail)
// get_state -> (ok/fail),state
// get_moves,position,[state] -> (ok/fail),position[]
// make_move,[move],[state] -> (ok/fail),state
let board = board::Board::new();
println!("{}", board.to_string());
}