Sign Up


JavaScript Logic Game Puzzle

Engineering

Everybody can Add Topics, Everybody can Reply to this Topic.

Add New Topic Category Index Forum Index

Pages: 1 2 Posts: 24
  Saturday, February 27, 2010 at 9:41:53 AM #33738
ColinFiat
ColinFiat
Member
's=ut+1/2at^2'
Level 20
Posts: 666
Submissions: 74
YeN: 176,649,380
Online Now

I was bored and found myself playing those damn kwikgames; SwitchIt to be precise.

One of the levels was being difficult. It needed some extra investigation for which I wrote a quick JavaScript function to test a few patterns. Before I knew it, I'd written 90% of a game.

So here it is.

LINK

Post last edited by ColinFiat on Saturday, February 27, 2010 at 9:42:08 AM

Member Added Image
  Saturday, February 27, 2010 at 1:18:32 PM #33758
Pyro451
Pyro451
Member
'Doesnt play well with others'
Level 19
Posts: 1,166
Submissions: 46
YeN: 145,072,072
Online Now

Shit, I couldn t get pst the first level. I was always left with 2 blicks.

PYRO451 LOVES YOU

Member Added ImageERROR: PYRO451 HATES YOU
  Saturday, February 27, 2010 at 1:23:43 PM #33761
timmydogman
timmydogman
Member
'Senator The Long'
Level 10
Posts: 405
Submissions: 22
YeN: 68,555
Online Now

Ahh, I hate those things.

  Saturday, February 27, 2010 at 2:26:04 PM #33764
teh1337
Removed Account

I got to level 12 before i got bored.
  Saturday, February 27, 2010 at 2:57:42 PM #33786
DeadLazyBum
DeadLazyBum
Site Admin
'> Creeper's Title'
Level 30
Posts: 2,186
Submissions: 127
YeN: 383,000,756
Online Now

I hit 14 and couldn't get it.

Member Added Image
Member Added Image
Member Added Image
Member Added Image
Member Added Image
  Saturday, February 27, 2010 at 8:17:53 PM #33851
ColinFiat
ColinFiat
Member
's=ut+1/2at^2'
Level 20
Posts: 666
Submissions: 74
YeN: 176,649,380
Online Now

Thanks for trying it.

There are only 16 levels. The first 5 are preset as are 15 and 16. The rest are random.

Occasionally a level 10+ pattern will have me clicking away 100 times or more before I solve it.

Post last edited by ColinFiat on Saturday, February 27, 2010 at 8:18:21 PM

Member Added Image
  Saturday, February 27, 2010 at 8:38:37 PM #33855
AE
AE
Exploit Detective
'Accordion Ethiopian'
Level 16
Posts: 693
Submissions: 23
YeN: 57,737,842
Online Now

I'm on the last level and completely stumped.

Member Added Image<--Not Link
Member Added Image<--Link

Member Added Image
  Saturday, February 27, 2010 at 8:42:40 PM #33856
ColinFiat
ColinFiat
Member
's=ut+1/2at^2'
Level 20
Posts: 666
Submissions: 74
YeN: 176,649,380
Online Now

Here's a hint for the last level (which is the whole reason I needed to make myself a tester) "Get stuck = be momentarily random."

Member Added Image
  Saturday, February 27, 2010 at 9:12:57 PM #33864
AE
AE
Exploit Detective
'Accordion Ethiopian'
Level 16
Posts: 693
Submissions: 23
YeN: 57,737,842
Online Now

Finally got it. You should add a conditional statement so it doesn't set up a new board after level 16.

Member Added Image<--Not Link
Member Added Image<--Link

Member Added Image
  Saturday, February 27, 2010 at 9:39:24 PM #33868
ColinFiat
ColinFiat
Member
's=ut+1/2at^2'
Level 20
Posts: 666
Submissions: 74
YeN: 176,649,380
Online Now

I don't expect many people to get past 16 Member Added Image

Member Added Image
  Saturday, February 27, 2010 at 9:42:56 PM #33869
ColinFiat
ColinFiat
Member
's=ut+1/2at^2'
Level 20
Posts: 666
Submissions: 74
YeN: 176,649,380
Online Now

I could include an active mouse timer and finish with a congratulations message letting the player know how much of their life was just wasted.

Oh, I forgot to say congratulations to you. So congratulations; here's some prize money...

Member Added Image
  Saturday, February 27, 2010 at 9:45:50 PM #33871
AE
AE
Exploit Detective
'Accordion Ethiopian'
Level 16
Posts: 693
Submissions: 23
YeN: 57,737,842
Online Now

Quote ColinFiat:
I could include an active mouse timer and finish with a congratulations message letting the player know how much of their life was just wasted.Oh, I forgot to say congratulations to you. So congratulations; here's some prize money...

Awesome, thanks.

Member Added Image<--Not Link
Member Added Image<--Link

Member Added Image
  Monday, March 1, 2010 at 12:32:54 AM #34003
ColinFiat
ColinFiat
Member
's=ut+1/2at^2'
Level 20
Posts: 666
Submissions: 74
YeN: 176,649,380
Online Now

I seem to be taking this a little further than originally planned. There are some partial patterns which occur reasonably often but they are very difficult to solve. eg: two squares; one in each adjacent corner. Or three in a row.

These hard to solve end patterns occur when you've been clicking 40 or more times. Unfortunately, the javascript solver I just wrote is fine for 8 levels if 10 minutes is not too long to wait.

Solver.html

One trick to solving a seemingly random pattern is akin to playing Tetris: Click under each of the black squares in the top row. Then click under each in the second row. Keep going until you are at the last one or two rows. Maybe there is a solvable patten you recognize or, if lucky, it will solve itself.

If this fails, try moving all the black squares up or left/right.

While I have successfully solved an all black board, it was perseverance mixed with intermittent random clicking. The solution was never definitively recorded. Perhaps a VB/Assembly brute force progam will be needed.


Member Added Image
  Monday, March 1, 2010 at 1:24:25 AM #34013
K1LL3RCL0WN
K1LL3RCL0WN
Member
'ASSASSINO!'
Level 14
Posts: 537
Submissions: 66
YeN: 31,704,586
Online Now

Quote:

Shit, I couldn t get pst the first level.

Same here hahaha, I was thinking "hmm this looks really easy! what is colin talking about?" then I clicked it and then it turned into a total mindfuck

Visit and Comment on my Wordpress blog at LINK!!
Thanks!
  Monday, March 1, 2010 at 8:34:36 AM #34034
Coopz
Coopz
Site Admin
'Cup Ma Balls For A Tennar!'
Level 35
Posts: 1,796
Submissions: 113
YeN: 439,508,116
Online Now

I totally didn't get it this morning when I played it for a minute. I've just had another go and suddenly it clicked! I got through level one in about 4 seconds and then romped my way through to level 9 where I am stuck. Have the rules changed? It seems to be leaving blocks where it didn't before! Member Added Image

Member Added Image
Ein Schrei wird zum Himmel fahren, Schneidet sich durch Engelsscharen. "Mein herz brennt, gib mir kraft." Der kalte Mond in voller Pracht hört die Schreie in der Nacht... und kein Engel steigt herab.
  Monday, March 1, 2010 at 8:40:11 AM #34035
ColinFiat
ColinFiat
Member
's=ut+1/2at^2'
Level 20
Posts: 666
Submissions: 74
YeN: 176,649,380
Online Now

Level 9. You are into the 5 click zone - five moves were made for which you need to identify, follow my trick play as suggested above or, if you really need to, try the solver - for those embarrassing moments.

Quote tip:
One trick to solving a seemingly random pattern is akin to playing Tetris: Click under each of the black squares in the top row. Then click under each in the second row. Keep going until you are at the last one or two rows. Maybe there is a solvable patten you recognize or, if lucky, it will solve itself.


Remember, it's random for the middle sections so no on else has seen the same pattern as you have.


Member Added Image
  Monday, March 1, 2010 at 5:17:26 PM #34092
graboid90
graboid90
Member
'peewee fan'
Level 7
Posts: 421
Submissions: 6
YeN: 11,595,418
Online Now

I used to have a game very similar to this on one of those "256 in one" handheld games you used to could get for a few dollars at the local dollar general or alco.

There are three kinds of people in this world. People who make things happen, people who watch things happen, and people who wonder what the hell just happened.
  Friday, March 12, 2010 at 8:06:16 AM #36094
ELECTRICJELLY
ELECTRICJELLY
Member
'What is with my mouse?'
Level 15
Posts: 620
Submissions: 49
YeN: 49,932,688
Online Now

I swear........
Member Added Image
Every thing is owned by Nazis.
Level 16 there btw.

Do A Barrel Roll.
  Friday, March 12, 2010 at 8:12:25 AM #36097
ColinFiat
ColinFiat
Member
's=ut+1/2at^2'
Level 20
Posts: 666
Submissions: 74
YeN: 176,649,380
Online Now

I guess you intended for there to be a screen grab of a swastika randomly made in level 16?

Member Added Image
  Friday, March 12, 2010 at 8:30:33 AM #36098
ELECTRICJELLY
ELECTRICJELLY
Member
'What is with my mouse?'
Level 15
Posts: 620
Submissions: 49
YeN: 49,932,688
Online Now

Yes how did you knowMember Added Image

Do A Barrel Roll.

Pages: 1 2 Posts: 24