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
| -- This module is a starting point for implementing the Graph Drawing | |
| -- Calculator as described in Part II of the Standard Lab. You can use this | |
| -- directly, or just study it as an example of how to use threepenny-gui. | |
| import ThreepennyPages | |
| import Graphics.UI.Threepenny.Core as UI | |
| import qualified Graphics.UI.Threepenny as UI | |
| import Expr | |
| import Data.Maybe |
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
| module Sudoku where | |
| import Test.QuickCheck | |
| import Data.Maybe | |
| import Data.Char | |
| import Data.List | |
| ------------------------------------------------------------------------------ | |
| -- | Representation of sudoku puzzles (allows some junk) |
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
| module BlackJack where | |
| import Cards | |
| import RunGame | |
| import Test.QuickCheck | |
| import System.Random | |
| hand2 = Add (Card (Numeric 2) Hearts) | |
| (Add (Card Jack Spades) Empty) | |