bingo
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
bingo [2021/05/01 10:34] – created frchris | bingo [2021/05/10 12:08] (current) – frchris | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Bingo ====== | ====== Bingo ====== | ||
- | It's not just a song from summer camp, its an old-timey game![[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. BingoBoard === | ||
+ | {{ :: | ||
+ | |||
+ | 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 (that takes a Graphics parameter) which calls all the '' | ||
+ | - if you are using the starting code, fix the bug in the '' | ||
+ | |||
+ | The " | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | The draw method can be tested by {{ :: | ||
+ | {{:: | ||
+ | |||
+ | === 4. BingoGame === | ||
+ | |||
+ | The '' | ||
+ | |||
+ | It is up to the player to " |
bingo.txt · Last modified: 2021/05/10 12:08 by frchris