Files
Iris/RULESET.md
2026-02-24 15:52:07 +01:00

1.2 KiB

Iris ruleset

Base systems

Randomisation

  • Iris uses xorshift32 for randomisation.
  • The seed is set once at the beginning through user input. You can add more ways to set the seed, but the user has to be able to set it themselves.

World

  • The world is a 256x256 grid of tiles called quadrants

Quadrants

  • Every quadrant has three boolean values:
    • Visited - Whether the player has visited the quadrant
    • Discovered - Whether the player has discovered the quadrant (and is visible on map)
    • Old - Whether the quadrant is old, effects differ. Every quadrant has a 20% chance of being old.

Quadrant Types

  • Empty - 30% chance
  • Asteroid field - 10% chance
  • Star system - 10% chance
  • Nebula - 10% chance
  • Black hole - 10% chance
  • White hole - 10% chance
  • Pulsar - 5% chance
  • Quasar - 5% chance
  • Supernova - 5% chance
  • Anomaly - 4% chance
  • Singularity - 1% chance

Wormholes

  • When entering a black hole, the player is teleported to a random white hole. If there are no white holes, the player is teleported to a random quadrant.

Game Loop

  • Every turn one player action is read and applied

Player

  • At startup, the player is created at the world centre (WORLD_WIDTH / 2, WORLD_HEIGHT / 2).