Re:2048
by jsmthrowaway on Tuesday March 11, 2014 @12:59AM
(#7377521)
This is inaccurate, because you have a 10% chance of getting a 4 tile added instead of a 2. That part makes the game tricky, because otherwise you could optimize every solution like an algorithm without ever losing.
https://github.com/gabrielecirulli/2048/blob/master/js/game_...
[ Parent
| on HN ]