Thumbnail

rani/games.git

Clone URL: https://git.buni.party/rani/games.git

Browsing tree for branch master, showing 2 entries

TypeFileLast CommitAuthorCommit Date (UTC)Size
txt README.md Add SEED definition for games utilizing rand() rani 17:32, Aug 13 2023 424 B
txt snake.c Add SEED definition for games utilizing rand() rani 17:32, Aug 13 2023 6.49 KiB
README.md

snake

Classic snake game. Move with arrow keys, eat the apples to grow longer. Space to pause, any key to resume. q to quit.

Config

  • Y: Height of play area
  • X: Width of play area
  • DELAY: The delay, in milliseconds, between each movement
  • WALLS: Either true or false. If true, enable solid walls (game over on crash). Otherwise, allow snake to teleport through walls.
  • SEED: Seed value for PRNG