Created
May 12, 2020 13:22
-
-
Save tarquin-the-brave/82fd5a9101d2461f5b93de83e70a5784 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import qualified Intcode as IC | |
| import qualified Data.HashMap.Strict as HM | |
| data Game = Game { | |
| gameProg :: IC.Program, | |
| gameDisplay :: Displ | |
| } deriving(Show) | |
| type Displ = HM.HashMap Tile Tid | |
| type Tile = (Int, Int) | |
| data Tid = Empty | Wall | Block | Paddle | Ball | BadTid | Score{theScore::Int} deriving(Show, Eq) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment