Giter Site home page Giter Site logo

conway-game-of-life's Introduction

Conway-game-of-life

Introduction

Game of Life was devloped by mathematician John Conway. It is a zero player game which simulates life. Populations expand, contract, form clusters and follow periodicity in erratic manner, all in all its beautiful.

The game has been made in Python using Pygame, it is just a bunch of functions clubbed together to make it run.

Ambitions

I originally wanted to do it the Object Oriented way, but in the end I just couldn't figure it out. I also wanted to make it multiplayer and real-time, but when I searched online, I was disheartened as someone had already done it, I still think it would be a good project for OOPS, sockets programming and lot of other interesting concepts.

Steps for Windows

  1. Open cmd or powershell
  2. Enter pip install pygame and run this command. Further instructions https://www.pygame.org/wiki/GettingStarted#Windows%20installation
  3. Type pip install pygame-menu and hit Enter.
  4. Run python trial_game3.py on the cmd.

How to Play the Game

  1. Add consecutives/adjacent cubes anywhere.
  2. Press Spacebar for the next generation. (again and again)

Caution: For starters, play in the middle. Try glider or a vertical of 3 cubes. https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life

Note: Press Spacebar for next generation.

Main Game Menu

Type your name here.

image

Generation 1

image

Generation 2

image

Generation 3

image

Known Issues

  1. The board is finite here, when the blocks reach towards the edges they don't follow the conway rules.
  2. The Play button doesn't resumes the game anymore, its similar to Reset button.
  3. To reset the game, hit Spacebar, after clicking Reset. (as told in the Instructions)

conway-game-of-life's People

Contributors

calra123 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

conway-game-of-life's Issues

Fix 'Play' button

"Play" and "Restart" button don't work properly.
Issue:
Spacebar has to be pressed after Restart to reset the game.

"Play" should "resume" the game, but it resets the game as well.

Automatic Play button

Automatic Play button should be added on the main game screen, so the user doesn't have to press "Spacebar" again again.

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.