summaryrefslogtreecommitdiff
path: root/Main.hs
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2023-01-08 17:28:11 +0800
committerFrederick Yin <fkfd@fkfd.me>2023-01-08 17:28:11 +0800
commitec0654bf0ca057affb37a20ed0588a907e71130f (patch)
tree41fe6b5dc1cb5b579d4d728d07a72bdf0a5f683d /Main.hs
parentd82c464c395887afd5ed7d143d486e614e91ee26 (diff)
Game ends when player sheds all cards
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Main.hs b/Main.hs
index 685c43b..fd10cdf 100644
--- a/Main.hs
+++ b/Main.hs
@@ -10,7 +10,7 @@ import Game (Game(..),
discardPile,
prompt,
dealCards,
- nextTurn,
+ nextRound,
)
import Player (Player(..))
import qualified Player as P
@@ -34,5 +34,5 @@ main = do
, discardPile = discard
}
- nextTurn $ dealCards 6 game
+ nextRound 1 $ dealCards 1 game
print ()