Skip to content

Add dark mode & perspective to Board.Draw() - #49

Merged
CorentinGS merged 1 commit into
CorentinGS:mainfrom
mikeb26:boardDrawDark
Jul 11, 2025
Merged

Add dark mode & perspective to Board.Draw()#49
CorentinGS merged 1 commit into
CorentinGS:mainfrom
mikeb26:boardDrawDark

Conversation

@mikeb26

@mikeb26 mikeb26 commented Jul 10, 2025

Copy link
Copy Markdown
Contributor

This commit adds Board.Draw2(perspective Color, darkMode bool). This is similar to Board.Draw() except that it allows the caller to specify from which perspective to display and whether the display should be reversed colors. (In a terminal window configured with white foreground text and a black background, the current Board.Draw() displays the opposite color).

(cherry picked from commit 2c91017f4920b7de4f3967ea9274f93955826fa6) (cherry picked from commit 820a54f8c17c34550e649e79c144bfefbb004b83) (cherry picked from commit a9b1a03be19d7c1fd236dbb03640c845a05f28d8)

This commit adds Board.Draw2(perspective Color, darkMode bool). This
is similar to Board.Draw() except that it allows the caller to specify
from which perspective to display and whether the display should be
reversed colors. (In a terminal window configured with white foreground
text and a black background, the current Board.Draw() displays the
opposite color).

(cherry picked from commit 2c91017f4920b7de4f3967ea9274f93955826fa6)
(cherry picked from commit 820a54f8c17c34550e649e79c144bfefbb004b83)
(cherry picked from commit a9b1a03be19d7c1fd236dbb03640c845a05f28d8)
@CorentinGS
CorentinGS merged commit af723b5 into CorentinGS:main Jul 11, 2025
6 checks passed
@mikeb26
mikeb26 deleted the boardDrawDark branch July 11, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants