updates
Signed-off-by: Jack Bond-Preston <jackbondpreston@outlook.com>
This commit is contained in:
parent
1d05383548
commit
d1a9c7516b
2
4/4.hs
2
4/4.hs
@ -47,8 +47,6 @@ processTurns :: [[[Int]]] -> [Int] -> [[Bool]]
|
||||
processTurns boards draws = map (checkBoards boards) turns
|
||||
where turns = [ take n draws | n <- [1 .. length draws ] ]
|
||||
|
||||
|
||||
-- ret: (turn no, board win states)
|
||||
getWinner :: [[[Int]]] -> [Int] -> (Int, Int)
|
||||
getWinner boards draws = (turnNo, winnerIndex)
|
||||
where results = processTurns boards draws
|
||||
|
Loading…
Reference in New Issue
Block a user