Deobfuscation of the Toledo Javascript Chess
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 5 commits ahead of bormand:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Bormand did a really great job deobfuscating the Toledo Javascript Chess Game, but I wanted to take it a step further and refactored all the global variables to more clearly reflect their usage.

File toledo_javascript_chess_3.html was chosen because it does not require external images.

See project's wiki for some info on the board:

Original source code borrowed from this site:

modularized1 was my first attempt at making a requirejs AMD module out of the code using a "class" But for some reason some variables are not updated properly and it is not working right. So I restarted the attempt staying closer to the original code.

And that is: modularized2 This works right as far as I can tell.

The idea here is to separate the logic from the presentation and make the AI reusable.