International Obfuscated C Code Contest: Difference between revisions

Content deleted Content added
Graxwell (talk | contribs)
Tags: Mobile edit Mobile web edit
m Fixing bare references Wikipedia:Bare_URLs
Line 74:
''Toledo Nanochess'' is a [[chess engine]] created by Mexican software developer Oscar Toledo Gutiérrez, a five-time winner of the IOCCC. In accordance with IOCCC rules, it is 1255 characters long. The author claims that it is the world's smallest chess program written in C.
 
The source code for ''Toledo Nanochess'' and other engines is available.<ref>[{{cite web| url = http://www.nanochess.org/chess3.html| title = Toledo Nanochess and Toledo Picochess]}}</ref>
Because ''Toledo Nanochess'' is based on Toledo's winning entry from the 18th IOCCC (Best Game<ref>[{{cite web| url = http://www.ioccc.org/2005/whowon.html| title = Who won the 18th IOCCC]}}</ref>), it is heavily [[obfuscated code|obfuscated]].<ref>[{{cite web| url = https://github.com/bormand/nanochess| title = Nanochess partially de-obfuscated version]}}</ref>
 
On February 2, 2014, the author published the book ''Toledo Nanochess: The commented source code'', which contains the fully commented source code.<ref>{{Cite book|title=Toledo Nanochess: The commented source code|isbn=978-1-304-86437-6|first=Oscar|last=Toledo Gutiérrez|year=2014|publisher=[[Lulu (company)|Lulu]]}}</ref>
 
As of February 7, 2010, it appears to be one of only two chess engines written in less than 2 kilobytes of C that are able to play full legal chess moves, along with ''Micro-Max'' by Dutch physicist H. G. Muller. In 2014 the 1 kilobyte barrier was broken by ''Super Micro Chess''<ref>http://smmax.sourceforge.net/</ref> – a derivative of Micro-Max – totaling 760 characters (spaces and newlines included).<ref>[{{cite web| url = http://downloads.sourceforge.net/project/smmax/sm-fide%20760.c| title = Super Micro FIDE 760]}}</ref> There is also a smaller version of Toledo's engine, the ''Toledo Picochess'', consisting of 944 non-blank characters.
 
'''Source code excerpt'''