Skip to content

Instantly share code, notes, and snippets.

@amo12937
Created July 3, 2014 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amo12937/963fa0e96bfb934530c8 to your computer and use it in GitHub Desktop.
Save amo12937/963fa0e96bfb934530c8 to your computer and use it in GitHub Desktop.
2048の得点計算方法と理論上の最高得点 ref: http://qiita.com/amoO_O/items/743715e918c87d4c4930
4 8 16 32
512 256 128 64
1024 2048 4096 8192
2^17 2^16 2^15 2^14
[2][ ][ ]
[2][ ][2]
[2][ ][4]
[2][2][4]
[2][4][4]
[2][ ][8]
[ 2][ ][ ]
(中略)
[ 2][ ][ 8] (3 マスあれば、2 だけを使って 8 を作る事ができる)
[ 2][ 2][ 8]
[ 4][ 4][ 8] (ここで 4 出現)
[ 2][ 8][ 8]
[ 2][ 2][16]
4 8 16 32
512 256 128 64
1024 2048 4096 8192
2^17 2^16 2^15 2^14
a[ 3] = 16
a[ 4] = 48
a[ 5] = 128
a[ 6] = 320
a[ 7] = 768
a[ 8] = 1792
a[ 9] = 4096
a[10] = 9216
a[11] = 20480
a[12] = 45056
a[13] = 98304
a[14] = 212992
a[15] = 458752
a[16] = 983040
a[17] = 2097152
+ -60
------------------
3932100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment