summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-01-10 23:50:19 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2020-01-10 23:50:19 -0500
commit42e7425f98abf04ff770c7ad51b5494a6dfc6238 (patch)
tree21a522ebe9a65de01b52603c5e18318630c15a0f
parent9fdf6f47ef19f354586361ad2ad9ae3acd8f6419 (diff)
Cool new colors for the target board
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index 1dbef92..7258e17 100644
--- a/main.go
+++ b/main.go
@@ -286,12 +286,12 @@ func RedrawTarget(plyr *player, table *tv.Table) {
table.Clear()
for r := 0; r < 11; r++ {
for c := 0; c < 11; c++ {
- color, selectable := tc.ColorDarkBlue, true
+ color, selectable := tc.ColorDarkCyan, true
if r < 1 || c < 1 {
color, selectable = tc.ColorPurple, false
}
- if boardData[r*11+c] != `~` {
- selectable = false
+ if boardData[r*11+c] != `~` && !(r < 1 || c < 1) {
+ selectable, color = false, tc.ColorRed
}
table.SetCell(r, c,
tv.NewTableCell(boardData[r*11+c]).