flat assembler
Message board for the users of flat assembler.
Index
> Windows > Simple game. Turn all tiles yellow. |
Author |
|
asmhack 02 May 2008, 17:46
gj thimis
bravo |
|||
02 May 2008, 17:46 |
|
Yardman 02 May 2008, 21:13
[ Post removed by author. ]
Last edited by Yardman on 04 Apr 2012, 03:18; edited 1 time in total |
|||
02 May 2008, 21:13 |
|
Goplat 03 May 2008, 02:20
Only 1 out of every 16 games are actually winnable. The buttons are not "independent" - try pushing any of these combinations:
Code: . X X X | X X . X | X . X X | X X X . X . X . | . . . X | X . . . | . X . X X X . . | X X X . | . X X X | . . X X X . . . | . X . . | . . X . | . . . X |
|||
03 May 2008, 02:20 |
|
AlexP 03 May 2008, 03:58
darn, I could get all but one to go yellow .
|
|||
03 May 2008, 03:58 |
|
rugxulo 03 May 2008, 07:00
Goplat wrote: Only 1 out of every 16 games are actually winnable. The buttons are not "independent" - try pushing any of these combinations: ... And you end up back where you started. This shows that you could do without, for example, all the bottom buttons, by pushing instead all the other buttons in the combination containing it; thus you have only 12 bits of influence (4096 accessible states) rather than the 16 bits one might expect (all 65536 states accessible). And if you are not lucky enough to start in one of the 4096 states that are accessible from the all-tiles-yellow state, then nothing you do can win that game. Could I borrow your brain for a bit? |
|||
03 May 2008, 07:00 |
|
Picnic 03 May 2008, 11:18
Thanks for the nice comments guys.
It needs a bit of luck Yardman, to get a winnable board. Like Goplat says, on a 4x4 board (and also on a 5x5), not all boards are solvable. |
|||
03 May 2008, 11:18 |
|
edfed 03 May 2008, 12:18
AAAAAAAAAAAAAAARRRRRRRggggghhhhhhhhhhhhhhh
this game drives me crazy !!!!!!!!!! |
|||
03 May 2008, 12:18 |
|
bitRAKE 03 May 2008, 15:14
The code is almost flexible enough to change the board size.
Code: _wndw dd 10 + BORDER + (TILEW+BORDER) * COLUMNS _wndh dd 56 + BORDER + (TILEH+BORDER) * ROWS Edit: GetMessage can return -1, and the branch JB (same as JC) is unsigned - the branch will not be taken in cases of error. Using a signed jump JL would work. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
03 May 2008, 15:14 |
|
Picnic 04 May 2008, 10:30
Nice tips bitRAKE, i'm doing some tests now of AdjustWindowRect
|
|||
04 May 2008, 10:30 |
|
MHajduk 04 May 2008, 13:39
What about adding possibility of saving/loading actual state of the game to/from simple TXT file? In this case we would be able to start not from randomly generated board but from the saved one.
|
|||
04 May 2008, 13:39 |
|
Picnic 08 May 2008, 17:12
Hi MHajduk,
I like such features and i surely implement them on future projects |
|||
08 May 2008, 17:12 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.