The subject of my current live stream series. A simple chess UI built with Fyne.
Thanks to:
- Chess Go library by Logan Spears github.com/notnil/chess
- Pieces created by Cburnett, accessed from Wikipedia with BSD license. (for example https://commons.wikimedia.org/wiki/File:Chess_kdt45.svg)
Just use the go tools to install on your system and run it.
$ go get github.com/andydotxyz/chess
$ ./chess
To install alongside the other applications on your system use the fyne
tool.
$ go get fyne.io/fyne/v2/cmd/fyne
$ fyne install
- Renders board
- Animate moves
- Polish board and colours etc
- Handle user input
- Drag and drop for moves
- Take turns against a computer player
- Save state and restore on app launch
TODO
- Add game summary info (who to move etc)
- Remove dependency on external algorithm