Learn R Programming

FourScores (version 1.5.1)

AImove: Move of AI

Description

Help-Function for an AI

Usage

AImove(field, AIstrength, AIplayernumber)

Arguments

field

matrix: the playing field

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?

Value

the selected row