horizontal seperators in display

This commit is contained in:
Simon Gardling 2025-01-27 14:48:18 -05:00
parent 83d4a9b507
commit 58b84fa3ac
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -34,6 +34,8 @@ pub struct Board {
impl fmt::Display for Board {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
for i in 0..BOARD_SIZE {
write!(f, "{}\n", "-".repeat(BOARD_SIZE * 2 + 1))?;
write!(f, "|")?;
for j in 0..BOARD_SIZE {
write!(