Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Latest commit

 

History

History
35 lines (22 loc) · 1.28 KB

File metadata and controls

35 lines (22 loc) · 1.28 KB

Back to README

Day #44: Bingo Card

Description:

After yet another dispute on their game the Bingo Association decides to change course and automize the game.

Can you help the association by writing a method to create a random bingo card?

Task:

  • Finish method:
BingoCard.getCard()
  • A bingo card contains 24 unique and random numbers according to this scheme:

    • 5 numbers from the B column in the range 1 to 15
    • 5 numbers from the I column in the range 16 to 30
    • 4 numbers from the N column in the range 31 to 45
    • 5 numbers from the G column in the range 46 to 60
    • 5 numbers from the O column in the range 61 to 75
  • The card must be returned as an array of bingo style numbers:

{"B14", "B12", "B5", "B6", "B3", "I28", "I27", ... }
  • The numbers must be in the order of their column: B, I, N, G, O. Within the columns the order of the numbers is random.