Code Monkey home page Code Monkey logo

conway-s-game-of-life's Introduction

Conway's Game of Life

This project implements Conway's Game of Life using React and Redux Toolkit. It allows users to create and switch between multiple grids, with each grid representing a separate instance of the game.

Features

  • Multiple Grids: Users can create and switch between multiple grids, each with its own configuration and state.
  • Start/Stop Simulation: Users can start and stop the simulation of each grid independently.
  • Cell Interaction: Users can interact with cells by clicking to toggle their state.
  • Randomize Grid: Users can randomize the grid to create initial configurations.

Getting Started

To run the project locally, follow these steps:

  1. Clone the repository:

  2. Install dependencies:

  3. Start the development server:

  4. Open your browser and navigate to http://localhost:3000 to view the application.

Usage

  • Click the "Add Grid" button to create a new grid.
  • Click on a grid in the Dashboard to select it.
  • Use the "Start" and "Stop" buttons to control the simulation of the selected grid.
  • Click on cells in the grid to toggle their state.
  • Use the "Randomize" button to randomly populate the grid with initial cell states.

Technologies Used

  • React: JavaScript library for building user interfaces
  • Redux Toolkit: State management library for managing application state
  • Immer: Library for working with immutable data structures

Project Structure

The project follows a folder structure for better organization:

Sure! Here's a basic README.md template for your project:

markdown Copy code

Conway's Game of Life

This project implements Conway's Game of Life using React and Redux Toolkit. It allows users to create and switch between multiple grids, with each grid representing a separate instance of the game.

Features

  • Multiple Grids: Users can create and switch between multiple grids, each with its own configuration and state.
  • Start/Stop Simulation: Users can start and stop the simulation of each grid independently.
  • Cell Interaction: Users can interact with cells by clicking to toggle their state.
  • Randomize Grid: Users can randomize the grid to create initial configurations.

Getting Started

To run the project locally, follow these steps:

  1. Clone the repository:

git clone https://github.com/your-username/conways-game-of-life.git

markdown Copy code

  1. Install dependencies:

cd conways-game-of-life npm install

markdown Copy code

  1. Start the development server:

npm start

vbnet Copy code

  1. Open your browser and navigate to http://localhost:3000 to view the application.

Usage

  • Click the "Add Grid" button to create a new grid.
  • Click on a grid in the Dashboard to select it.
  • Use the "Start" and "Stop" buttons to control the simulation of the selected grid.
  • Click on cells in the grid to toggle their state.
  • Use the "Randomize" button to randomly populate the grid with initial cell states.

Technologies Used

  • React: JavaScript library for building user interfaces
  • Redux Toolkit: State management library for managing application state
  • Immer: Library for working with immutable data structures

Project Structure

The project follows a folder structure for better organization:

src/ |-- components/ | |-- GameOfLife.js |-- features/ | |-- grids/ | |-- gridsSlice.js |-- store/ | |-- store.js |-- index.js

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

conway-s-game-of-life's People

Contributors

chetancs00 avatar

Watchers

 avatar

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.