Package | Description |
---|---|
Game |
Modifier and Type | Class and Description |
---|---|
class |
ComputerPlayer |
class |
HumanPlayer |
Modifier and Type | Method and Description |
---|---|
Player |
PlayingField.checkWin()
Function to check if the previous move was a winning move.
|
Player |
Disc.getOwner()
Function to get the owner of the disc
|
Player |
PlayingField.getTurn()
Get the player who's turn it is.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PlayingField.putDisc(int c,
Player player)
Function to place a new disc in the playing field.
|
Constructor and Description |
---|
PlayingField(int w,
int h,
Player p1,
Player p2,
Player t)
Create a new playing field.
|