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 revision
Previous revision
Next revisionBoth sides next revision
bingo [2021/05/02 10:59] frchrisbingo [2021/05/02 11:08] frchris
Line 43: Line 43:
 The ''BingoCard'' class will need: The ''BingoCard'' class will need:
   - a 2-D array of BingoCells   - a 2-D array of BingoCells
 +  - a helper method ''randomInt(int min, int max)'' that returns a random number from min to max, inclusive
   - a method that constructs the card so that:   - a method that constructs the card so that:
       - The "B" column has 5 unique numbers from 1-15       - The "B" column has 5 unique numbers from 1-15
Line 53: Line 54:
   - a draw method takes a Graphics parameter to draw the board   - a draw method takes a Graphics parameter to draw the board
  
-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 {{::simpletester.png?200|}}+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  
 + 
 +{{::simpletester.png?600|}}
  
 The draw method can be tested by a ''BingBoardTester'' that you could start by adapting the ''CellTester'' code. The draw method can be tested by a ''BingBoardTester'' that you could start by adapting the ''CellTester'' code.
bingo.txt · Last modified: 2021/05/10 12:08 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki