Generated from ./ with ROBODoc v4.99.6 on Sat Jan 29 14:40:37 2005

[Methods] TFIARBoard/Create

[top]

NAME

    Create

FUNCTION

    Will create the object for usage

SYNOPSIS

    Create();

INPUTS

    none

RESULT

    none

[Methods] TFIARBoard/ResetBoard

[top]

NAME

    ResetBoard

FUNCTION

    Will reset the board for a new game

SYNOPSIS

    ResetBoard();

INPUTS

    none

RESULT

    none

[Methods] TFIARBoard/ColumnHeight

[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

[Methods] TFIARBoard/DropCoin

[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

[Methods] TFIARBoard/Adversary

[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

[Methods] TFIARBoard/SpotStats

[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

[Methods] TFIARBoard/GameOver

[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

[Methods] TFIARBoard/AdviseMove

[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