Skip to content

Pure terminal implementation of Tetris in Haskell + an AI agent

Notifications You must be signed in to change notification settings

harryaskham/tetriskell

Repository files navigation

tetriskell

Tetris implemented directly in the terminal (i.e. plain stdout, no curses) in order to better learn Haskell.

Includes both human play and an AI agent demoed below (see Agent.hs).

demo

To run, simply: stack run.

  • j, k, l are left, down, right
  • u rotates CW, i rotates CCW
  • spacebar drops
  • h holds the current piece

About

Pure terminal implementation of Tetris in Haskell + an AI agent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published