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 tetris rani 20:06, Oct 14 2023 450 B
txt tetris.c Add tetris rani 20:06, Oct 14 2023 7.67 KiB
README.md

Tetris

Classic Tetris.

  • Left/right arrow keys to move left or right.
  • Up arrow key to rotate tetromino.
  • Down arrow key to force one block down.
  • Space to immediately drop tetromino.
  • q to quit.

Config

  • X: Integer, number of columns
  • Y: Integer, number of rows
  • HIGHLIGHT: Either true/false, whether or not to highlight blocks
  • SEED: Integer, specify PRNG seed
  • GRAVITY: Integer, specify initial gravity in milliseconds