Commit Graph

6 Commits (9bca4822004a319540bf3e2307053f0f046cc75c)

Author SHA1 Message Date
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 b8ddb0cc58 chess bugfixes 2023-07-06 10:25:48 +02:00
Erik Andresen e5a3dc48f9 Revert "chess: enable emulator"
This reverts commit 3df2f223aa.
2023-07-03 01:43:19 +02:00
Erik Andresen 3df2f223aa chess: enable emulator 2023-07-02 23:17:11 +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