Implement std::fmt::Display for board

This commit is contained in:
2021-12-11 17:59:22 +01:00
parent 7143427dd2
commit f8c7323b47
2 changed files with 30 additions and 36 deletions

View File

@@ -11,7 +11,7 @@ fn main() -> Result<(), ()> {
match input_lines.next() {
None => break Ok(()),
Some(line) => match &line.unwrap()[..] {
"get_state" => println!("{}", board.to_string()),
"get_state" => println!("{}", board),
_ => break Err(()),
},
}