summaryrefslogtreecommitdiff
path: root/lib/chessh/ssh/client/game/renderer.ex
diff options
context:
space:
mode:
authorSimponic <elizabeth.hunt@simponic.xyz>2023-01-28 22:56:10 -0700
committerSimponic <elizabeth.hunt@simponic.xyz>2023-01-28 22:56:10 -0700
commit593a631a564926b5b118805b8bea13a753e4757d (patch)
tree3f2a5460eda4ef19142b20386c7dee001f4675b5 /lib/chessh/ssh/client/game/renderer.ex
parentbb66cd91a3e76e9b746750de51b5edd34b5d2259 (diff)
downloadchessh-593a631a564926b5b118805b8bea13a753e4757d.tar.gz
chessh-593a631a564926b5b118805b8bea13a753e4757d.zip
Ensure board is flipped when starting a game as dark, move some constants to environment variables, minor frontend changes:
Diffstat (limited to 'lib/chessh/ssh/client/game/renderer.ex')
-rw-r--r--lib/chessh/ssh/client/game/renderer.ex5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chessh/ssh/client/game/renderer.ex b/lib/chessh/ssh/client/game/renderer.ex
index 17215ea..6d7d7a7 100644
--- a/lib/chessh/ssh/client/game/renderer.ex
+++ b/lib/chessh/ssh/client/game/renderer.ex
@@ -9,9 +9,10 @@ defmodule Chessh.SSH.Client.Game.Renderer do
@tile_width 7
@tile_height 4
- @previous_move_background ANSI.light_yellow_background()
+ @previous_move_background ANSI.light_magenta_background()
@from_select_background ANSI.light_green_background()
- @to_select_background ANSI.light_green_background()
+ @to_select_background ANSI.light_yellow_background()
+
@dark_piece_color ANSI.red()
@light_piece_color ANSI.light_cyan()