Skip to content

vadimv/rsp-game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

Game of Life as a Java server-state web application.

Usage

This project requires Java 11 or newer.

$ mvn clean package

$ java -Drsp.log.level=info -jar ./target/rsp-game-of-life-0.1-SNAPSHOT-jar-with-dependencies.jar

Navigate the browser to http://localhost:8080.

Screenshot

Rules

  • Survivals. Every cell with two or three neighboring counters survives for the next generation.
  • Deaths. Each cell with four or more neighbors dies (is removed) from overpopulation. Every cell with one neighbor or none dies from isolation.
  • Births. Each empty cell adjacent to exactly three neighbors — no more, no fewer — become a birth cell.