From 58b84fa3aca599cc13538878df0faf4b130c9e11 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Mon, 27 Jan 2025 14:48:18 -0500 Subject: [PATCH] horizontal seperators in display --- src/repr.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/repr.rs b/src/repr.rs index 5325696..6e1085a 100644 --- a/src/repr.rs +++ b/src/repr.rs @@ -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!(