bingo
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
bingo [2021/05/01 11:55] – frchris | bingo [2021/05/02 10:33] – frchris | ||
---|---|---|---|
Line 3: | Line 3: | ||
- | It's not just a song from summer camp, its an old-timey game: Here is a [[https:// | + | It's not just a song from summer camp, its an old-timey game: Here is a [[https:// |
- | First we will make a BingoCell class, then a BingoCard class, and later we will make a BingoGame | + | === BingoBallHopper === |
+ | |||
+ | |||
+ | First we will make a '' | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | === BingoCard/ | ||
+ | |||
+ | Next we turn to the player' | ||
+ | |||
+ | The '' | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | Here is a hint on how to build upon the draw method of the parent class: | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | For now, let a cell that is " | ||
+ | - Constructors that can will allow a client | ||
+ | - accessor methods so a client class can know a cell's number | ||
+ | |||
+ | You can test out your BingoCell class by adapting {{ :: | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | The rest would not need to be changed since a '' | ||
- | The '' | ||
Line 19: | Line 45: | ||
- The " | - The " | ||
- a toString method that has no parameters, and returns a string representation of the board that is similar to : {{:: | - a toString method that has no parameters, and returns a string representation of the board that is similar to : {{:: | ||
- | - a draw method takes a Graphics parameter to draw the board | ||
- a method ' | - a method ' | ||
+ | - a draw method takes a Graphics parameter to draw the board | ||
+ | |||
+ | The " | ||
+ | |||
+ | The draw method can be tested by a '' | ||
+ | |||
+ | === BingoGame === | ||
+ | |||
+ | The '' | ||
+ | It is up to the player to " | ||
bingo.txt · Last modified: 2021/05/10 12:08 by frchris