Code Monkey home page Code Monkey logo

game-of-life's Introduction

Game-of-Life

Implementation of Conway's Game of Life in C. The Game of Life is a classic simulation that demonstrates the emergence of complex patterns from simple rules.

Language

Project date : 2023

Description

Game of Life, is an example of a zero-player “game” known as a cellular automaton. It consists of a two-dimensional world, divided into “cells”. extending infinitely in all directions.

⚠️This project is the result of a common work, made for school with a deadline and we chose to leave it as it was at the time of submission

Rules

The set of rules described by Conway are summarized as:

  1. A living cell will die if it has fewer than two living neighbors. (case of solitude)
  2. A living cell will also die if it has more than three live neighbors. (case of overcrowding)
  3. A living cell will survive if it has exactly two or three living neighbors.
  4. A dead cell will become alive if it has exactly three living neighbors.

Project

Our project is divided into two parts.

  • In part A, named "Implementing Evolution", we will focus on implementing the rules needed to evolve the world from one generation to the next.
  • In part B, named "The World in a File", we will modify the code so that the initial state of the world can be read from a file, and the final state is output to a file.

Resources

  • The header file, lifegame.h was given.
  • Lifegame.c had to be partially completed
  • Lab1a.c and lab1b.c contained empty functions that had to be completed
  • The text file glider.txt was also given

Credits

game-of-life's People

Contributors

mrzouu 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.