This commit is contained in:
nora 2022-10-31 14:43:18 +01:00
parent 2fa7531824
commit b666c4a0cb
No known key found for this signature in database
2 changed files with 33 additions and 2 deletions

View file

@ -127,10 +127,10 @@ impl Display for Board {
let index = i * 3 + j;
match self.get(index) {
Some(player) => {
write!(f, "\x1B[1m{player}\x1B[0m ")?;
write!(f, "\x1B[33m{player}\x1B[0m ")?;
}
None => {
write!(f, "\x1B[37m{index}\x1B[0m ")?;
write!(f, "\x1B[35m{index}\x1B[0m ")?;
}
}
}