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 11:35] – frchris | bingo [2021/05/02 13:47] – frchris | ||
---|---|---|---|
Line 47: | Line 47: | ||
- a '' | - a '' | ||
- a method '' | - a method '' | ||
- | - a method '' | + | - a method '' |
- | - a constructor so that the card so that: | + | - 2 Constructors: |
- The " | - The " | ||
- The " | - The " | ||
Line 54: | Line 54: | ||
- The " | - The " | ||
- 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. Use '' |
- | - a method 'hasBingo' (that returns a boolean) which detects a win for the rows, columns, and diagonals | + | - a method 'hasBingoSelected' (that returns a boolean) which detects a win for the rows, columns, and diagonals |
- a draw method takes a Graphics parameter to draw the board | - a draw method takes a Graphics parameter to draw the board | ||
Line 62: | Line 62: | ||
{{:: | {{:: | ||
- | The draw method can be tested by a '' | + | The draw method can be tested by a '' |
=== 4. BingoGame === | === 4. BingoGame === |
bingo.txt · Last modified: 2021/05/10 12:08 by frchris