Skip to content

CentralArkansasCodeKata/Bingo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Bingo

Bingo is a children’s game of chance, sometimes played by adults for fun or money. Each player has a card of numbers arranged in a five-by-five grid with five randomly-chosen numbers from 1 to 15 in the first column, from 16 to 30 in the second column, 31 to 45 in the third column, 46 to 60 in the fourth column, and 61 to 75 in the fifth column; the central space is “free” and is considered to be occupied. Then a caller randomly calls numbers from 1 to 75 without replacement, each player marking the corresponding number, if it is present on their card, as occupied. The first player to have five occupied numbers in a row horizontally, in a column vertically, or along either of the two major diagonals is the winner.

###Task Your task will be to write a program that will determine the average number of calls required before a single card achieves bingo.

For bonus points: Determine the average number of calls required before any card achives bingo when there are at least 500 cards in play.

###Input None

###Output Output the answer to the above questions listed in the Task section.

###Reference Thanks to programmingpraxis.com's site for this Code Kata. They have some great puzzles on their site and I'm sure we'll use some of them as we continue to code kata.

Answer Submission Instructions

  1. Fork this github repository.
  2. Write your solution to the problem.
  3. Commit your solution to the repository.
  4. Post a link to your fork as a comment to this Bingo post on codekata.co.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published