Question: Submission Instruction: to help you debug your code we are providing the following BingoTest.java * This file contains the actual test code we use along
Submission Instruction: to help you debug your code we are providing the following BingoTest.java * This file contains the actual test code we use along with the test cases we are running for the Bingo problem Clock Test.java *This file contains the actual test code we use along with the test cases we are running for the Clock problem. To use them, create a class called Bingo Test in your eclipse project and then paste the code from Bingo Test into that file. Same for ClockTest. In order to submit your code, you just need to submit your Bingo.java (which includes Bingo, Player, and Card classes) and Clock.java classes on Stepik. Bingo.java (60 points) We want to write a Java program to simulate a simplified version of bingo game. Players use cards that feature five columns of five cells each (5x5 matrix), with every cell containing a number between 1 to 90. In each step of the game a number between 1 and 90 is called randomly and plavers need to mark the number in their card if they have it. The first player who marks all of the numbers in one row of one of his/her cards is the winner of the game. Following is the skeleton of the classes that you need to complete: //class Bingo should have an array of Player objects as its instance field class Bingo ( public Bingo (Player players) Creates an object of Bingo game using an array of Player objects passed as an argument public String play (int number) This is the main method for playing the game. It takes a number (the number that is called) and marks the cells with that number in all players' cards. It also returns the name of the winner, if any. If there is no winner, it return an empty string. If there is more than one winner, it returns the name of all winners as one string, separated by space (again, no space
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
