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/02 10:36] – frchris | bingo [2021/05/02 11:35] – frchris | ||
---|---|---|---|
Line 5: | Line 5: | ||
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:// | ||
- | === BingoBallHopper === | + | === 1. BingoBallHopper === |
First we will make a '' | First we will make a '' | ||
- | {{:: | + | {{:: |
- | === BingoCard/BingoCell === | + | === 2. BingoCell === |
Next we turn to the player' | Next we turn to the player' | ||
Line 25: | Line 25: | ||
For now, let a cell that is " | For now, let a cell that is " | ||
- | - Constructors | + | - The Cell class 3 Constructors |
- accessor methods so a client class can know a cell's number (getNumber, getFont, setNumber, setFont) | - 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 {{ :: | You can test out your BingoCell class by adapting {{ :: | ||
- | {{:: | + | {{:: |
- | The rest would not need to be changed since a '' | + | The rest would not need to be changed since a '' |
+ | {{:: | ||
+ | === 3. BingoCard === | ||
The '' | The '' | ||
- | - a 2-D array of BingoCells | + | |
- | - a method that constructs | + | |
+ | - a '' | ||
+ | - a '' | ||
+ | - a method | ||
+ | - a method '' | ||
+ | - a constructor so that the card so that: | ||
- The " | - The " | ||
- The " | - The " | ||
Line 48: | Line 58: | ||
- a draw method takes a Graphics parameter to draw the board | - a draw method takes a Graphics parameter to draw the board | ||
- | The " | + | The " |
+ | |||
+ | {{:: | ||
The draw method can be tested by a '' | The draw method can be tested by a '' | ||
- | === BingoGame === | + | === 4. BingoGame === |
The '' | The '' |
bingo.txt · Last modified: 2021/05/10 12:08 by frchris