Posts

Showing posts with the label tiny

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.

Javascript Logo interpreter

Online JavaScript Logo interpreter some very beautiful and terse Logo examples The following is one of my favorites from there. Hypercube, by Frank Caggiano, U.S.: repeat 8 [repeat 4 [rt 90 fd 100] bk 100 lt 45] edit: You can also find two simple examples of mine at my repository .