Implement basic move evaluation

It ain't much but it's honest work
This commit is contained in:
2025-03-05 21:40:20 +01:00
parent d797dc545e
commit f4ac92ff89
3 changed files with 61 additions and 9 deletions

View File

@@ -258,8 +258,8 @@ impl Ui {
format!("Couldn't parse color code {}", color_char)
})?,
) {
Some((source, target)) => {
Ok(format!("{},{}", source, target))
Some(move_) => {
Ok(format!("{},{}", move_.source, move_.target))
}
None => {
Err(format!("No move possible for {}", color_char))