Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.
/ cellular-automata Public archive

🦠 Kotlin homework project. A graphical simulator for cellular automata. Extensible with implementation of cellular rulesets (containing WireWorld of Conway's Game of life implementations as of now).

License

Notifications You must be signed in to change notification settings

triszt4n/cellular-automata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WireWorld

Development

Best to be imported into IntelliJ IDEA.

Input language

You might want to load already defined maps into the program instead of clicking through the UI's field.

The language has 3 character types:

  • DOT - .: conductor
  • ASTERISK - *: electron head
  • DASH - -: electron tail (not necessary)
  • SPACE - : blank

You'll need to specify in the first line the number of rows and columns you'll want to use in the field. Also, properly fill in the field with every character needed (spaces).

See configurations/example1.txt:

5 11
-*.........
.   .      
   ...     
.   .      
*-.. ......

Gameplay

  • 4 buttons:
    • Play: plays the generation
    • Pause: pauses the generation
    • Stop: Clears electron heads from the field
  • Changes since specification: you can interact with the field even while it's generating.
  • First you must load or create a new field
  • You can create electron heads with one right click, electron tails with one more right click
  • You can create conductors with left clicks

Extras

This project is - not so easily but - extensible with new rule sets. Right now only the WireWorld and Conway's Game of Life implementations are included, the WireWorld view is used in the MyApp. If you want to try out Conway's Game of life as well, change the MyApp's view to GameOfLifeView.

Also, there are 6 example files already created for the wireworld rule set (configurations/ww_example_.txt), and 2 other ones for the game of life (configurations/gol_example_.txt).

Piller Trisztán 2021. 05. 14.

About

🦠 Kotlin homework project. A graphical simulator for cellular automata. Extensible with implementation of cellular rulesets (containing WireWorld of Conway's Game of life implementations as of now).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages