[top]
NAME
Create
FUNCTION
Will create the object for usage
SYNOPSIS
Create();
INPUTS
none
RESULT
none
[top]
NAME
ResetBoard
FUNCTION
Will reset the board for a new game
SYNOPSIS
ResetBoard();
INPUTS
none
RESULT
none
[top]
NAME
ColumnHeight
FUNCTION
Will determine a certain columns height
SYNOPSIS
ColumnHeight(Column: Integer): Integer;
INPUTS
Column: Integer, which column you wish to gage
RESULT
Integer, the height of the indicated column
[top]
NAME
DropCoin
FUNCTION
Will drop a coin into a certain column
SYNOPSIS
DropCoin(Column: Integer; Player: Integer): Boolean;
INPUTS
Column: Integer, indicates in which column the coin should be dropped Player: Integer, indicates which player is dropping the coin
RESULT
Boolean, true on a succesful drop
[top]
NAME
Adversary
FUNCTION
Who is a players adversary
SYNOPSIS
Adversary(Player: Integer): Integer;
INPUTS
Player: Integer, who is the player
RESULT
Integer, who is the adversary
[top]
NAME
SpotStats
FUNCTION
Will generate a certain spots statistics
SYNOPSIS
SpotStats(x, y, dx, dy, Player: Integer; var nEmpty, nFriendly, nHostile: Integer);
INPUTS
x: Integer, the spots x co-ordinate y: Integer, the spots y co-ordinate dx: Integer, the spots delta-x co-efficient dy: Integer, the spots delta-y co-efficient var nEmpty: Integer, return the amount of empty spots in a four spot row var nFriendly: Integer, return the amount of friendly spots in a four spot row var nHostile: Integer, return the amount of hostile spots in a four spot row
RESULT
none
[top]
NAME
GameOver
FUNCTION
Will determine when the game has finished
SYNOPSIS
GameOver(Player: Integer): Integer;
INPUTS
Player: Integer, which player is the current player
RESULT
Integer, which player has won, or -1 when the game has been drawn, or 0 when the game is still active
[top]
NAME
AdviseMove
FUNCTION
Will advise a (smart) move
SYNOPSIS
AdviseMove(Player, Difficulty: Integer): Integer;
INPUTS
Player: Integer, from which players perspective the move should be advised Difficulty: Integer, how smart the AI should be (rated 1..4;dEasy,dMedium,dHard,dBrutal)
RESULT
Integer, in which column the coin should be dropped