FourScores {FourScores}R Documentation

Main Function

Description

Function to play FourScores

Usage

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

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

## End(Not run)

[Package FourScores version 1.5.1 Index]