Commit Graph

7 Commits (b734d700210dcd9472852f05154855ef7c7d84b1)

Author SHA1 Message Date
Erik Andresen cb2a321963 chess: fix typo 2024-02-14 09:12:19 +01:00
Erik Andresen 420fc50c66 chess: buzz/cleanup
Add option to buzz after computer move
2024-02-14 09:00:47 +01:00
Erik Andresen aea3033f52 chess: Use Bangle.setBacklight()
instead of Bangle.setLCDTimeout() to turn off the LCD while the computer is
thinking.
2023-12-14 07:13:03 +01:00
Erik Andresen bcde01f7a5 chess: Disable button when alert is shown 2023-07-06 21:17:09 +02:00
Erik Andresen b8ddb0cc58 chess bugfixes 2023-07-06 10:25:48 +02:00
Erik Andresen 2c4ee723ef chess: minor tweaks 2023-07-03 07:43:38 +02:00
Erik Andresen 560f9e1e53 Added chess game
Human with white and computer with black.

Based on p4wn engine[1]. Computations are rather slow but it works.

Usage: Drag on the touchscreen to move the green cursor onto a piece, select it with a single touch and drag the now red cursor around. Release the piece with another touch to finish the move. The button opens a menu.

[1] https://p4wn.sourceforge.net/
2023-07-02 23:00:43 +02:00