logs the game

Description

writes a logfile of the game and returns the winner

Usage

1
2
3
.watchUnoGame( ws, 
              ..., 
              logfile = NULL)

Arguments

ws

Name of the workspace

...

no function yet, but in future some logging-specific attributes are available

logfile

the directory, where the log should be saved to(not yet implemented)

Details

This function will be called in a playUnoMaster()-function. The logfile-argument is not yet implemented, so actually the logfile is written in your workingdirectory. Different logging-modes will be possible.

Value

winner

player that has won the UNO-Game

Author(s)

Markus Schmidberger <schmidb@ibe.med.uni-muenchen.de>, Fabian Grandke

Examples

1
2
3
4
5
6
## Not run: 
  if(log!=0){
		winner <- .watchUnoGame(ws, logfile=logfile)
  }

## End(Not run)