C++ Programming

cplusplus.com | Java Documentation | Site Stats
AP schedule | AP LogIn | AP Forms | AP Resources | AP Archive | AP Stuff
Java schedule | Java LogIn | Java Forms | Java Resources | Java Archive | Java Stuff
Adven schedule | Adven LogIn | Adven Forms | Adven Resources | Adven Archive | Adven Stuff
Stat schedule | Stat LogIn | Stat Forms | Stat Resources | Stat Archive | Stat Stuff

Java Schedule 2-01-10

Monday 2-01

Snow Day

Tuesday

Snow Day

Wednesday

Check email, corrections

Thursday

Java - Game Class

boolean xIsWinner()
boolean oIsWinner()
boolean isCatGame()**need boolean isFull() method
showBoard()
constructor

Submit methods

AP

boolean isValidMove(int loc) - returns true if the location is blank.

void makeMove(int counter)- shows instructions, the board, and prompts the user for a location to make a move. Counter determines if an X or an O is made. X always goes first. makeMove will not allow an invalid move to be made.

private data field additions to the Game Class

player1Won
player2Won
gamesPlayed
catGames

void randomPlay() - Randomly plays a tic tac toe game. Update cat, played, and won.

submit methods

Friday

 

 

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()

Submit the methods.

 

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 tonight

Submit the methods

AP 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 board

constructor - Gets two names and creates an empty board

submit the mehods

Friday

Snow Day?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Updated: Friday, February 5, 2010 8:54 AM

About | Site Map | Contact | Search | ©2005 brentwoodhigh.com