A C E G H M P S W
A
- addScore() - Method in class Player
-
Add one to this player's score.
C
- compareBoards(ConnectN...) - Static method in class ConnectN
-
Compare any number of ConnectN boards.
- compareBoards(ConnectN, ConnectN) - Static method in class ConnectN
-
Compare two ConnectN boards.
- ConnectN - Class in <Unnamed>
-
A class that implements a Connect4-like game.
- ConnectN() - Constructor for class ConnectN
-
Create a new ConnectN board with uninitialized width, height, and N value.
- ConnectN(int, int) - Constructor for class ConnectN
-
Create a new ConnectN board with given width and height and uninitialized N value.
- ConnectN(int, int, int) - Constructor for class ConnectN
-
Creates a new ConnectN board with a given width, height, and N value.
- ConnectN(ConnectN) - Constructor for class ConnectN
-
Create a new ConnectN board with dimensions and N value copied from another board.
- create(int, int, int) - Static method in class ConnectN
-
Class method to create a new ConnectN board.
- createMany(int, int, int, int) - Static method in class ConnectN
-
Creates multiple new ConnectN instances.
E
- equals(Object) - Method in class ConnectN
-
Define equality for the ConnectN class.
- equals(Object) - Method in class Player
-
Define equality for the Player class.
G
- getBoard() - Method in class ConnectN
-
Return a copy of the board.
- getBoardAt(int, int) - Method in class ConnectN
-
Get the player at a specific board position.
- getHeight() - Method in class ConnectN
-
Get the current board height.
- getId() - Method in class Player
-
Get the ID of this player.
- getID() - Method in class ConnectN
-
Get the current board's id.
- getN() - Method in class ConnectN
-
Get the current board N value.
- getName() - Method in class Player
-
Get the player's name.
- getScore() - Method in class Player
-
Get this player's score.
- getTotalGames() - Static method in class ConnectN
-
Return the total number of games that have been created.
- getWidth() - Method in class ConnectN
-
Get the current board width.
- getWinner() - Method in class ConnectN
-
Return the winner of the game, or null if the game has not ended.
H
- hashCode() - Method in class ConnectN
-
Define the hash code for the ConnectN class.
- hashCode() - Method in class Player
-
Define the hash code for the Player class.
M
- main(String[]) - Static method in class WebServer
-
Start the transformation web server.
- MAX_HEIGHT - Static variable in class ConnectN
-
Maximum board height is 16.
- MAX_WIDTH - Static variable in class ConnectN
-
Maximum board width is 16.
- MIN_HEIGHT - Static variable in class ConnectN
-
Minimum board height is 6.
- MIN_N - Static variable in class ConnectN
-
Minimum board N value is 4.
- MIN_WIDTH - Static variable in class ConnectN
-
Minimum board width is 6.
P
- Player - Class in <Unnamed>
-
A class that implements a player for the ConnectN (and possibly other) games.
- Player(String) - Constructor for class Player
-
Create a new player with the given name.
- Player(String, int, int) - Constructor for class Player
-
Create a new player from a full set of fields.
- Player(Player) - Constructor for class Player
-
Create a copy of an existing player.
S
- setBoardAt(Player, int) - Method in class ConnectN
-
Drop a tile in a particular column.
- setBoardAt(Player, int, int) - Method in class ConnectN
-
Set the board at a specific position.
- setHeight(int) - Method in class ConnectN
-
Attempt to set the board height.
- setN(int) - Method in class ConnectN
-
Attempt to set the current board N value.
- setName(String) - Method in class Player
-
Set the player's name.
- setWidth(int) - Method in class ConnectN
-
Attempt to set the board width.
W
- WebServer - Class in <Unnamed>
-
A class that runs a small web server which enables the web interface to play ConnectN.
- WebServer() - Constructor for class WebServer