implement MCTS for tictactoe and skat

This commit is contained in:
2022-10-15 11:59:34 +02:00
parent 40908ddcf3
commit 3aa6a62391
18 changed files with 1219 additions and 271 deletions
+7 -1
View File
@@ -18,14 +18,18 @@ import Skat.AI.Stupid
import Skat.AI.Online
import Skat.AI.Rulebased
import Skat.AI.Minmax (playCLI)
import Skat.AI.Games.Skat.Guess
import Skat.AI.Skat (playSkat)
main :: IO ()
main = testMinmax 10
main = playSkat 42
{-
testMinmax :: Int -> IO ()
testMinmax n = do
let acs = repeat playSkat
sequence_ (take n acs)
-}
testAI :: Int -> IO ()
testAI n = do
@@ -108,5 +112,7 @@ application pending = do
msg <- WS.receiveData conn
putStrLn $ BS.unpack msg
{-
playSkat :: IO ()
playSkat = void $ (flip runSkat) env3 playCLI
-}