A B C E G H I M N P R S T X Y

A

AI - Class in net.bluebones.tictactoe
Implementation of Minimax with alpha-beta pruning AI.
AI() - Constructor for class net.bluebones.tictactoe.AI
 

B

Board - Class in net.bluebones.tictactoe
Methods that work on a tictactoe board.
Board() - Constructor for class net.bluebones.tictactoe.Board
 
Boring - Class in net.bluebones.tictactoe
A very stoopid AI player for TicTacToe.
Boring() - Constructor for class net.bluebones.tictactoe.Boring
 

C

color() - Method in class net.bluebones.tictactoe.Move
Gets the type of piece placed by this move.
copy(byte[][]) - Static method in class net.bluebones.tictactoe.Board
Makes a new copy of the specified board.
CROSSES - Static variable in class net.bluebones.tictactoe.TicTacToe
int representing crosses (x)

E

EMPTY - Static variable in class net.bluebones.tictactoe.TicTacToe
byte representing empty.

G

Game - Class in net.bluebones.tictactoe
 
Game(Player[]) - Constructor for class net.bluebones.tictactoe.Game
Creates a new Game with the specified players.
getMove(byte[][], Move, byte) - Method in class net.bluebones.tictactoe.AI
Gets the next move of this player.
getMove(byte[][], Move, byte) - Method in class net.bluebones.tictactoe.Boring
Gets this player's next move.
getMove(byte[][], Move, byte) - Method in class net.bluebones.tictactoe.Human
Gets the next move of this player.
getMove(byte[][], Move, byte) - Method in interface net.bluebones.tictactoe.Player
Gets the next move for this player.

H

Human - Class in net.bluebones.tictactoe
Implementation of Player that allows for a human to play via STDIN.
Human() - Constructor for class net.bluebones.tictactoe.Human
 

I

isEmpty(byte[][], Move) - Static method in class net.bluebones.tictactoe.Board
Determines if the square the specified Move takes place in is empty or not.
isFull(byte[][]) - Static method in class net.bluebones.tictactoe.Board
Determines if this board is full (no more moves possible) or not.
isWinner(byte[][], byte) - Static method in class net.bluebones.tictactoe.Board
Determines if the specified player has won at the current board position.

M

main(String[]) - Static method in class net.bluebones.tictactoe.TicTacToe
Controlling method of the TicTacToe executable.
Move - Class in net.bluebones.tictactoe
Represents a move in a game of tic-tac-toe.
Move(byte, byte, byte) - Constructor for class net.bluebones.tictactoe.Move
Creates a move with the specified coordinates for the specified player.

N

net.bluebones.tictactoe - package net.bluebones.tictactoe
 
NOUGHTS - Static variable in class net.bluebones.tictactoe.TicTacToe
int representing noughts (o)

P

placePiece(byte[][], Move) - Static method in class net.bluebones.tictactoe.Board
Does the move specified in m on board.
play() - Method in class net.bluebones.tictactoe.Game
Called to begin a Game.
Player - Interface in net.bluebones.tictactoe
Interface to be implemented by players for the game of TicTacToe.
printBoard(byte[][]) - Static method in class net.bluebones.tictactoe.Board
Prints a graphical representation of the board to STDOUT.

R

reverse(byte) - Static method in class net.bluebones.tictactoe.TicTacToe
Takes supplied integer and returns its "reverse", that is the number of the opposing player.

S

SIZE - Static variable in class net.bluebones.tictactoe.Board
Size of one side of the board.

T

TicTacToe - Class in net.bluebones.tictactoe
Mother class for the net.bluebones.tictactoe package.
TicTacToe() - Constructor for class net.bluebones.tictactoe.TicTacToe
 
toString() - Method in class net.bluebones.tictactoe.Move
Gets a human-readable String representation of this move.

X

x - Variable in class net.bluebones.tictactoe.Move
x-coordinate this move takes place at

Y

y - Variable in class net.bluebones.tictactoe.Move
y-coordinate this move takes place at

A B C E G H I M N P R S T X Y