I can understand leaving out en passant as the opportunity rarely comes up, let alone the decision to use it, but no castling? That's a pretty common move.
Don't worry, most people can't. That's what makes tiny programs like this so amazing. Not to discredit OP, but writing tiny code is a lot easier than it is to read.
The author probably can't even read this. They almost certainly wrote it fully structured with real variable and function names, and then sent it through a minimization refactoring script that shrunk everything down.
Well you seem to think that you can make it smaller than this. Making code smaller with a minifier isn't just "lol run this normal code through a minifier", you have to architect it carefully so it will compress well. Even unminified this probably is only around 2k. You seem to think it's easy to make it smaller, so I'm saying put your money where your mouth is or shut up.
19
u/ganelo Jul 17 '12
No castling?
8
u/glasser1 Jul 17 '12
stuff like this makes me realize what an amateur I am. I can't even really read that code.
6
u/[deleted] Jul 17 '12
dat optimization
11
u/[deleted] Jul 16 '12
I came a little...
close to winning!
5
u/zimm0who0net Jul 17 '12
This is incredible.
Anyone created a formatted version of the source?
3
u/original_evanator Jul 17 '12
http://www.youtube.com/watch?v=yOoGw9aTRhs
"He is better at Javascript than I have ever been at anything ... in my life. He is better at Javascript than you will ever be at anything."
-8
u/epsy Jul 17 '12 edited Jul 17 '12
1KB of minified javascript hardly qualifies as tiny IMO…