User Tools

Site Tools


bingoball

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
bingoball [2021/11/30 09:06] frchrisbingoball [2021/11/30 09:20] (current) 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]]. We will start with the machine that randomly chooses the Bingo Ball to be called.  Next we will generate the player's BingoCard which the user needs to mark until a winning Bingo pattern is made.  Finally we will make a ''BingoGame'' class that will put all these elements together by showing the called numbers, the player's BingoCards and a BINGO button if the player thinks they have a winning Bingo Pattern. 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]]. We will start with the machine that randomly chooses the Bingo Ball to be called.  Next we will generate the player's BingoCard which the user needs to mark until a winning Bingo pattern is made.  Finally we will make a ''BingoGame'' class that will put all these elements together by showing the called numbers, the player's BingoCards and a BINGO button if the player thinks they have a winning Bingo Pattern.
  
 +Now we have a plan, so next we make a class to represent the BingoBall.  It should have 
 +  - Two instance fields
 +  - A "no-args" constuctor 
 +  - A Constructor that initializes the two Fields
 +  - "Mutator" and "Access" methods to get and set the two fields
 +  - override the default "toString" method to returns something like "B-15" or "I-16"
 +  - A client class to test your ''BingoBall'' It should
 +      - Make a 2-D array of BingoBalls with 5 rows and 15 columns so arr[0][0] has B-1, arr[1][0] has "I-16" arr[4][14] has "O-75"
 +      - Print out the Array
 +
 +After you know about ArrayLists, you can continue with the full [[Bingo]] project
  
bingoball.1638281203.txt.gz · Last modified: 2021/11/30 09:06 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki