News for hackers. Stuff that matters.
Re:This is a fully working chess program with graphics. In 1... by euccastro on Monday September 06, 2010 @12:35PM (#1666938)
for(B=i=y=u=b=i=5-5, [...]

Is there a point in saying 5-5 instead of 0, other than wasting two characters for the fun of it?

Re:This is a fully working chess program with graphics. In 1... by palish on Monday September 06, 2010 @12:51PM (#1666974)
Probably because he wanted to keep 1-letter variable names, and 1024 is more interesting than 1022.
Re:This is a fully working chess program with graphics. In 1... by euccastro on Monday September 06, 2010 @01:44PM (#1667065)
It's 1014, though.
Re:This is a fully working chess program with graphics. In 1... by palish on Monday September 06, 2010 @03:05PM (#1667210)
Okay, then it was to pad the js file to 1024 bytes, because 1024 bytes is more interesting than 1014 bytes.
Re:This is a fully working chess program with graphics. In 1... by DougBTX on Monday September 06, 2010 @02:38PM (#1667149)
Also setting i twice, I'm not sure why.
Re:This is a fully working chess program with graphics. In 1... by bd on Monday September 06, 2010 @03:32PM (#1667252)
It seems the author likes to use variable names to encode messages:

- "Biyubi" looks like his nickname (on his chess site [1] contact mail is "[email protected]")

- there is also "o, S, C, A, R, T, G" which are his first name and surname initials

- and already mentioned "X(c, h, e, s)"

[1] http://nanochess.110mb.com/author.html

Re:This is a fully working chess program with graphics. In 1... by euccastro on Monday September 06, 2010 @03:25PM (#1667236)
Good catch, although that would be easier to discount as an oversight.

[Edit: sibling post explains it.]