Skip to main content

No project description provided

Project description

Game Of Life

Simple way to play Conway's game of life in python.
You can import your own map as json file name "save.json", using get_MAP methode.
All you custom maps (in the save.json file) are available in the list custom_maps.
Two other custom maps are available : my_map_1 and my_map_2.

NOTE : Two artificials borders are created for each map, The first one is visible while playing, it's in black The second one is white (invisible) just after the black border, no cell can born here

Installation

Run the following command to install: $ pip install simple-game-of-life

Usage

for a random map

from simple_game_of_life import GameOfLife
game = GameOfLife(50) 
game.start_animation()

for a custom map

from simple_game_of_life import GameOfLife, maps
from random import choice
game = GameOfLife(custom_map=choice(maps))
game.start_animation()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_game_of_life-0.0.3.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_game_of_life-0.0.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file simple_game_of_life-0.0.3.tar.gz.

File metadata

  • Download URL: simple_game_of_life-0.0.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for simple_game_of_life-0.0.3.tar.gz
Algorithm Hash digest
SHA256 60bd2720e690ad9a239a097ee3b3c66ae47c46ec3bd97c3cbbfcc9028896ecbc
MD5 ab413a3c7857e490e9c653ee6c656f68
BLAKE2b-256 dd479b79fba7665422584801456a8c063ff6c459f4c594ae0197b3275c0ac55d

See more details on using hashes here.

File details

Details for the file simple_game_of_life-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_game_of_life-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 86535121a310b6dc5de175f5ef1614450dd5f70c8aba531640e29453f9beee9c
MD5 666f83a5d05f367336364324486ee390
BLAKE2b-256 4289a6f8aae74594328984406680b0753943eedde652b5a441d5b0adfca56449

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page