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 10:35] – frchris | bingo [2021/05/02 13:15] – frchris | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Bingo ====== | ====== Bingo ====== | ||
- | 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:// | ||
+ | |||
+ | === 1. BingoBallHopper === | ||
+ | |||
+ | |||
+ | First we will make a '' | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | === 2. BingoCell === | ||
+ | |||
+ | 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 " | ||
+ | - The Cell class 3 Constructors to allow a client class more access and flexibility. | ||
+ | - accessor methods so a client class can know a cell's number (getNumber, getFont, setNumber, setFont) | ||
+ | - Change the '' | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | You can test out your BingoCell class by adapting {{ :: | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | The rest would not need to be changed since a '' | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | === 3. BingoCard === | ||
+ | |||
+ | The '' | ||
+ | - the line '' | ||
+ | - a 2-D array of BingoCells called '' | ||
+ | - a '' | ||
+ | - a '' | ||
+ | - a method '' | ||
+ | - a method '' | ||
+ | - 2 Constructors: | ||
+ | - The " | ||
+ | - The " | ||
+ | - The " | ||
+ | - The " | ||
+ | - The " | ||
+ | - a toString method that has no parameters, and returns a string representation of the board. | ||
+ | - a method ' | ||
+ | - a draw method takes a Graphics parameter to draw the board | ||
+ | |||
+ | The " | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | The draw method can be tested by a '' | ||
+ | |||
+ | === 4. BingoGame === | ||
+ | |||
+ | The '' | ||
+ | |||
+ | It is up to the player to " |
bingo.txt · Last modified: 2021/05/10 12:08 by frchris