flat assembler
Message board for the users of flat assembler.

 flat assembler > Heap > 2048 Goto page 1, 2  Next
Author
sleepsleep

Joined: 05 Oct 2006
Posts: 8228
Location: ˛　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
i can't win yet, just started to find winning pattern today,

http://gabrielecirulli.github.io/2048/

any sure win tips?
23 May 2014, 17:22
Tyler

Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
I've got 4096 three times. With my technique I can reliably get 2048. Are you sure you want someone to ruin the game by giving you their technique?
23 May 2014, 17:39
sleepsleep

Joined: 05 Oct 2006
Posts: 8228
Location: ˛　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
=) wow..!!
wish to know, if you found out that technique by observing the pattern,
or you really do some math to get that technique.
23 May 2014, 17:54
Tyler

Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
No math. It just seemed the most natural way to keep the board uncluttered. The idea is to keep a pattern such that combinations can easily be made and you can keep clearing out the new 2s and 4s by combining them with what you already have.
25 May 2014, 08:56
typedef

Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
I kept having all the larger numbers on the bottom left.
25 May 2014, 09:58
Tyler

Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Well, if typedef's gonna say it explicitly, I guess I might as well do the same. I fill the top row, ordered highest to lowest left to right, then start the next row in reverse order, and (when the second row becomes full), the third in the same order as the top.

So you get

Code:
```1024 512 256 128
8  16  32  64
4   2   ?   ?
?   ?   ?   ?    ```

This allows easy chaining.
25 May 2014, 10:12
sleepsleep

Joined: 05 Oct 2006
Posts: 8228
Location: ˛　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
ya, tasted my first 2048, =) thanks,
i guess i got the idea already, =)

25 May 2014, 19:49
sleepsleep

Joined: 05 Oct 2006
Posts: 8228
Location: ˛　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
tasted my first 4096 today =)
so next stage is 8192.

now my highest score around 60k already, and it feels so good...

then i thought about a question.

1. is this game infinite loop forever until gamer crash the boxes?

2. what skill is actually needed to solve this 2048 puzzle? common sense? luck? and what kind of concept did i learn by playing this game?

3. could a computer A.I never crash boxes and could run the puzzle and keep on combining forever?

4. is there a mathematical proof, this game could run FOREVER?

i guess, someone should really do a PHD based on above question, dig deep into it and see what treasures inside.
30 Jun 2014, 18:28
sid123

Joined: 30 Jul 2013
Posts: 340
Location: Asia, Singapore
Quote:
1. is this game infinite loop forever until gamer crash the boxes?

I don't think so. If you're using the best of algos, you're still limited to RAM. If you want to store bigger numbers (something like 2^(1024)) you need to use RAM. (provided no processor extensions are assumed).
The game will crash after it has used all the system memory.
If my math goes correct the game will crash on a system with 4GB of RAM while storing a number huge as 2^(1073741824) i.e. a 1073741824 bit large number (provided one word on the system = 4bytes and there is nothing else in the memory except the number! ) <--- Someone needs to confirm that.

_________________
"Those who can make you believe in absurdities can make you commit atrocities" -- Voltaire https://github.com/Benderx2/R3X
XD
01 Jul 2014, 04:40
sleepsleep

Joined: 05 Oct 2006
Posts: 8228
Location: ˛　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699

and it feels so good.. =)
01 Jul 2014, 04:42
revolution
When all else fails, read the source

Joined: 24 Aug 2004
Posts: 16628
I've seen posted 131072 screenshots. So keep trying.
01 Jul 2014, 08:10
nop

Joined: 01 Sep 2008
Posts: 165
Location: right here left there
revolution wrote:
I've seen posted 131072 screenshots. So keep trying.
omg how long would that take what a utter waste of time
01 Jul 2014, 21:18
sleepsleep

Joined: 05 Oct 2006
Posts: 8228
Location: ˛　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
131072, really, how that guy play to that number? i kinda doubt it.
maybe they should make some changes to this game,

after 2,4,8,16,32,64,128,256,512,1024,2048,4096
add a new row at the bottom,
02 Jul 2014, 00:30
revolution
When all else fails, read the source

Joined: 24 Aug 2004
Posts: 16628
nop wrote:
what a utter waste of time
I agree with that.
02 Jul 2014, 01:08
sleepsleep

Joined: 05 Oct 2006
Posts: 8228
Location: ˛　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
actually, i think game could build some sort of personal confidence, and winning or breaking record in a positive way,

but i am still struggle to understand, what skill did i learn by playing this puzzle,
03 Jul 2014, 11:16
sleepsleep

Joined: 05 Oct 2006
Posts: 8228
Location: ˛　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
my highscore is 80k something now, =)

btw,, here a new square game, nice, easier than 2048 =) stages by stages, not rank by difficulty imo,

it was featured in hackernews, ma in level 31 now =)

for level 29, you might want to hit undo after first step, surprise. =)
28 Jul 2014, 05:16
HaHaAnonymous

Joined: 02 Dec 2012
Posts: 1181
Location: Unknown
Stupid post removed.

Last edited by HaHaAnonymous on 28 Feb 2015, 18:57; edited 1 time in total
28 Jul 2014, 16:37
sleepsleep

Joined: 05 Oct 2006
Posts: 8228
Location: ˛　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699

btw, i couldn't break level 31, still thinking how to solve it,
29 Jul 2014, 12:53
Tyler

Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Revolution, does a screenshot with a previous highscore (the number in the bottom right) count? I got 133k, but forgot to get the screenshot.
16 Aug 2014, 02:24
sleepsleep

Joined: 05 Oct 2006
Posts: 8228
Location: ˛　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
wow, thats is awesome score, Tyler!
so far, my highest score still in 80k+
16 Aug 2014, 06:29
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

 Jump to: Select a forum Official----------------AssemblyPeripheria General----------------MainDOSWindowsLinuxUnixMenuetOS Specific----------------MacroinstructionsCompiler InternalsIDE DevelopmentOS ConstructionNon-x86 architecturesHigh Level LanguagesProgramming Language DesignProjects and IdeasExamples and Tutorials Other----------------FeedbackHeapTest Area
Goto page 1, 2  Next

Forum Rules:
 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou can attach files in this forumYou can download files in this forum