fork(1) download
  1. # CodeIQ Q1326 Generate BINGO Card
  2.  
  3. class Bingo
  4. def self.generate_card
  5. print <<EOS
  6.  B | I | N | G | O
  7. 13 | 22 | 32 | 48 | 61
  8.  3 | 23 | 43 | 53 | 63
  9.  4 | 19 | | 60 | 65
  10. 12 | 16 | 44 | 50 | 75
  11.  2 | 28 | 33 | 56 | 68
  12. EOS
  13. end
  14. end
  15.  
  16.  
  17. Bingo.generate_card
Success #stdin #stdout 0.01s 7408KB
stdin
Standard input is empty
stdout
 B |  I |  N |  G |  O
13 | 22 | 32 | 48 | 61
 3 | 23 | 43 | 53 | 63
 4 | 19 |    | 60 | 65
12 | 16 | 44 | 50 | 75
 2 | 28 | 33 | 56 | 68