1
Fork 0
This repository has been archived on 2023-12-08. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2022FuncProg-project2-patience/lib/Patience.hs
2022-11-15 09:28:10 +01:00

26 lines
776 B
Haskell

module Patience
( playPatience
) where
import PatienceBoard
import PatienceRenderer
import Graphics.Gloss (green, play)
---------------------------------------------------------------------
-- Single module to play patience. --
-- Includes all logic and rendering. --
---------------------------------------------------------------------
----------------------------- Constants ------------------------------
-- Framerate of the game
type FPS = Int
---------------------------------------------------------------------
-- Play a game of patience.
playPatience :: FPS -> IO()
playPatience fps = do play window green fps initGame render handleInputs step
where window = getWindow
step _ g = g