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 revisionPrevious revision
Next revisionBoth sides next revision
bingo [2021/05/02 10:36] frchrisbingo [2021/05/02 10:51] frchris
Line 25: Line 25:
  
 For now, let a cell that is "off" represent an uncalled number, and a "on" cell be one that the player has clicked on when that number is called. Later you may wish represent a called number differently. The class should have the following: For now, let a cell that is "off" represent an uncalled number, and a "on" cell be one that the player has clicked on when that number is called. Later you may wish represent a called number differently. The class should have the following:
-  - Constructors that can will allow a client class to initialize the digit (the number 0 can be used as the center "free" cell+  - The Cell class 3 Constructors to allow a client class more access and flexibility.  Add at least one more constructor to the ''BingCell'' class that uses one of the other ''Cell'' class's constructors. Remember to have a parameter to initialize the BingoCell's number
   - 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 ''draw'' method so that if the number is 0, it will draw "free" instead.
    
 You can test out your BingoCell class by adapting {{ ::celltester.java |CellTester.java}} to construct new ''BingoCell''s in the ''resetCells()'' method.   You can test out your BingoCell class by adapting {{ ::celltester.java |CellTester.java}} to construct new ''BingoCell''s in the ''resetCells()'' method.  
  
-{{::screen_shot_2021-05-02_at_7.26.45_am.png?600|}}+{{::screen_shot_2021-05-02_at_7.26.45_am.png?600|hint}}
  
 The rest would not need to be changed since a ''BingoCell'' is a ''Cell'' Eventually, your ''BingoBoard'' class would be the ultimate test of your ''BingoCell'' class! The rest would not need to be changed since a ''BingoCell'' is a ''Cell'' Eventually, your ''BingoBoard'' class would be the ultimate test of your ''BingoCell'' class!
bingo.txt · Last modified: 2021/05/10 12:08 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki