Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Game ofLife: Fight To The Death

This is an entry for the Js13kGames competition - 2014: it's yet another view on the classic John Conway's game based on my entry for the JS1K competition - 2014.

Update: The game is submitted and accepted on Js13kGames. So you can try it here.


Game Of Life: Fight To The Death is yet another view on the classic John Conway's game/model. If you know nothing about classics please read the Wikipedia article and if you want to extend your knowledge and get inspired please visit awesome

The main added feature of this version is that you have two tribes of the living cells. These two tribes will fight each other to the death after you set a battle field. Well, actually not necessarily to the death, because you can limit number of generation to pass. Please read on to learn what else you can configurate.


Please, don't forget to click the "Apply configuration" button to actually apply configuration. Note that you'll start with an empty battlefield in this case.

  • Number of columns - select this and the number of rows will be calculated automatically based on you browser window size.
  • Population density - select the maximal population density allowed for you and your rivals. The exact max allowed number of living cells will be presented to you too.
  • Set both tribes - you have the ability to set battlefields for the both tribes. Otherwise the script will fill the left pane randomly by green tribe cells. The script will use the max allowed number of living cells
  • Perform checking - if this option is chosen the script will check every 25 generations the following:
    1. if there are no living cells at all
    2. if just one tribe's cells left
    3. if there is stable situation
    4. if there is "blinking" battlefield and this blink has a period of two
    If any of these is true - the game will stop and you will be presented with results


  1. Set preferred options.
  2. Set position of living cells by clicking or dragging over the battlefield. Note that you can't exceed the max allowed amount of cells. At any time you can empty your battlefield by clicking the Reset button.
  3. Hit the Start button to open the left pane. Do you work if you chose to rule both tribes.
  4. When you're done you have two options:
    1. Start automatic generations passing by pressing the spacebar. To stop - hit it one more time.
    2. See next generation by pressing any keyboard arrow.
    3. You can mix the two previous ways to continue.
  5. If game is over and you enjoyed its results you can get back to the initial position by pressing "Esc"


I hope all the nerds, math lovers and Conway's game funs will enjoy this game. I'm planning to improve the game and advance it beyond 13k limitations: add multiplayer, ability to load patterns from and plenty of other features. So I'm eager to hear from you: feedback, suggestions, etc. Just drop a line to @sergonaut on Twiiter or seglider on GitHub. Thanks.

You can’t perform that action at this time.