Skip to content

Conway's Game of Life Kata implemented in multiple languages

License

Notifications You must be signed in to change notification settings

jkratz55/game-of-life-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This repository contains implementations of Conway's Game of Life in various languages. I use this reposiotry to experiment with different programming languages and comparing them.

Current Implementations

  • Java
  • Kotlin
  • Python
  • Groovy
  • Scala
  • C#
  • GOLang
  • Ruby

Proposed Implementations

  • JavaScript
  • C++
  • Swift
  • Haskell
  • Ceylon
  • Clojure
  • Rust

Game of Life Kata

This Kata is about calculating the next generation of Conway’s Game of Life, given any starting state.

You start with a two dimensional grid of cells, where each cell is either alive or dead. In this version of the problem, the grid is finite, and no life can exist off the edges. When calculating the next generation of the grid, follow these rules:

  1. Any live cell with fewer than two live neighbours dies (referred to as underpopulation or exposure).
  2. Any live cell with more than three live neighbours dies (referred to as overpopulation or overcrowding).
  3. Any live cell with two or three live neighbours lives, unchanged, to the next generation.
  4. Any dead cell with exactly three live neighbours will come to life.

The code should allow for the board/world to be created with a valid initial state, or a randomly generated state.

About

Conway's Game of Life Kata implemented in multiple languages

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published