#16 Fix
This commit is contained in:
parent
0825c64da0
commit
8d9186963f
2 changed files with 113 additions and 27 deletions
26
lib/Patience.hs
Normal file
26
lib/Patience.hs
Normal 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
|
Reference in a new issue