mirror of
https://github.com/Noratrieb/minmax.git
synced 2026-01-14 23:35:04 +01:00
nice
This commit is contained in:
parent
2fa7531824
commit
b666c4a0cb
2 changed files with 33 additions and 2 deletions
|
|
@ -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 ")?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue