Skip to content

Commit

Permalink
Add score board
Browse files Browse the repository at this point in the history
  • Loading branch information
norm2782 committed Aug 24, 2010
1 parent 44a2a5e commit 9969baf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions HaskBan.hs
Expand Up @@ -18,9 +18,13 @@ module HaskBan (main) where
keypad stdScr True
cursSet CursorInvisible
mvWAddStr stdScr 0 0 "Welcome to HaskBan, the world's most awesome Haskell-based Sokoban game."
showMoves 0
refresh
progLoop

showMoves :: Int -> IO ()
showMoves s = mvWAddStr stdScr 3 30 ("Number of moves: " ++ show s)

progLoop :: IO ()
progLoop = do --mvWAddStr stdScr 1 0 (showSokoMap (return getMap))
key <- getCh
Expand Down

0 comments on commit 9969baf

Please sign in to comment.