|
|
|
@@ -1,5 +1,6 @@ |
|
|
|
module Skat.Operations ( |
|
|
|
turn, turnGeneric, play, playOpen, publishGameResults |
|
|
|
turn, turnGeneric, play, playOpen, publishGameResults, |
|
|
|
publishGameStart |
|
|
|
) where |
|
|
|
|
|
|
|
import Control.Monad.State |
|
|
|
@@ -93,3 +94,8 @@ publishGameResults :: (Int, Int) -> Skat () |
|
|
|
publishGameResults res = do |
|
|
|
pls <- gets players |
|
|
|
mapM_ (\p -> onGameResults p res) (playersToList pls) |
|
|
|
|
|
|
|
publishGameStart :: Hand -> Skat () |
|
|
|
publishGameStart sglPlayer = do |
|
|
|
pls <- gets players |
|
|
|
mapM_ (\p -> onGameStart p sglPlayer) (playersToList pls) |