News for hackers. Stuff that matters.
Re:Show HN: Zero – an HTML5 game about modular arithmetic an... by rogeryu on Friday July 17, 2015 @12:25PM (#9903490)
I don't get this game. The explanation is so short and I have no idea what happens next when I click on another number.
Re:Show HN: Zero – an HTML5 game about modular arithmetic an... by bryanbibat on Friday July 17, 2015 @12:42PM (#9903599)
wbhart got the gist of it.

Here's an even longer version of the rules:

Click/tap numbers to connect them to a chain. You can only connect numbers that are at the left, right, top, bottom of the last selected number. As a faster alternative, you can also drag/swipe through the numbers.

When the sum of the chain ends in zero (ie. sum % 10 = 0) you get rewards and side effects depending on whether the chain's length is composite or prime.

- if it's composite (e.g. chain length is 4, 6, or 8 digits long), you gain 2 seconds on your time for each digit connected. However, each digit also gives you a 1 in 4 chance of replacing a digit in the grid with a "blocker", a cell that cannot be selected. - if it's prime (e.g. 2, 3, 5), you only gain 0.5 seconds for each digit, but instead of spawning blockers, each digit now has a 1 in 5 chance of removing a blocker in the grid.

Either way, the point value of the chain is ((sum / 10) ^ 3) * 5.

So connecting 1-2-3-4 gives you 5 points and 8 extra seconds but has 4 chances of spawning blockers. On the other hand, connecting 9-3-8 gives you 40 points, 1.5 extra seconds, and 3 chances to clear blockers.

Game ends when the time runs out. The goal is 1 million points, but the game will not stop you from playing when you reach that point.

Re:Show HN: Zero – an HTML5 game about modular arithmetic an... by wbhart on Friday July 17, 2015 @12:36PM (#9903553)
You just have to click numbers, each next to the previous one. The total modulo 10 is shown. Once it reaches zero, your score is updated. You want that to happen before your time runs out, but you get a higher score if it doesn't happen too soon. When the length of the chain is a prime number, blockers are cleared.