Skip to content

Commit 278f445

Browse files
committed
make occupied cell letter bold
1 parent ad9483f commit 278f445

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/board.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl Display for Board {
139139
let current_pos = i * 3 + j + 1;
140140
return format!("\x1b[2m{}\x1b[0m", current_pos); // dim the color
141141
}
142-
c.to_string()
142+
format!("\x1b[1m{}\x1b[0m", c.to_string()) // if cell is occupied
143143
})
144144
.collect::<Vec<_>>()
145145
.join(" | ")

0 commit comments

Comments
 (0)