User Tools

Site Tools


bingo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
bingo [2021/05/06 16:49]
frchris
bingo [2021/05/10 12:08] (current)
frchris
Line 40: Line 40:
  
 === 3. BingoBoard === === 3. BingoBoard ===
 +{{ ::bingoboard.java |BingoBoard.java}}
  
 The ''BingoBoard'' class will need: The ''BingoBoard'' class will need:
Line 55: Line 56:
       - The "O" column has 5 unique numbers from 61-75       - The "O" column has 5 unique numbers from 61-75
   - a toString method that has no parameters, and returns a string representation of the board.  Use ''\n'' to make a newline in the String to get different rows. It should be similar to : {{::bingotext.png?200|}}   - a toString method that has no parameters, and returns a string representation of the board.  Use ''\n'' to make a newline in the String to get different rows. It should be similar to : {{::bingotext.png?200|}}
-  - a method 'hasBingoSelected' (that returns a boolean) which detects a win for the rows, columns, and diagonals Sometimes there are variants of the game such as "blackout," or "corners," or "box" variants).{{::screen_shot_2021-05-02_at_10.29.23_am.png?600|}}   +  - a method ''hasBingoSelected'' (that returns a boolean) which detects a win for the rows, columns, and diagonals Sometimes there are variants of the game such as "blackout," or "corners," or "box" variants).{{::screen_shot_2021-05-02_at_10.29.23_am.png?600|}}   
   - a draw method (that takes a Graphics parameter) which calls all the ''BingoCell''s in ''board'' to draw themselves.   - a draw method (that takes a Graphics parameter) which calls all the ''BingoCell''s in ''board'' to draw themselves.
 +  - if you are using the starting code, fix the bug in the ''hasCornersSelected'' method.
  
 The "Extreme Programming" approach is to begin by writing one or more  client classes of ''BingoBoard'' to test each of these specifications. The first 4 can be done with a text based application, starting off with a simple one like  The "Extreme Programming" approach is to begin by writing one or more  client classes of ''BingoBoard'' to test each of these specifications. The first 4 can be done with a text based application, starting off with a simple one like 
bingo.1620334141.txt.gz ยท Last modified: 2021/05/06 16:49 by frchris