Hacker News new | ask | show | jobs
by deletes 4484 days ago
How does it decide where the new tile will appear, or it just tries every possibility?
1 comments

Trying every possibility was way too slow (branching factor of ~15 to 20), so it only searches the most "annoying" moves, where annoying is defined by lining up with the highest value tiles and not being adjacent to other 2's (or 4's). The game is random though, so it can and does make moves that haven't been searched.