Skip to content

rezocrypt/terminal-game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal Game of Life

The Game of Life is a cellular automaton that simulates the behavior of a grid of cells. Each cell can be in one of two states: alive or dead. The game evolves through generations based on a set of rules, creating fascinating patterns and dynamic behaviors. It is a zero-player game, meaning that its evolution is determined solely by the initial configuration, requiring no further input from the player once the simulation starts.

image

Created: 2022

Project Resources

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

You need to have the following things installed on your pc.

  • Install gcc.
  • Install git.

Installation

Here are steps to download, build and install the following software.

  1. Clone the repo
git clone https://github.com/rezocrypt/terminal-game-of-life
  1. Go to the directory
cd terminal-game-of-life
  1. Build the project.
make
  1. Run the project
./GameOfLife

Usage

run ./GameOfLife

Main MENU: 1 - For starting the game 2 - For exiting from game 3 - For help (you will see this) 4 - For changing parameters of game of life model 0 - For going back
1 - For changing height - (write like) 24 2 - For changing width - (write like) 80 3 - For changing alive symbol - (write like) @ 4 - For changing dead symbol - (write like) # 5 - For changing alive cell color - (write like) 3 6 - For changing dead cell color - (write like) 2 7 - For changing rules when cell can born - (write ilke) 234 8 - For changing rules when cell will survive - (write ilke) 234 9 - For changing pattern - (write ilke) 0 9.1 - For changing only RANDOM pattern density - (write ilke) 5000 10 - For changing speed of simulation - (write ilke) 80 5 - Setting some pre-defined models

License

ProjecT codebase is licensed under GNU GPLv3 license. Please refer to the LICENSE.txt file for detailed information.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch
  3. Commit your Changes
  4. Push to the Branch
  5. Open a Pull Request

Top Contributors

  • Rezocrypt - Original author of the project.

Contact

About

The Game of Life is a cellular automaton that simulates the behavior of a grid of cells. Each cell can be in one of two states: alive or dead. The game evolves through generations based on a set of rules, creating fascinating patterns and dynamic behaviors.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors