Search

The Joyent Community

A place where the Joyent community can gather, help each other out, and stay informed.

You are not logged in.

#1 2005-12-29 01:33:26

sspencer
New member
From: Los Angeles, California
Registered: 2005-11-10
Posts: 10
Website  Expertise

Jawbreaker - Javascript Game

I only recently discovered Jawbreaker (aka Same Game) on a friends palmtop, and got so addicted I decided to write a version I could play anywhere. The concept is simple. Click on 2 or more of the same colored dots to remove them from the board (first click selects, second click removes). Connect more dots to score more points.

Check it out.

Jawbreaker

-- Steve

Offline

 

#2 2005-12-29 06:35:55

greyfodder
Chief Happiness Officer
From: Los Angeles, CA
Registered: 2004-06-01
Posts: 1208
Website  Expertise

Re: Jawbreaker - Javascript Game

Not bad! Fun game.


I was here when this place was cool.

vc200 - Twitter Extraordinaire

Offline

 

#3 2005-12-29 15:35:24

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3420
Website  Expertise

Re: Jawbreaker - Javascript Game

My best score after few dozens tries was 736. Is that OK?

Offline

 

#4 2005-12-29 21:36:40

sspencer
New member
From: Los Angeles, California
Registered: 2005-11-10
Posts: 10
Website  Expertise

Re: Jawbreaker - Javascript Game

736 is good. Look at the games stats. Site average is 457 and high score is 1510. A lot depends on the original layout of dots.

-- Steve

Offline

 

#5 2006-01-01 04:14:35

mattymcg
Member
From: Melbourne, Australia
Registered: 2004-07-26
Posts: 170
Website  Expertise

Re: Jawbreaker - Javascript Game

This is addictive. Damn you.

Offline

 

#6 2006-01-01 06:23:30

mattymcg
Member
From: Melbourne, Australia
Registered: 2004-07-26
Posts: 170
Website  Expertise

Re: Jawbreaker - Javascript Game

Woo hoo! New record at 1572!

Offline

 

#7 2006-01-01 16:42:16

sspencer
New member
From: Los Angeles, California
Registered: 2005-11-10
Posts: 10
Website  Expertise

Re: Jawbreaker - Javascript Game

mattymcg wrote:

Woo hoo! New record at 1572!


Ahhhh! You beat my high score of 1510. That took me weeks and hundreds of games :-(

For fun, I've added a graph showing the number of games played. The number has really taken off in the last week. Don't know if the search engines discovered it or the increase is from my post in this forum.

www.bigfrog.net/jawbreaker/graph.php

-- Steve

Offline

 

#8 2006-01-01 16:53:28

KevBurns
Member
From: Menlo Park, California
Registered: 2005-12-11
Posts: 60
Website  Expertise

Re: Jawbreaker - Javascript Game

1100


-= Less talk, More code =-

Offline

 

#9 2006-01-02 00:39:43

mattymcg
Member
From: Melbourne, Australia
Registered: 2004-07-26
Posts: 170
Website  Expertise

Re: Jawbreaker - Javascript Game

sspencer wrote:

Ahhhh! You beat my high score of 1510. That took me weeks and hundreds of games :-(


Sorry Steve! 22 games under my belt when I cracked that. The first half of them I couldn't work out why my score was so low when I was getting rid almost all of the discs. Then I realized that the big points come from chaining them together to create a mass exodus of one colour in one hit. I think in that highest score I managed to arrange things so that I got rid of 36 discs with one click.

sspencer wrote:

For fun, I've added a graph showing the number of games played.


I'm assuming this is games completed, not games begun and then abandoned in favour of the hope that the next random assignment will contain an arrangement likely to yield some big numbers. I must confess I've been guilty of that a couple of times...

Offline

 

#10 2006-01-02 18:09:45

sspencer
New member
From: Los Angeles, California
Registered: 2005-11-10
Posts: 10
Website  Expertise

Re: Jawbreaker - Javascript Game

Yep. The number reported is for the games completed. I had it for the games started but then it would be too easy to "game" the system, by just hitting reload everytime instead of New Game.

Offline

 

#11 2006-01-04 09:28:42

mattymcg
Member
From: Melbourne, Australia
Registered: 2004-07-26
Posts: 170
Website  Expertise

Re: Jawbreaker - Javascript Game

Hey Steve would you consider repositioning the "New Game" button away from the "Undo" button? I've misclicked just one too many times...!

Edit: Make that the Undo away from all other buttons! I didn't need to read Help, I was so close to beating my own high score! Arrgh!!! :-D

Last edited by mattymcg (2006-01-04 10:35:44)

Offline

 

#12 2006-01-04 12:35:55

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3420
Website  Expertise

Re: Jawbreaker - Javascript Game

I would suggest that:
1. Multiple Undo
2. Game level.

Offline

 

#13 2006-01-04 17:04:17

sspencer
New member
From: Los Angeles, California
Registered: 2005-11-10
Posts: 10
Website  Expertise

Re: Jawbreaker - Javascript Game

mattymcg wrote:

Hey Steve would you consider repositioning the "New Game" button away from the "Undo" button? I've misclicked just one too many times...!

Edit: Make that the Undo away from all other buttons! I didn't need to read Help, I was so close to beating my own high score! Arrgh!!! :-D


I could space out the New Game button...

But, it's easy to get out of Help and continue playing the same game. Either click on the [X] in the upper right hand corner or click on the Help button again.

-- Steve

Offline

 

#14 2006-01-04 17:07:52

sspencer
New member
From: Los Angeles, California
Registered: 2005-11-10
Posts: 10
Website  Expertise

Re: Jawbreaker - Javascript Game

ngungo wrote:

I would suggest that:
1. Multiple Undo
2. Game level.


Game level could be a bigger board or more (or less) colors. What are you thinking?

All the other versions of Jawbreaker I've seen just have 1 level of undo. I don't know if this is for ease of implementation or just the spirit of the game. So you have a little fudge factor, but not too much.

-- Steve

Offline

 

#15 2006-01-06 12:57:37

mattymcg
Member
From: Melbourne, Australia
Registered: 2004-07-26
Posts: 170
Website  Expertise

Re: Jawbreaker - Javascript Game

sspencer wrote:

I could space out the New Game button...


Thanks for that Steve, much better.

sspencer wrote:

So you have a little fudge factor, but not too much


I agree that one level of undo is best. As much as I've cried and cursed when I've blown a huge score because I tested the water with one option too many and couldn't roll back, that is part of the fun of it.

Offline

 

#16 2006-01-08 07:12:00

mattymcg
Member
From: Melbourne, Australia
Registered: 2004-07-26
Posts: 170
Website  Expertise

Re: Jawbreaker - Javascript Game

Curses! 1,992!! Who on earth got that score?? Is that for real???

Last edited by mattymcg (2006-01-08 07:19:12)

Offline

 

#17 2006-01-08 18:25:29

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3420
Website  Expertise

Re: Jawbreaker - Javascript Game

It's impossible. My highest is 1336. What a shame!

Offline

 

#18 2006-01-08 18:56:21

ILikePi
Member
From: Rhode Island, USA
Registered: 2005-12-06
Posts: 383
Expertise

Re: Jawbreaker - Javascript Game

There is a game like this in the Gnome Games collection called Same Gnome (screenshot). It uses three colors instead of five and is a bit more flashy (i.e. the adjacent colored marbles rotate when you hover your mouse over one of them). It seems a lot easier with three colors than 5... :)

Offline

 

#19 2006-01-12 01:54:32

sspencer
New member
From: Los Angeles, California
Registered: 2005-11-10
Posts: 10
Website  Expertise

Re: Jawbreaker - Javascript Game

mattymcg wrote:

Curses! 1,992!! Who on earth got that score?? Is that for real???


The theoretical high score is 17,492 given every single piece is the same color. The algorithm is (n * (n-1)), so for the 11x12 board, that's 17,292 + 200 bonus for clearing all pieces.

I'm still trying to beat mattymcg's 1572 :-(

Offline

 

#20 2006-01-12 02:01:54

sspencer
New member
From: Los Angeles, California
Registered: 2005-11-10
Posts: 10
Website  Expertise

Re: Jawbreaker - Javascript Game

ILikePi wrote:

There is a game like this in the Gnome Games collection called Same Gnome (screenshot). It uses three colors instead of five and is a bit more flashy (i.e. the adjacent colored marbles rotate when you hover your mouse over one of them). It seems a lot easier with three colors than 5... :)


Same Gnome is a bit more flashy cause it's a real application, not Javascript. But 3 colors is too easy.

I could add options for more (or less) colors and a different board size, but I like the simplicity of the interface. Last night I briefly added a legend that showed the count for each of the different colors, but the screen just got too busy. So for now, the game remains optionless.

Offline

 

#21 2006-01-12 04:34:27

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3420
Website  Expertise

Re: Jawbreaker - Javascript Game

I got up to 1540 this afternoon. Well not too bad!

1. Should not be (11*12)*(11*12-1) + 200 = 17,292 though, because it is true if there is only one color. I thought we have 5 colors randomly arranged.

2. You might consider the time factor into it too. Things like more time will deduct points propotionally with the size of cluster. Or something like that.

Offline

 

#22 2006-01-12 13:19:57

mattymcg
Member
From: Melbourne, Australia
Registered: 2004-07-26
Posts: 170
Website  Expertise

Re: Jawbreaker - Javascript Game

sspencer wrote:

Last night I briefly added a legend that showed the count for each of the different colors, but the screen just got too busy.


I would definitely make use of such a stats table, and keep on hitting new game until I got the right spread. And then I'd wonder if it was such a good idea while I became more and more obsessed with getting the perfect spread.

Here's why it has such an impact on the result: I did some maths on that current high score (not that I'm bitter or anything! :), and discovered that to get a score like that is almost impossible. I say almost because I doubt that someone would be bothered fudging some JavaScript app to artificially send a score, as I'm sure that is possible if one could be bothered. But assuming it is legit, then the score for removing one batch of connecting discs follows the formula y = x^2 - x. These are the scores for your one main wipe-out:

38 - 1406
39 - 1482
40 - 1560
41 - 1640
42 - 1722
43 - 1806

Of course in order to line things up just how you want them, you will probably remove a block of 4 here, or 5 there. A few blocks of two. But one can assume that no more than 200 points would contribute to your overall score.

Now for most random spreads, there isn't even that many of one colour on the board, let alone being arranged so as to be able to connect them all. So what chance do any of us have at beating it? Well, you keep hitting "New Game" ad finitum, until you get that perfect spread where 42 discs are practically lined up to touch each other, and the other discs are clumped together above them all.

i.e. Next to none.

Last edited by mattymcg (2006-01-12 13:21:11)

Offline

 

#23 2006-01-13 08:56:20

mattymcg
Member
From: Melbourne, Australia
Registered: 2004-07-26
Posts: 170
Website  Expertise

Re: Jawbreaker - Javascript Game

By the way, I'd hate my last post to end with a whining tone. The game is freaking awesome Steve, thankyou for porting it!

Offline

 

#24 2006-01-15 15:56:48

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3420
Website  Expertise

Re: Jawbreaker - Javascript Game

Offline

 

#25 2006-01-16 01:39:44

Hans
VC 61
From: New York, NY
Registered: 2004-06-01
Posts: 1650
Website  Expertise

Re: Jawbreaker - Javascript Game

Yay for not using flash.

Boo for, well, me sucking at it. I can't get higher than 270. :(


It is not the fall that kills you. It's the sudden stop at the end. -DNA
Lumilux - A Photoblog

Offline

 

#26 2006-01-16 11:38:20

mattymcg
Member
From: Melbourne, Australia
Registered: 2004-07-26
Posts: 170
Website  Expertise

Re: Jawbreaker - Javascript Game

ngungo wrote:

Just want to shar?


Dammit, just when I was finally shaking my addiction, and you throw a glimmer of hope my way that it might be possible to reach the unobtainable.

By the way ever since I blogged about it I've gotten my friends and family hooked on Jawbreaker. My mum never plays computer games and she's wittling away hours on it.

Oh, and if you have any strategy tips please post them ngungo!

Last edited by mattymcg (2006-01-16 11:39:10)

Offline

 

#27 2006-01-16 12:41:35

nardo
Member
Registered: 2004-06-05
Posts: 283
Expertise

Re: Jawbreaker - Javascript Game

my girl's best is 1,356 - mine only in the 800s

great work sspencer

Offline

 

#28 2006-01-16 16:33:01

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3420
Website  Expertise

Re: Jawbreaker - Javascript Game

mattymcg wrote:

Oh, and if you have any strategy tips please post them ngungo!


High scored games were most likely depends on good initial setup, i.e. you need to have at least 40 of the same color, which is statistically very rare.

Offline

 

#29 2006-01-19 03:41:19

sspencer
New member
From: Los Angeles, California
Registered: 2005-11-10
Posts: 10
Website  Expertise

Re: Jawbreaker - Javascript Game

ngungo wrote:

mattymcg wrote:

Oh, and if you have any strategy tips please post them ngungo!


High scored games were most likely depends on good initial setup, i.e. you need to have at least 40 of the same color, which is statistically very rare.


New feature added ... now show the different colors and their respective counts. So you can rapidly cycle thru game boards until you have a 40+.

Also, now show Top 5 scores in game stats.

Question. I'm thinking of adding a feature that requests your name when you get a high score, so we know who's the champ. But if I'm to add this, I'm going to wipe out all the current high scores. Is it OK to wipe out all the current high scores?

Thanks,

Steve

Offline

 

#30 2006-01-19 04:03:00

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3420
Website  Expertise

Re: Jawbreaker - Javascript Game

sspencer wrote:

Also, now show Top 5 scores in game stats.


Just want to brag. Two 1824s are mine.

Offline

 

#31 2006-01-19 04:05:19

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3420
Website  Expertise

Re: Jawbreaker - Javascript Game

sspencer wrote:

Question. I'm thinking of adding a feature that requests your name when you get a high score, so we know who's the champ. But if I'm to add this, I'm going to wipe out all the current high scores. Is it OK to wipe out all the current high scores?


I think it's OK. Keep it static or offsite.

Offline

 

#32 2006-01-19 04:21:50

Boogenstein
Title deleted
From: Wausau, Wisconsin, USA.
Registered: 2004-06-02
Posts: 1446
Website  Expertise

Re: Jawbreaker - Javascript Game

I don't know how you do it ngungo, my best score was 656 and I cleared them all!


I already drank the answer

Offline

 

#33 2006-01-19 20:57:45

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3420
Website  Expertise

Re: Jawbreaker - Javascript Game

sspencer,

Sorry to see Mixed Grill overshadows your Jawbreaker. :) Well, they are not chopped liver either, right?

Offline

 

#34 2006-01-20 03:51:14

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3420
Website  Expertise

Re: Jawbreaker - Javascript Game

Offline

 

#35 2006-01-20 15:32:36

ILikePi
Member
From: Rhode Island, USA
Registered: 2005-12-06
Posts: 383
Expertise

Re: Jawbreaker - Javascript Game

jeez...and how many times did you hit the "New Game" button to get those stats? number of New Games should be a stat in itself... ;P

Offline

 

#36 2006-01-20 16:09:53

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3420
Website  Expertise

Re: Jawbreaker - Javascript Game

True. But ... everyone strides for the stats-listerd.

Offline

 

#37 2006-01-20 16:15:42

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3420
Website  Expertise

Re: Jawbreaker - Javascript Game

And you know what? I spend too much time for it. I need to stop this addiction.

Offline

 

#38 2006-02-25 02:32:19

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3420
Website  Expertise

Re: Jawbreaker - Javascript Game

sspencer,

There is something strange in the scoreboard.

I was champ twice. Once was posted in here ealier, and once just about a week ago this afternoon.

But if you look at my personal score there was not a 2130 in there; and now with a new champion of 2484, where is my score of 2310?

Cry wolf!!!

Offline

 

#39 2006-02-25 10:17:55

red.rooster
New member
From: B.C. Canada
Registered: 2006-02-25
Posts: 1
Expertise

Re: Jawbreaker - Javascript Game

Hi,

i don't know where your scores went, but the number of games played overall seems to be broken, too. For me it shows 90.950 games played.

New record was mine, there were 49 red balls. Cleared 44 or 45 at once, with only 4 balls left at the end. Took me almost 3 hours...

red.rooster

Offline

 

#40 2006-02-25 11:24:57

ngungo
a monpageur
Registered: 2004-06-01
Posts: 3420
Website  Expertise

Re: Jawbreaker - Javascript Game

Congrats! red.rooster
The champion is well deserved.

Mine was the co-effort of the family team :)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson