A JavaScript implementation of the "Strike-9" game
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


STRIKE NINE (one player vs. computer)

A JavaScript implementation of "Strike 9".

View live demo

Blog post about some of the game-over array checking

Rules of the Game:

  1. The player has a game board with all numbers from 1-9 visible (inclusive).

  2. The computer rolls two six-sided dice and presents the TOTAL to the player.

  3. The player then may remove ANY combination of one or more numbers from his or her board that add up to TOTAL.

For example, if computer rolls a TOTAL of 9, player can choose to remove any of the following combinations: [9], [1,8], [2,7], [1,2,6], [2,3,4], etc.
4) The numbers so chosen are then permanently removed from play.

  1. Once this is done, the computer rolls again and play continues.

PLAYER WINS if he or she removes all their numbers from the board.

PLAYER LOSES if the computer rolls a total that the player cannot remove with the numbers remaining on their board.