Re:Show HN: An Open Source Number Game
by henrybaxter on Wednesday May 22, 2013 @10:33PM
(#5755022)
Getting a sum of 21 the first time gets you a score, and the second time (since you've already used that sum) it gets you a loss. I think it should make you lose the first time!
Re:Show HN: An Open Source Number Game
by maxmcd on Wednesday May 22, 2013 @10:36PM
(#5755032)
The rules seem to be that it checks if it's an available multiple of 7 first and then if it's invalid. I initially thought the rules would work the way you have described, but if that was the case, would all multiples of 7 and 3 be off limits?
Re:Show HN: An Open Source Number Game
by zsch on Wednesday May 22, 2013 @10:38PM
(#5755034)
That's how it initially was. But I have now made it so that, as you say, it first checks to see if it's a multiple of 7. If it's a multiple of both 7 and 3 (regardless of whether or not you have played it before), then you will no longer be penalized.
Re:Show HN: An Open Source Number Game
by henrybaxter on Wednesday May 22, 2013 @10:49PM
(#5755057)
I think I understand why you decided to do that, but it might be worth an explanation modification. I tested my understanding of the rules by trying 21, and was surprised. Not that it's a big deal!
Re:Show HN: An Open Source Number Game
by ncallaway on Thursday May 23, 2013 @12:12AM
(#5755312)
I would recommend removing "7" from the board at all. The easiest opening move is to just start clicking all the 7s (since that guarantees you all multiples of 7 until you run out of 7s).
This strategy requires 0-thinking and is a bit tedious. If the board has no 7's on it, you're required to add from the get-go.
EDIT: Also, very fun little game. Thanks for sharing!
Re:Show HN: An Open Source Number Game
by pyoung on Thursday May 23, 2013 @02:01AM
(#5755559)
Looks like the cells are randomly populated, so my first attempt, I only had three '7's. I had a ton of '9's so I used the 10-10-9-9-9-9.... strategy to safely get me to a higher score, and then did a little math from there to hit each multiple of 7 on the way up.
Definitely a fun little distraction, I should be working though.
Re:Show HN: An Open Source Number Game
by examancer on Wednesday May 22, 2013 @10:26PM
(#5754997)
Decent game. How is this HTML5 though? The gameplay happens within an HTML table and some simple javascript to turns that table into an interactive game. Seems like something that could have been done with HTML 1.
Re:Show HN: An Open Source Number Game
by zsch on Wednesday May 22, 2013 @09:42PM
(#5754870)
That's a great idea! The trick will be finding a place to display it. Maybe I'll add a button next to the score, and clicking it will reveal an overlay with played numbers.
Re:Show HN: An Open Source Number Game
by Sealy on Wednesday May 22, 2013 @10:20PM
(#5754979)
A button would be good, but it would be even better if it showed up as soon as you played it. It would reduce the number of unnecessary clicks then and become more intuitive to play.
Re:Show HN: An Open Source Number Game
by AldousHaxley on Wednesday May 22, 2013 @09:49PM
(#5754888)
This is fantastic. My only suggestion would be a stronger visual indication of when something gets added to the sum or the score. It probably sounds cosmetic, but visual feedback is helpful for reinforcing text explanations (at least for me, being a more hands-on learner).
Re:Show HN: An Open Source Number Game
by zsch on Wednesday May 22, 2013 @09:51PM
(#5754896)
That makes complete sense. I originally considered making a small noise when the sum was added to the score, though I'm leaning more towards flashing the updated score with a different color. Thank you for the feedback.
Re:Show HN: An Open Source Number Game
by feniv on Thursday May 23, 2013 @01:49AM
(#5755533)
You should polish this up and release it on the app store! It has that perfect mix of fun and challenge to keep you entertained when you're waiting for something and its conveniently easy to pick up and play also.
Re:Show HN: An Open Source Number Game
by city41 on Wednesday May 22, 2013 @10:15PM
(#5754960)
This game is really great. My only complaint is it doesn't make sense that clicking 7 doesn't net you any points, but clicking 3 loses you the game. I'd say 7 should count as a score.
Re:Show HN: An Open Source Number Game
by thelostrobot on Thursday May 23, 2013 @04:17AM
(#5755800)
Nice game. I would suggest a "subtraction" option.
If you click on a number and the sum is neither a multiple of 7 or 3, then how bout you allow the user to click on a selected number again to deselect it and subtract its value from the sum.
Also, cool game thanks for sharing.
This strategy requires 0-thinking and is a bit tedious. If the board has no 7's on it, you're required to add from the get-go.
EDIT: Also, very fun little game. Thanks for sharing!
Definitely a fun little distraction, I should be working though.
not /s
Other than that, looks pretty cool.
EDIT: actually it also seems to not work in Firefox in general after refreshing the page
That carries across games; should it?
(Using Chrome 26.0.1410.65)
EDIT: I looked at the source; you do not reset sumslist.