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 11:49] frchrisbingo [2021/05/02 13:10] frchris
Line 47: Line 47:
   - a ''size'' for the of the BingoBoard.  The board will be square, because of margins, the size of the BingoCells would be a fraction of the size.   - a ''size'' for the of the BingoBoard.  The board will be square, because of margins, the size of the BingoCells would be a fraction of the size.
   - a method ''contains(int number)'' that returns true if the number is in board, and false otherwise.   - a method ''contains(int number)'' that returns true if the number is in board, and false otherwise.
-  - a method ''randomInt(int min, int max)'' that returns a random number from min to max, inclusive that is not already on the board +  - a method ''randomInt(int min, int max)'' that returns a random number from min to max, inclusive that is not already on the board (Hint: The number of possible choices would be ''Math.abs(max-min)+1''). 
-  - constructor so that the card so that:+  - 2 Constructors: one that has three parameters (top, left, and size) and another without parameters (that sets the top and left to 0, and the size fo 350). Each  constructor so that the card so that:
       - The "B" column has 5 unique numbers from 1-15       - The "B" column has 5 unique numbers from 1-15
       - The "I" column has 5 unique numbers from 16-30       - The "I" column has 5 unique numbers from 16-30
bingo.txt · Last modified: 2021/05/10 12:08 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki