Coder Social home page Coder Social logo

game-of-life-fight-to-the-death's Introduction

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

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 conwaylife.com

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.

Options

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

Gameplay

  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"

Thanks

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 conwaylife.com 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.

game-of-life-fight-to-the-death's People

Contributors

serglider avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.