Giter Club home page Giter Club logo

game-of-life's Introduction

Game of Life Build Status License: GPL v3

Conway's Game of Life with with Test Driven Methodology implementation in Go + SDL

Getting Source

go get -v github.com/hexvalid/game-of-life

Installing and Running

go install -v github.com/hexvalid/game-of-life
$GOPATH/bin/game-of-life

NOTE: go install commands just compile the executable file and move it to $GOPATH/bin destination.

Also pre-built binaries can download from the releases page.

Testing

go test -v github.com/hexvalid/game-of-life

Example output of tests:

=== RUN   TestGamePrint
=== RUN   TestGamePrint/Print_Game_Table_to_Console
1 0 0 
0 1 0 
0 0 1 

--- PASS: TestGamePrint (0.00s)
    --- PASS: TestGamePrint/Print_Game_Table_to_Console (0.00s)
=== RUN   TestGameTableEquality
--- PASS: TestGameTableEquality (0.00s)
=== RUN   TestGameRules
--- PASS: TestGameRules (0.00s)
=== RUN   TestGameRandomize
--- PASS: TestGameRandomize (0.03s)
=== RUN   TestSDL
--- PASS: TestSDL (0.17s)
PASS
ok  	github.com/hexvalid/game-of-life

Tested with Go v1.13.5 and SDL2 v2.0.10 on Gentoo Linux (kernel-5.5.2-r1)

Screenshot

screenshot

License

GNU General Public License v3.0 - see LICENSE file.

game-of-life's People

Contributors

hexvalid 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.