othello1

othello1 - Introduction to Othello Othello p.1/3 Rules...

Info iconThis preview shows pages 1–13. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Introduction to Othello Othello p.1/3 Rules Rules Black moves first. O Othello p.2/3 Rules Rules Black moves first. You must pass iff you have no legal moves. O Othello p.2/3 Rules Rules Black moves first. You must pass iff you have no legal moves. To move, you must outflank one or more pieces of the opposite color. O Othello p.2/3 Rules Rules Black moves first. You must pass iff you have no legal moves. To move, you must outflank one or more pieces of the opposite color. The game ends when neither player has a legal move. The player with the most pieces wins. Othello p.2/3 Outflanking A move outflanks a set of opponent pieces when there are one or more contiguous pieces of the opposite color between one of your pieces and the piece you are placing. A turn flips the outflanked pieces. Othello p.3/3 Outflanking O Othello p.4/3 Outflanking New O Othello p.4/3 Outflanking Flipped Flipped Othello p.4/3 The Othello Framework Move : Stores the ( x, y ) coordinate of a move. OthelloPlayer : Interface implemented by your AI. It contains two methods: void init(OthelloSide side) : Called by the game to tell your AI which side its playing. void doMove(Move otherMove, long t) : Called by the game to get your move. otherMove is the other players move. otherMove is null if the other player passed. t is time left for your side. OthelloGame : Manages a game. Othello p.5/3 The Othello Framework OthelloObserver : Interface implemented by game-watching classes. A few useful observer classes are provided: OthelloTextObserver : Prints each move to the console. OthelloDisplay : Displays the board and each move in a graphical window. See OthelloTextObserver.java for an example of how to make an observer. See the Othello framework javadocs for more information. Othello p.6/3 Provided OthelloPlayers SimplePlayer : Makes a random (legal) move every turn....
View Full Document

This note was uploaded on 09/25/2010 for the course CS 002 taught by Professor Barr,a during the Winter '08 term at Caltech.

Page1 / 54

othello1 - Introduction to Othello Othello p.1/3 Rules...

This preview shows document pages 1 - 13. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online