JavaScript Logic Game Puzzle

Engineering & Innovation

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

Add New Topic Category Index Forum Index
1 2
  Saturday, February 27th, 2010 at 9:41:53 AM #33738
ColinFiat
ColinFiat
Site Admin
'JavaScript'
Level 26
Posts: 1,299
Submissions: 85
ColinFiat is Online

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
Member Added Image
  Saturday, February 27th, 2010 at 1:18:32 PM #33758
Pyro451
Pyro451
Member
'ToO hARdcoRe foR AA'
Level 29
Posts: 1,885
Submissions: 50
Pyro451 is Offline

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 27th, 2010 at 1:23:43 PM #33761
timmydogman
timmydogman
Member
'Senator The Long'
Level 13
Posts: 453
Submissions: 21
timmydogman is Offline

Ahh, I hate those things.

  Saturday, February 27th, 2010 at 2:26:04 PM #33764
teh1337
teh1337
Member
Level 10
Posts: 2,355
teh1337 is Offline

I got to level 12 before i got bored.

I love men.
  Saturday, February 27th, 2010 at 2:57:42 PM #33786
DeadLazyBum
DeadLazyBum
Site Admin
'♥'
Level 33
Posts: 2,921
Submissions: 137
DeadLazyBum is Offline

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 27th, 2010 at 8:17:53 PM #33851
ColinFiat
ColinFiat
Site Admin
'JavaScript'
Level 26
Posts: 1,299
Submissions: 85
ColinFiat is Online

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
Member Added Image
  Saturday, February 27th, 2010 at 8:38:37 PM #33855
AE
AE
Member
'Albino Ethiopian'
Level 19
Posts: 1,013
Submissions: 18
AE is Offline

I'm on the last level and completely stumped.

Member Added Image

is a homo.

Uses [view] tag.
  Saturday, February 27th, 2010 at 8:42:40 PM #33856
ColinFiat
ColinFiat
Site Admin
'JavaScript'
Level 26
Posts: 1,299
Submissions: 85
ColinFiat is Online

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
Member Added Image
  Saturday, February 27th, 2010 at 9:12:57 PM #33864
AE
AE
Member
'Albino Ethiopian'
Level 19
Posts: 1,013
Submissions: 18
AE is Offline

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

Member Added Image

is a homo.

Uses [view] tag.
  Saturday, February 27th, 2010 at 9:39:24 PM #33868
ColinFiat
ColinFiat
Site Admin
'JavaScript'
Level 26
Posts: 1,299
Submissions: 85
ColinFiat is Online

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

Member Added Image
Member Added Image
  Saturday, February 27th, 2010 at 9:42:56 PM #33869
ColinFiat
ColinFiat
Site Admin
'JavaScript'
Level 26
Posts: 1,299
Submissions: 85
ColinFiat is Online

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
Member Added Image
  Saturday, February 27th, 2010 at 9:45:50 PM #33871
AE
AE
Member
'Albino Ethiopian'
Level 19
Posts: 1,013
Submissions: 18
AE is Offline

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

is a homo.

Uses [view] tag.
  Monday, March 1st, 2010 at 12:32:54 AM #34003
ColinFiat
ColinFiat
Site Admin
'JavaScript'
Level 26
Posts: 1,299
Submissions: 85
ColinFiat is Online

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
Member Added Image
  Monday, March 1st, 2010 at 1:24:25 AM #34013
K1LL3RCL0WN
K1LL3RCL0WN
Member
'ASSASSINO!'
Level 14
Posts: 651
Submissions: 62
K1LL3RCL0WN is Offline

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 1st, 2010 at 8:34:36 AM #34034
Coopz
Coopz
Member
'Penis Size: Massive'
Level 35
Posts: 2,397
Submissions: 113
Coopz is Offline

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 1st, 2010 at 8:40:11 AM #34035
ColinFiat
ColinFiat
Site Admin
'JavaScript'
Level 26
Posts: 1,299
Submissions: 85
ColinFiat is Online

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
Member Added Image
  Monday, March 1st, 2010 at 5:17:26 PM #34092
graboid90
graboid90
Soldier
'Bandersnatch'
Level 20
Posts: 798
Submissions: 10
graboid90 is Offline

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.

When there is no more room in hell, the dead will walk the earth.
  Friday, March 12th, 2010 at 8:06:16 AM #36094
ELECTRICJELLY
ELECTRICJELLY
Member
'Keep your cards close to you.'
Level 19
Posts: 1,259
Submissions: 45
ELECTRICJELLY is Offline

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

Hair doesn't grow on balls of steel
  Friday, March 12th, 2010 at 8:12:25 AM #36097
ColinFiat
ColinFiat
Site Admin
'JavaScript'
Level 26
Posts: 1,299
Submissions: 85
ColinFiat is Online

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

Member Added Image
Member Added Image
  Friday, March 12th, 2010 at 8:30:33 AM #36098
ELECTRICJELLY
ELECTRICJELLY
Member
'Keep your cards close to you.'
Level 19
Posts: 1,259
Submissions: 45
ELECTRICJELLY is Offline

Yes how did you knowMember Added Image

Hair doesn't grow on balls of steel
1 2