Description Usage Arguments Value Methods (by generic) Slots
This object container manages the active state of the game.
1 2 3 4 5 6 7 8 | ## S4 method for signature 'Board'
show(object)
## S4 method for signature 'Board'
considerInstance(board)
## S4 method for signature 'Board'
checkGuess(board, guess)
|
object, board |
The most recent |
guess |
Guess input from |
A character vector of clue(s).
An updated Board object.
show: A method to view the active Board.
considerInstance: AI uses Board to suggest clue(s).
checkGuess: AI uses Board to evaluate guess.
wordsA character vector. The 25 prompts on the Board.
spiesA character vector. The 25 "spies" (i.e., "R", "B", "N", or "K").
teamA character scalar. The active team (i.e., "R" or "B").
intendedA logical vector. Effectively @spies == @team.
onboardA logical vector. Which of the 25 "spies" no team has yet exposed.
historyA character vector. All clues given to date. Used for AI.
lastguessA logical scalar. Whether team made last guess correctly.
endgameA logical scalar. Whether the game is finished.
winnerA character scalar. The winning team (i.e., "R" or "B").
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.