Skip to main content
Code Review

Return to Question

Commonmark migration
Source Link
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

I improved the script, using standard search methods like expectimax. Now it goes easily to 2048, but not really further, the difference with the highly efficient answer highly efficient answer is that they represent the whole board in an integer, then they can go to further depth in the search (10 million of moves, likely they can go to depth=5). While I can't go above depth=3 (~104 moves) it's already deadly slow with depth=3. I use it only when there is 2 or less free tiles left, and depth=2 with 6 or less free tiles, otherwise, depth=1.

##edit: final version edit: final version

I improved the script, using standard search methods like expectimax. Now it goes easily to 2048, but not really further, the difference with the highly efficient answer is that they represent the whole board in an integer, then they can go to further depth in the search (10 million of moves, likely they can go to depth=5). While I can't go above depth=3 (~104 moves) it's already deadly slow with depth=3. I use it only when there is 2 or less free tiles left, and depth=2 with 6 or less free tiles, otherwise, depth=1.

##edit: final version

I improved the script, using standard search methods like expectimax. Now it goes easily to 2048, but not really further, the difference with the highly efficient answer is that they represent the whole board in an integer, then they can go to further depth in the search (10 million of moves, likely they can go to depth=5). While I can't go above depth=3 (~104 moves) it's already deadly slow with depth=3. I use it only when there is 2 or less free tiles left, and depth=2 with 6 or less free tiles, otherwise, depth=1.

##edit: final version

replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Source Link
added 138 characters in body
Source Link
caub
  • 335
  • 4
  • 9
Loading
added 50 characters in body
Source Link
caub
  • 335
  • 4
  • 9
Loading
added 50 characters in body
Source Link
caub
  • 335
  • 4
  • 9
Loading
deleted 34 characters in body
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238
Loading
Source Link
caub
  • 335
  • 4
  • 9
Loading
default

AltStyle によって変換されたページ (->オリジナル) /