Last Week
Monday 2-01
Arrays and ArrayLists
Tuesday
Open the ticTacToe project
Arrays and ArrayLists
Wednesday
Java Students - due midnight tonight
Read (lewis) pgs 298-308
Enter, compile, run and submit code listing 6.1 pg. 300 (without comments)
Enter, compile, run and submit code listing 6.2 pg. 302 (without comments)
Magic Square Class : Array of primitive ints
APCS students
Board Class - Array or ArrayList data structure - due midnight Thursday
constructors
default : empty board
public Board(int a) : fills the board to a set pattern.mutators
void makeXmove(int loc)
void makeYmove(int loc)Helper
boolean isFull() - true for a full board
boolean squareIsEmpty(int loc)
showBoard()
Thursday
Java Students - Add the following methods to the MagicSquare class.
public void changeValueims(int loc, int val) - due midnight tonight
public int sumRow(int a )- due midnight tonight
public int sumCol(int a) - due midnight tonight
public int sumDiag(int a) - due midnight tonightAP Students - add the following methods to Board due midnight Sunday
boolean xIsWinner()
boolean yIsWinner()
boolean isCatGame()Game Class
private data
Name player1
Name player2
Board boardconstructor - Gets two names and creates an empty board
Friday
Snow Day?
