1
Fork 0
This commit is contained in:
Tibo De Peuter 2022-11-15 09:28:10 +01:00
parent 0825c64da0
commit 8d9186963f
2 changed files with 113 additions and 27 deletions

26
lib/Patience.hs Normal file
View file

@ -0,0 +1,26 @@
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