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/01 16:13] frchrisbingo [2021/05/01 16:20] frchris
Line 5: Line 5:
 It's not just a song from summer camp, its an old-timey game: Here is a [[https://www.youtube.com/watch?v=nGCEpUAnkSg|Video Explaining the rules]] It's not just a song from summer camp, its an old-timey game: Here is a [[https://www.youtube.com/watch?v=nGCEpUAnkSg|Video Explaining the rules]]
  
-First we will make a ''BingoBall'' class, then a ''BingoCard'' class, and finally we will make a ''BingoGame'' class.+First we will make a ''BingoCell'' class, then a ''BingoCard'' class, and finally we will make a ''BingoGame'' class.
  
-The ''BingoBall'' class would be a subclass of {{ ::cell.java |Cell}}  that would add the attributes of a number and a font. It will have its own draw method that can draw its number.  Here is a hint on how to build upon the draw method of the parent class: {{::drawhint.png?200|}} 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:+The ''BingoCell'' class would be a subclass of {{ ::cell.java |Cell}}  that would add the attributes of a number and a font. It will have its own draw method that can draw its number.  Here is a hint on how to build upon the draw method of the parent class: {{::drawhint.png?200|}} 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   - Constructors that can will allow a client class to initialize the digit (the number 0 can be used as the center "free" cell
   - accessor methods so a client class can know a cell's number   - accessor methods so a client class can know a cell's number
    
-You can test out your BingoCell class by adapting {{ ::celltester.java |CellTester.java}} to construct new ''BingoBall''s in the ''resetCells()'' method.  The rest would not need to be changed since a ''BingoBall'' is a ''Cell'' Eventually, your ''BingoBoard'' class would be the ultimate test of your ''BingoBall'' class!+You can test out your BingoCell class by adapting {{ ::celltester.java |CellTester.java}} to construct new ''BingoCell''s in the ''resetCells()'' method.  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