fbuttons: Field buttons

Description Usage Arguments

Description

A function to show buttons, letting the player(s) decide what to do: show the winning field, play again or exit.

Usage

1
2
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 FALSE to have mouse-functionality in the graphics device.

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.


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