Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orangomango/gameoflife
Conway's game of life implementation in Java with the JavaFX framework
https://github.com/orangomango/gameoflife
gameoflife java javafx
Last synced: 3 months ago
JSON representation
Conway's game of life implementation in Java with the JavaFX framework
- Host: GitHub
- URL: https://github.com/orangomango/gameoflife
- Owner: OrangoMango
- License: mit
- Created: 2024-07-23T12:03:15.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-09T08:10:14.000Z (5 months ago)
- Last Synced: 2024-10-12T18:21:03.230Z (3 months ago)
- Topics: gameoflife, java, javafx
- Language: Java
- Homepage: https://orangomango.itch.io/gameoflife
- Size: 94.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Conway's Game Of Life (v1.0-beta, not finished yet)
Conway's game of life implementation in Java with the JavaFX framework.# Links
* Play it here (browser, windows, linux and mac): https://orangomango.itch.io/gameoflife
* Wikipedia: https://en.wikipedia.org/wiki/Conway's_Game_of_Life# Rules
A cell can be alive (white) or dead (black). On each generation the following rules are applied:
1. Any alive cell with less than 2 neighbors is dead
2. Any alive cell with more than 3 neighbors is dead
3. Any alive cell with 2 or 3 neighbors keeps alive
4. Any dead cell with exactly 3 neighbors is alive# Keys
Use the right and left mouse buttons to place/remove cells and to pan the view. Initially the game is paused.
* `SPACE` to pause/resume
* `R` to reset
* `G` to show/hide grid
* `C` to create backup
* `V` to load last backup
* `L` to load a .cells plaintext file
* `S` to save to a .cells plaintext file
* `Q` to generate random alive cells# Screenshot
![Screenshot from 2024-07-24 14-42-23](https://github.com/user-attachments/assets/385d9cc5-8c06-4a3e-999b-7de0d1669b75)
![GIF_20240724_145657_245](https://github.com/user-attachments/assets/2538f265-696f-4c65-94d8-abab43950d72)