hstzaar 0.9 → 0.9.1
raw patch · 3 files changed
+6/−2 lines, 3 files
Files
- RELEASE-NOTES +3/−0
- hstzaar.cabal +1/−1
- src/GUI.hs +2/−1
RELEASE-NOTES view
@@ -1,3 +1,6 @@+hstzaar 0.9.1 25/03/2012+- bug fix in open game (check for end of game condition)+ hstzaar 0.9 14/02/2012 - corrected error in game tree generation (didn't check end of game properly) - improved the AI evaluation function; plays much better now
hstzaar.cabal view
@@ -1,5 +1,5 @@ name: hstzaar-version: 0.9+version: 0.9.1 category: Game
src/GUI.hs view
@@ -219,7 +219,8 @@ do txt <- hGetContents handle case readXML txt of Nothing -> putStrLn ("ERROR: couldn't parse game file " ++ show filepath)- Just g -> modifyMVar_ gamev $ \_ -> return (g,Wait0)+ Just g -> let s = if endGame (board g) then Finish else Wait0+ in modifyMVar_ gamev $ \_ -> return (g,s) -- | write a game file