GithubHelp home page GithubHelp logo

gameoflifesharp's Introduction

Game Of Life Sharp

Implementation of Conway's Game of Life in C# ported from the Ruby code written in the last session of the Brisbane Code Retreat (CR) on Global Day of Code Retreat 2012. (With Anton)

This port builds on the CR version by allowing the user to navigate around the game world.

How to play

The console application must be provided with the inital game state, this is read from a command line argument and loaded from a file that contains pairs of coordinates for the inital state of the game.

Example

> GameOfLifeSharp -s 100 blinker.gols 

Parameters
    -s , --speed    Specifies the time in milliseconds between game transitions

Controls

q, Q    Quits the game of life
h, H    Returns the viewport to the original view 
Up      Move the viewport up
Down    Move the viewport down
Left    Move the viewport left
Right   Move the viewport right

Game Files

The game state is stored in text files that contain a list of coordinate pairs in natural numbers. The format is relaxed to whitespace. The current game state is written out when the game exits.

Example

0,0 1,0 -1,0
1,1      1,2

Additional whitespace will be ignored, allowing the pairs to be arranged as you like.

gameoflifesharp's People

Contributors

tvjames avatar

Watchers

 avatar  avatar

Forkers

xiannon

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.