Go-boardgame
Go-boardgame is a simple Go package that can be used as the scaffolding to write the game logic for any board or turn based game.
Status
This package is still under active development and may be unstable at this time.
Installation
go get github.com/quibbble/go-boardgame
Packages
Go-boardgame also contains a number of helpful packages that can be optionally used to speed up development:
- bgerr adds helpful error statuses and messages to board games.
- bgn adds a standardized machine-readable notation to board games for easy storage and game recreation.
Examples
Tic-Tac-Toe provides a simple example implementation and is a good place to start.
Below are a few more complex examples of games implemented with this package as well:
Future Plans
Additional resources common to many games such as decks, hands, boards, etc. will be added to the above packages list as time goes on to make writing the logic for these games a far faster process. Any ideas or PRs to improve or add additional features are welcome.