flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Heap > 2048

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
sleepsleep



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

2048

i can't win yet, just started to find winning pattern today,

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

any sure win tips?
Post 23 May 2014, 17:22
View user's profile Send private message Reply with quote
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?
Post 23 May 2014, 17:39
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 7032
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.
Post 23 May 2014, 17:54
View user's profile Send private message Reply with quote
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.
Post 25 May 2014, 08:56
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2910
Location: 0x77760000

I kept having all the larger numbers on the bottom left.
Post 25 May 2014, 09:58
View user's profile Send private message Reply with quote
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.
Post 25 May 2014, 10:12
View user's profile Send private message Reply with quote
sleepsleep



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

ya, tasted my first 2048, =) thanks,
i guess i got the idea already, =)

Image
Post 25 May 2014, 19:49
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 7032
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.
Post 30 Jun 2014, 18:28
View user's profile Send private message Reply with quote
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. Wink
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! Smile) <--- 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
Post 01 Jul 2014, 04:40
View user's profile Send private message Reply with quote
sleepsleep



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

Image

and it feels so good.. =)
Post 01 Jul 2014, 04:42
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15484
Location: Front row seats, please

I've seen posted 131072 screenshots. So keep trying.
Post 01 Jul 2014, 08:10
View user's profile Send private message Visit poster's website Reply with quote
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 Shocked what a utter waste of time
Post 01 Jul 2014, 21:18
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 7032
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,
Post 02 Jul 2014, 00:30
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15484
Location: Front row seats, please


nop wrote:
what a utter waste of time

I agree with that. Razz
Post 02 Jul 2014, 01:08
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 7032
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,
Post 03 Jul 2014, 11:16
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 7032
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,

http://gameaboutsquares.com/

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

Image

for level 29, you might want to hit undo after first step, surprise. =)
Post 28 Jul 2014, 05:16
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1171
Location: Unknown

Stupid post removed.


Last edited by HaHaAnonymous on 28 Feb 2015, 18:57; edited 1 time in total
Post 28 Jul 2014, 16:37
View user's profile Send private message Reply with quote
sleepsleep



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

glad you like it, HaHaAnonymous,

btw, i couldn't break level 31, still thinking how to solve it,
Post 29 Jul 2014, 12:53
View user's profile Send private message Reply with quote
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.
Post 16 Aug 2014, 02:24
View user's profile Send private message Reply with quote
sleepsleep



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

wow, thats is awesome score, Tyler!
so far, my highest score still in 80k+
Post 16 Aug 2014, 06:29
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2  Next

< Last Thread | Next Thread >

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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2017, Tomasz Grysztar.