Skip to content

Commit 07c1858

Browse files
committed
mark orientation points bold
1 parent bee58a1 commit 07c1858

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cmd/game/gui.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,13 @@ func (g *Gui) DrawGridToWriter(w io.Writer, cursorRow, cursorCol int) {
8686
case j == 8:
8787
stone = "┤"
8888
default:
89-
stone = g.Grid[i][j].String()
89+
// Mark the center intersection bold if empty
90+
if i == 2 && j == 2 || i == 4 && j == 4 || i == 6 && j == 6 || i == 2 && j == 6 || i == 6 && j == 2 {
91+
92+
stone = "\033[1m" + g.Grid[i][j].String() + "\033[0m"
93+
} else {
94+
stone = g.Grid[i][j].String()
95+
}
9096
}
9197
}
9298
cell := stone

0 commit comments

Comments
 (0)