Nano chess engine at 19 lines
I've minified bkil-open: edu/ai/nanochess.hs to 19 effective lines of code in Haskell, and I'm running out of ideas. The goal was to construct a tiny snippet of code that illustrates a real chess engine instead of the ever boring 8-queens. It still wouldn't fit on a black board properly without further pruning.
At the same time, trivial concurrency has been introduced to bkil-open: edu/ai/minichess.lhs, which seems to give it a linear boost. My next step in the area is to add interaction and eventually introduce a more advanced algorithm like alpha-beta to gain playable speed on a full board with complete rules.
At the same time, trivial concurrency has been introduced to bkil-open: edu/ai/minichess.lhs, which seems to give it a linear boost. My next step in the area is to add interaction and eventually introduce a more advanced algorithm like alpha-beta to gain playable speed on a full board with complete rules.
Comments
Post a Comment