fbuttons {FourScores} | R Documentation |
Field buttons
Description
A function to show buttons, letting the player(s) decide what to do: show the winning field, play again or exit.
Usage
fbuttons(field, justsub, message, MACuser, rows, columns, AI, AIstrength,
AIplayernumber, PlayerNames, PlayerColors)
Arguments
field |
matrix: the field. |
justsub |
boolean: should only be a subtitle plotted (below the winning field)? |
message |
character: a message to be plotted. |
MACuser |
boolean: on some non-mac computers this can be set to |
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? |
PlayerNames |
array of characters: the players' names. |
PlayerColors |
vector of characters: the players' colors. |
[Package FourScores version 1.5.1 Index]