/snake

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Snake

by

  • Nurullina Liia
  • Titov Vlad

The classic game implemented on Haskell. There is a snake which slithers on the game field.

  • The goal is to grow the snake as much as possible by eating the food
  • Pieces of the food randomly spawned on the field
  • Use Up, Down, Right, Left buttons to control the snake. Click the one rapidly to make the snake faster
  • Game will be over when the snake bumps into its own tail or any wall
  • Click "p" to pause the game and "s" to un-pause or to restart the game in case you have failed
  • Click esc to exit the game.

Build

  • Use stack build to build the project.
  • Use stack run to run it. Enjoy! :)