FieldWinCheck: check for a winner

Description Usage Arguments Value

Description

help-function that checks whether (at least) one of the four possibilities of winning is given

Usage

1
FieldWinCheck(field, player)

Arguments

field

matrix: the playing field.

player

integer: the current player.

Value

a boolean whether the player has won the match or not


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