This commit is contained in:
parent
f2cac2ce4e
commit
4a062c463a
35
README.md
Normal file
35
README.md
Normal file
@ -0,0 +1,35 @@
|
||||
<div style="text-align: center;">
|
||||
|
||||
# Chessboard Tester
|
||||
[](https://drone.pipsquire.com/djweber12/chess_board_sim)
|
||||
|
||||
</div>
|
||||
|
||||
### Background
|
||||
During the Covid pandemic I started a project of building a custom 3d printed chess board. What make's this so special you may ask? This chess board has lights under each of the 64 locations and hall effect sensors to track when peices are picked up and put down. Then using the lights we could light up where peices can move to when they picked up as a way to help new chess players(like my nephew :smile:).
|
||||
|
||||
To take a break from the mechanical board for a second I started working on the software needed, but wanted an easy way to prototype the software without having hardware yet. As such I used SDL to emulate what the game logic would look like.
|
||||
|
||||
The final intent is to pull out all of the emulation code and convert what remains into a library that both this emulator and chessboard firmware can use.
|
||||
|
||||
### Todos
|
||||
- [x] Game logic, including corner cases like casteling, and en passant.
|
||||
- [x] Add [fen strings](https://www.chess.com/terms/fen-chess) to be able to read and set game state.
|
||||
- [x] Lighting up possible moves and detecting errors(cheating)
|
||||
- [ ] Refactor into a library.
|
||||
- [ ] Animating the light up sequences
|
||||
- [ ] Integrate [stockfish](https://github.com/official-stockfish/Stockfish) to be able to play against an AI. Or have the AI recommend movesl.
|
||||
|
||||
### Building & Running
|
||||
```
|
||||
cmake -S ./ -B build/
|
||||
cmake --build build/
|
||||
./build/src/Chess
|
||||
```
|
||||
<div style="text-align: center;">
|
||||
|
||||
[]
|
||||
|
||||
</div>
|
||||
|
||||
|
BIN
docs/screen_cap.gif
Normal file
BIN
docs/screen_cap.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 272 KiB |
Loading…
Reference in New Issue
Block a user