Matthew Spillman's
Processing Projects

35

Type a key 1-9 with a square selected to make a move.

This is a two-player implementation of "35", a board game I created. A discussion of general strategy can be found below the rules.
The rules are as follows:

  1. Notice that each square has some squares adjacent to it (including diagonally), called "neighbors". Squares in the middle have 8 neighbors, edge squares have 5 neighbors, and corners have 3. This will be important.
  2. During a player's turn, they may place a number from 1 to 9 in an empty square. That number will (usually) be created in that player's color.
  3. If the sum of the numbers in all of a non-empty square's neighbors equals exactly 35, all of that square's neighbors will become the same color as it. For example, imagine a red 1 is surrounded by two 9s and an 8. If the blue player placed another 9 next to the 1, the sum of the 1's neighbors would be 9+9+8+9 = 35. Therefore, all of those squares would turn red, because the 1 is red.
  4. If a square reaches 35, its empty neighbors will be highlighted in its color.
  5. If an empty square is highlighted in red or blue, any number placed there will automatically be created in the highlighted color. Therefore, if blue placed a number in a red-highlighted square, it would have the same effect as if red had placed the same number.
  6. Empty squares can also reach 35, but nothing will happen until someone places a number there, since the square must be non-empty.
  7. If two squares of opposite colors reach 35 as a result of the same move, no squares change color.
  8. Once there are no empty squares remaining, the player with the most squares of their color wins. If both players have the same number of squares, the game ends in a tie.
Since you win by having more squares of your color and there is only one way to change the color of your opponent's squares, the basic goal of the game is simple. You want to surround your squares with 35, and prevent your opponent from surrounding their squares with 35. Here are a few basic strategies for accomplishing this: This list isn't comprehensive, and most situations don't fit cleanly into one of these strategies. However, hopefully these give an idea of how the game is played and provide a good starting point. The best way to discover new strategies is to play and experiment with new situations.

AAAAAAAAAAAAAAAA