The game of life emulator
Project description
The Game of life Emulator
The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves. It is Turing complete and can simulate a universal constructor or any other Turing machine.
More information on wikipedia: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
This emulator is created by parsa shahmaleki. (c) 2020 parsa shahmaleki parsampsh@gmail.com Licensed Under GPL-v3
Cli Usage: python3 -m gameoflife --option1=value --option2=value ...
Code Usage: gol = GameOfLife(option1=value, option2=value...) gol.start()
Options: you can customize the emulator using this options
`width` width of the world. default: width of the terminal
`height` hegith of the world. default: height of the terminal
`live_char` symbol of the live cell. default: `+`
`dead_char` symbol of the dead cell. default: ` `
`sleep_time` sleep time between world frames(secounds). default: `0.05`
`border_char` the world border chars. default: `#`
`title` a title of the head of the world. default: `Conway's Game of life`
`random_har` how much initialized live cells. every more means harder. default: `3`
Cli Example: gameoflife --width=100 --height=40 --live_char='@' --sleep_time=0.2 --title='my gameoflife'
Code Example: GameOfLife(width=100, live_char='@' sleep_time=0.2, title="something").start()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gameoflifeemulator-0.0.1.tar.gz
.
File metadata
- Download URL: gameoflifeemulator-0.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e8cc2efeed81d4a5941aec44f1532e1f948269c8518943cd1b0edd2a4439b6d |
|
MD5 | 93536b7b38fd4a4dcc309163bb521819 |
|
BLAKE2b-256 | fd3b5fdb1a4ed47dce3b42d92604d00d80e043d7859c35eb2a86c5f6ef348410 |
File details
Details for the file gameoflifeemulator-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: gameoflifeemulator-0.0.1-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32cbb14741dfc29bb66017bdb9532dc7940966a7898a7b89eb602eae3df67fd3 |
|
MD5 | 67a295f88a59ccf07082a87274b274f4 |
|
BLAKE2b-256 | 4052f5c65146a2a5794c9667ef16158db81a860806072f8fa49d8655414aba6b |