This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// setOps.js MIT License © 2014 James Abney http://github.com/jabney | |
// Set operations union, intersection, symmetric difference, | |
// relative complement, equals. Set operations are fast. | |
(function(so) { | |
'use strict'; | |
var uidList = [], uid; | |
// Create and push the uid identity method. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copy paste in the console, then restart the game (space bar) | |
* | |
* Greedy Algorithm for : http://gabrielecirulli.github.io/2048/ | |
* Plays the game using a naive greedy method. i.e. Local maximum | |
* | |
* Azaan | |
* | |
* --- | |
* Added Simple Heuristics to the algorithm. Tuning ftw! And... it won! |