Skip to content

ManojTGN/GameOfLife.c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gameOfLife.c

This is a Conway's Game of Life implementation written purely in C, designed to run on Windows, Linux, and Unix system's Terminal.

Features

  • Works on Windows, Linux, and Unix terminals.
  • Gradient and with three color visualization for the cells.
  • Interactive controls to manipulate the game in real-time.
  • Pure C implementation with no external dependencies.
  • Supports both UTF8 & NON-UTF8 terminals.

Controls

Key Action
Arrow Keys Move the cursor
W Increase simulation speed
S Decrease simulation speed
A Change color mode
D Advance to the next iteration
C Clear all the cells from sim.
N Creates a new game of life sim.
Space Pause/Resume simulation
Enter Create a life at the cursor
Backspace Delete a life at the cursor
Esc Exit the GameOfLife Simulation

Build and Run

  1. Clone the repository:

    git clone https://github.com/ManojTGN/GameOfLife.c.git
    cd GameOfLife.c
  2. Compile the program:

    mkdir build
    cd build
    
    cmake ..
    cmake --build .

About

game of life simulation in c. #85 coding train challenge.

Topics

Resources

License

Stars

Watchers

Forks