Giter Site home page Giter Site logo

game-of-life's Introduction

The Game of Life

A Javascript / PHP application that runs certain aspects of the Game of Life. The primary goal of the application was to create something that was functional, light-weight and easy to use.

The majority of controls are accessible via both mouse and keyboard, allowing for extremely speedy operations.

What does it do?

  • Property Management
  • Automatic increase / decrease of value over time (configurable)
  • Buying / selling property
  • Buying insurance (four different types)
  • Causing natural disasters (four different types)
  • Two status screens: one for the game players and one for the game master
  • Lottery
  • Configurable ticket price, allowing for easy calculations for the game master
  • Select a winner at any time
  • Chances of winning are not linear

What doesn't it do?

  • Although it deals with money, it doesn't keep track of it. It's up to the game master to give / take currency.

Prerequisites

PHP 5.4 is required. If you want to keep things lean, use the built-in web server.

The Game of Life uses some HTML5 and CSS3 features, so we recommend using the latest version of your web browser of choice.

Initial setup

The Game of Life doesn't come with any data files, but it does come with a set of default property. To write all the needed data files, open up the index and hit the Apocalypse Event button. You must do this at least once.

Once you've done this, you'll want to add users. Edit data/users.json; it's just a JSON array of names.

Running the property service

If you want automatically updating property prices, you'll have to run service.php from the command line. Opening it from the browser is unreliable.

Configuration

Configuration goes in data/config.json. There are currently three configuration values you can change.

  • updateInterval: how often property prices will update (time in seconds)
  • minChange: the lower bound of property price changes (percentage)
  • maxChange: the upper bound of property price changes (percentage)

Configuration changes will not take effect until the property service is restarted.

game-of-life's People

Contributors

clamburger avatar

Watchers

 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.