Skip to content

Instantly share code, notes, and snippets.

@Fisiix
Fisiix / Calculator.hs
Created September 9, 2022 12:32
Graphic calculator in Haskell
-- 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
@Fisiix
Fisiix / Sudoku.hs
Created September 9, 2022 12:29
Sudoku solver in haskell
module Sudoku where
import Test.QuickCheck
import Data.Maybe
import Data.Char
import Data.List
------------------------------------------------------------------------------
-- | Representation of sudoku puzzles (allows some junk)
@Fisiix
Fisiix / BlackJack.hs
Created September 9, 2022 12:25
BlackJack in haskell
module BlackJack where
import Cards
import RunGame
import Test.QuickCheck
import System.Random
hand2 = Add (Card (Numeric 2) Hearts)
(Add (Card Jack Spades) Empty)