Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -147,7 +147,7 @@ changePlayer 'X' = 'O'
|
|||
-- first, the computer looks for two pieces of his opponent in a row
|
||||
-- and tries to block.
|
||||
-- otherwise, it tries to guess the best position for the next movement.
|
||||
-- as a least ressource, it places a piece randomly.
|
||||
-- as a last resort, it places a piece randomly.
|
||||
autoTurn :: Bool -> (Int, Char, String) -> IO (Int, Char, String)
|
||||
autoTurn forceRandom (count, player, game) = do
|
||||
-- try a random position 'cause everything else failed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue