Extraterrestrial Pets Simulation
Simple 2D grid simulations (agent- and movement-based models and cellular automata) built with Java and JavaFX.
Simulations
·
Run the App
·
Docs
·
Report an issue
Overview
Welcome to the Extraterrestrial Pets Simulation project (etpetssim)!
This open-source desktop application combines well-known models and new ideas in one place: agent- and movement-based
models and cellular automata, all shown from a top-down view.
The simulation engine organizes the grid into structured cells, each with coordinates and entities, enabling flexible
modeling and efficient computation.
Each cell is a regular polygon (triangle, square, or hexagon) with equal sides and angles, ensuring consistent geometry
and neighbor relationships throughout the grid.
The grid supports various edge behaviors (blocking, wrapping, or absorbing) and offers flexible modes for calculating
neighbors, either by shared edges or by both edges and vertices.
Status: This project is currently under development.
Maintainer note: This is a single-developer project maintained by me (Mathias Kalb).
Simulations
Simulations are grouped by their predominant mechanics: agent- and movement-based models focus on moving agents or
entities; cellular automata update cell states by local rules. The categories are for navigation, not a strict
scientific classification.
| Simulation |
Category |
Description |
Docs |
| ET Pets |
Agent- and Movement-Based Models |
Agents search for plants and insects, avoid obstacles, create trails, and reproduce with inheritance |
etpets.md |
| Wa-Tor |
Agent- and Movement-Based Models |
Agents (fish and sharks) interact in a predator–prey system |
wator.md |
| Sugarscape |
Agent- and Movement-Based Models |
Agents collect and consume sugar resources |
sugar.md |
| Langton’s ant |
Agent- and Movement-Based Models |
A moving ant updates cell states using simple rules |
langton.md |
| Snake |
Agent- and Movement-Based Models |
Snakes move, grow, and avoid collisions while consuming food |
snake.md |
| Rebound arena |
Agent- and Movement-Based Models |
Entities move directionally, bounce off boundaries, and destroy obstacles and other agents |
rebounding.md |
| Conway’s Game of Life |
Cellular Automata |
Cells evolve based on simple local birth and survival rules |
conway.md |
| Forest-fire model |
Cellular Automata |
Cells model tree growth and fire spread through local rules |
forest.md |
Simulation Gallery
ET Pets
(Screenshots will be added once the simulation is fully implemented.)
Wa-Tor

Sugarscape

Langton’s ant

Snake

Rebound arena

Conway’s Game of Life

Forest-fire model

Run the App
| Platform |
Status |
| Windows (x64) |
Supported (development and distribution) |
| Linux (x64) |
Supported (development and distribution) |
| macOS |
Not supported |
Linux support was verified on Ubuntu 26.04 LTS in WSL 2 on Windows 11.
JavaFX artifacts are platform-specific. app/build.gradle.kts resolves the Windows x64 or Linux x64 variant and fails
with a clear error message on any other operating system or architecture.
Prerequisites
- Windows x64 or Linux x64
- Java 17 to 27 to start the Gradle Wrapper, found via
JAVA_HOME or on the PATH. The build compiles, tests, and
runs the application with a Java 27 toolchain (Eclipse Temurin), which Gradle detects among the installed JDKs or
downloads automatically (internet access required on first use).
- Git (building the JAR reads the revision and commit date from the Git working tree)
Commands
Use the Gradle Wrapper from the repository root. No global Gradle installation is required. The examples use
PowerShell on Windows; on Linux, use ./gradlew instead of .\gradlew.bat (e.g., ./gradlew :app:run).
# Run the application
.\gradlew.bat :app:run
# Run the application with command-line arguments (English UI, log output on the console)
.\gradlew.bat :app:run --args="--locale=en --log-console"
# Run the unit tests (excludes skill tests)
.\gradlew.bat :app:test
# Run the tests for the repository skills in .claude/skills
.\gradlew.bat :app:skillTest
# Build the distribution ZIP for the platform the build runs on
.\gradlew.bat :app:distZip
The distribution ZIP contains the JavaFX artifacts of the build platform, so it is built on Windows x64 for Windows
and on Linux x64 for Linux. Its name ends with the platform, e.g.,
app/build/distributions/ExtraterrestrialPetsSimulation-<version>-windows-x64.zip or ...-linux-x64.zip.
Supported application arguments:
| Argument |
Description |
--help |
Prints the list of arguments in English and exits |
--version |
Prints the application version and exits |
--locale=<locale> |
Sets the UI language: en, de, en_US, or de_DE (case-sensitive); default: saved language, system locale, or en_US |
--log-console |
Enables logging to the console |
--log-file |
Enables logging to the file ExtraterrestrialPetsSimulation.log in the application’s log directory |
--log-level=<level> |
Sets the log level: debug, info, warn, or error (case-insensitive); default: info |
--simulation=<name> |
Starts a simulation directly, e.g. etpets, wator, sugar, langton, snake, rebounding, conway, forest |
Argument names are case-insensitive. Flags can also take a boolean value (true/false, 1/0, yes/no, or
on/off), e.g. --log-console=false; any other value enables the flag. Several arguments are passed to Gradle as
one quoted string, separated by spaces.
Argument values may contain spaces (e.g., file paths). Quote such an argument so that it reaches the application as one
argument; inside the Gradle --args string, use single quotes:
.\bin\ExtraterrestrialPetsSimulation.bat "--key=value with spaces"
.\gradlew.bat :app:run --args="--locale=en '--key=value with spaces'"
The UI language can also be changed on the start screen. The selected language is saved as locale in the file
settings.properties and used on the next start without --locale. --locale takes precedence for the current run
and does not change the saved setting. To reset the settings, delete the file. It is stored in the application data
directory:
- Windows:
%LOCALAPPDATA%\ExtraterrestrialPetsSimulation
- macOS:
~/Library/Application Support/ExtraterrestrialPetsSimulation
- Linux:
~/.config/ExtraterrestrialPetsSimulation
Run the Distribution
The distribution ZIP of a release, or one built with :app:distZip, can be run without Gradle. It requires a Java 27
runtime (JRE or JDK), found via JAVA_HOME or on the PATH. JavaFX is included in lib.
- Extract the ZIP of your platform.
- Open a terminal in the extracted directory (the one that contains
bin and lib).
- Start the application from there, optionally with the arguments listed above.
Windows x64 (ExtraterrestrialPetsSimulation-<version>-windows-x64.zip, PowerShell):
.\bin\ExtraterrestrialPetsSimulation.bat --locale=en --log-console
Linux x64 (ExtraterrestrialPetsSimulation-<version>-linux-x64.zip):
./bin/ExtraterrestrialPetsSimulation --locale=en --log-console
On Linux, JavaFX also needs a graphical desktop session and the GTK 3 system libraries. A desktop installation usually
provides them; on a minimal Ubuntu 26.04 (e.g., in WSL 2), install them with:
sudo apt install libgtk-3-0t64 libxtst6 libxxf86vm1 libgl1
The user interface uses the font Verdana, which Linux usually lacks; JavaFX then substitutes another font (e.g.,
DejaVu Sans). The Emoji cell display mode needs a monochrome emoji font such as Symbola (package fonts-symbola).
JavaFX does not draw color emoji fonts such as Noto Color Emoji, so the emojis stay invisible while such a font is
installed.
Goals
- Explore and apply modern Java features in practice.
- Get to know the JavaFX library and gain some initial experience with it.
- Explore the capabilities of AI tools in software development and gain hands-on experience with them.
- Enjoy creativity in developing new simulations and adapting well-known models.
Development Approach
Artificial intelligence (AI) tools are used during development to improve productivity and support code quality. In
particular, Microsoft Copilot, GitHub Copilot, and Claude Code are used for code generation, documentation support,
refactoring and optimization tasks, graphics such as the application icon, and as a practical aid while learning and
applying JavaFX and MVVM concepts. These tools also help accelerate exploration of implementation variants and
architecture options during day-to-day development.
All generated content is reviewed and adapted in the context of the project goals, codebase consistency, and long-term
maintainability. AI tools are treated as development assistance, not as licensors: the maintainer is responsible for all
adopted content, and recognizable reproductions of third-party work are not adopted without checking their license.
Final technical decisions remain project-driven and under maintainer control.
Graphics such as the application icon were created by the maintainer together with Claude Code. The SVG sources in
assets name Claude Code as AI-assisted contributor in their metadata; their PNG exports (e.g., in
app/src/main/resources/images) carry no metadata and are covered by this statement.
Feedback and Issues
Bug reports, ideas, and questions are welcome as GitHub Issues. Before
opening an issue or a pull request, please read the contributing guidelines.
Technologies Used
- Java: The primary programming language used throughout the project.
- JavaFX: Used to create the graphical user interface.
- Gradle: Build system used for the project, including a Gradle wrapper.
- IntelliJ IDEA: The development environment (“IDE”) of choice, provided by JetBrains.
This project uses the latest stable versions of all technologies whenever possible.
License
This project is licensed under the MIT License.
This project uses several third-party libraries and tools, each with its own license.
For the project’s third-party list, see the THIRD-PARTY-LICENSES file.
The license texts of the third-party components shipped in the distribution ZIP are in the licenses folder.
Both license files are also available in the application’s About dialog.
Author
Copyright © 2025-2026 Mathias Kalb
评论