add preconfigured matches and extend online ai

This commit is contained in:
2019-08-28 16:27:24 +02:00
parent 409ef29da1
commit 7138f74e8e
8 changed files with 66 additions and 101 deletions
+5
View File
@@ -28,6 +28,11 @@ instance ToJSON p => ToJSON (CardS p) where
data Hand = Hand1 | Hand2 | Hand3
deriving (Show, Eq, Ord)
toInt :: Hand -> Int
toInt Hand1 = 1
toInt Hand2 = 2
toInt Hand3 = 3
next :: Hand -> Hand
next Hand1 = Hand2
next Hand2 = Hand3