2 ms·
No: wget 'https://raw.githubusercontent.com/thomasahle/sunfish/master/sunfish.py' egrep -v '^$|^ *#' sunfish.py > sustrip.py wc -l *py 388
by e12e 12y ago
No:
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.