Correct me if I'm wrong, but that looks like 388 lines of Python?
Still, very cool. I spent awhile trying to write my own and failed miserably. :)
Still, very cool. I spent awhile trying to write my own and failed miserably. :)
Sidenote: independent from the discussions about the lines I consider it an awesome piece of work. Even in 388 lines it's still much better than what I could deliver.
wget 'https://raw.githubusercontent.com/thomasahle/sunfish/master/sunfish.py'
egrep -v '^$|^ *#' sunfish.py > sustrip.py
wc -l *py
388 sunfish.py
263 sustrip.py
(or: equivalently:) egrep -c '^$|^ *#' sunfish.py
125 #Comments, empty lines
egrep -c '^$|^ *#' sunfish.py -v
263 #Non-empty lines, non-comment lines
I believe the actual chess engine might be 111 lines, though.