watchUnoGame: logs the game

Description Usage Arguments Details Value Author(s) Examples

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)

gamesNws documentation built on May 2, 2019, 6:13 p.m.