startUnoGame: Creates workspace and starts the UNO-Game - For Admin

Description Usage Arguments Details Author(s) References Examples

Description

The Admin creates a workspace, starts an UNO-Game and dicides what game-conditions apply.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
startUnoGame( wsName, 
              cardsStart = 7, 
              minPlayers = 2, 
              maxPlayers = 10, 
              log = 0, 
              logfile = NULL, 
              debug = FALSE,
              config = NULL,
              graphics = TRUE,
              ...)

Arguments

wsName

workspacename

cardsStart

the number of cards, each player gets at the beginning

minPlayers

the number of players, that are necessary to start a game

maxPlayers

the number of players, that maximal can join a game

log

number of log mode : 0 = no logging, !0=logging

logfile

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

debug

a logical, if TRUE, there are several debuginformation shown during the game

config

vector of four logicals, if not set, the program asks for the rules later

graphics

a logical, if TRUE, a grapic device is shown to the players

...

Usual parameters to initialize a netWorkSpace(). See http://nws-r.sourceforge.net/doc/nwsR-1.5.0.pdf (Page 25) for further information

Details

After starting the game, with this function, the players could log in with playUno(). This function only creates and starts the game. It does not play.

Author(s)

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

References

http://gamesnws.r-forge.r-project.org/

Examples

1
2
3
4
5
6
7
8
## Not run: 
  startUnoGame("test",serverHost="localhost",config=c(T,T,T,T))

## End(Not run)
## Not run: 
  startUnoGame("test",serverHost="localhost", cardsStart=13, minPlayers=4)

## End(Not run)

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