watchUnoGame {gamesNws}R Documentation

logs the game

Description

writes a logfile of the game and returns the winner

Usage

.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

## Not run: 
  if(log!=0){
                winner <- .watchUnoGame(ws, logfile=logfile)
  }
## End(Not run)

[Package gamesNws version 0.5 Index]