FourScores: Main Function

Description Usage Arguments Examples

Description

Function to play FourScores

Usage

1
2
3
4
FourScores(rows = 6, columns = 7, AI = TRUE, AIstrength = rows *
  columns, AIplayernumber = 1, MACuser = TRUE, PlayerNames = c("AI",
  "Human"), getnewnames = FALSE, PlayerColors = c("green", "blue"),
  getnewcolors = FALSE)

Arguments

rows

integer: how many rows shall the playing field have?

columns

integer: how many columns shall the playing field have?

AI

boolean: play against AI?

AIstrength

integer: strength of the AI - number of moves the AI will simulate?

AIplayernumber

integer: 0 or 1: should the AI be player 1 or player 2?

MACuser

boolean: on some non-mac computers this can be set to FALSE to have mouse-functionality in the graphics device.

PlayerNames

array of characters: the players' names.

getnewnames

boolean: should new names be asked for?

PlayerColors

vector of characters: the players' colors.

getnewcolors

boolean: should new colors be asked for?

Examples

1
2
3
4
## Not run: 
FourScores(AI = T, AIstrength = 10, MACuser = T, getnewnames = F, getnewcolors = F)

## End(Not run)

FourScores documentation built on May 2, 2019, 4:02 p.m.