gameLoop roundsNeeded round word history
readSTRef word
-gameLoop targetRound round word history =
- do gameStep round word history
- `untilM_` ((== targetRound) <$> readSTRef round)
- return ()
+-- gameLoop targetRound round word history =
+-- do gameStep round word history
+-- `untilM_` ((== targetRound) <$> readSTRef round)
+-- return ()
-- gameLoop targetRound round word history =
-- do ( gameStep round word history
-- $ gameStep round word history
-- return ()
--- gameLoop targetRound round word history =
--- do whileM_ ((/= targetRound) <$> readSTRef round)
--- $ gameStep round word history
--- return ()
+gameLoop targetRound round word history =
+ do whileM_ ((/= targetRound) <$> readSTRef round)
+ $ gameStep round word history
+ return ()
seedGame seed historySize =
do round <- newSTRef $ length seed