https://github.com/greg-kennedy/chessbook
NaNoGenMo 2017 entry
https://github.com/greg-kennedy/chessbook
chess chess-engine generative-text nanogenmo
Last synced: 2 months ago
JSON representation
NaNoGenMo 2017 entry
- Host: GitHub
- URL: https://github.com/greg-kennedy/chessbook
- Owner: greg-kennedy
- License: other
- Created: 2017-11-21T21:58:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-04T21:12:49.000Z (over 4 years ago)
- Last Synced: 2025-02-05T16:47:52.449Z (4 months ago)
- Topics: chess, chess-engine, generative-text, nanogenmo
- Language: Perl
- Size: 139 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# White to Play and Win
A NaNoGenMo 2017 entry by Greg Kennedy, 2017## [Read the novel here.](./sample/novel.md)
## [View the code here.](./main.pl)
## About
This is a novel about Harold and Maude playing a game of Chess. In the game, it is Harold's turn. He is playing the White pieces. Harold considers each possible move, how Maude might respond to each of his plays, and what he may follow up with. The entire thought process is recorded. Essentially, it is a very verbose replay of the Min-Max algorithm, up to 3 ply, and using a form of alpha-beta cutoff to reduce word count to something manageable.## Other
There are other items in this repository that either helped in development, or were useful for testing.* Chess/Engine.pm - This is a non-chatty version of the engine used in generating the novel.
* perft.pl - Testing the move-generation routine. This tool tries each possible position, and counts the "branch" metrics. It can be compared to known perft results to prove correctness of move generation.
* play.pl - Driver program allowing a human to play against the engine!## License
Released under Perl Artistic 2.0, see LICENSE for full details.