Reformatted

This commit is contained in:
2023-05-26 10:02:22 +02:00
parent b922b808fc
commit cfb3ae497e
7 changed files with 29 additions and 20 deletions

View File

@@ -200,7 +200,8 @@ impl Game {
// None
// }
let map = Map::from_game(self, from);
map.shortest_path(from, to).map(|path| *path.get(1).unwrap_or(&from))
map.shortest_path(from, to)
.map(|path| *path.get(1).unwrap_or(&from))
}
/// Returns true if a full round was played, false if the round aborted because all