CSci 581-01: Special Topics in Computer Science
Object-Oriented Design & Programming
Spring Semester 1999

Assignment #1
Due Thursday, 4 February, Midnight


Note: This exercise is based on a practice programming problem used at the ACM Southeast Regional programming contest last fall.

Note: I also put a few comments concerning this assignment on the Class Bulletin Board.

Bingo is a popular game played on a 5 by 5 grid, called a card. Normally we associate each column of the card with the letters B-I-N-G-O from left to right. Each square on the grid has a number in it. As numbers are selected, they are marked off the card. When a line of five squares, horizontal, vertical or diagonal, is marked out, the card is a winner. When a player gets a winning card, he or she shouts BINGO!

A sample bingo card is shown below:

B

I

N

G

O

12

28

31

49

66

3

26

45

53

75

10

17

33

59

67

7

19

42

55

74

2

23

37

46

70

If the numbers 3, 45, 53, 75, and 26 are picked, then there will be a horizontal bingo on the second row.

The five entries in a column are random integers in the range selected from the ranges indicated below:

There are no duplicate values on a card.

The goal of this assignment is to design and implement a Java program to play a game of bingo.


UP to CSci 581 Assignments page?


Copyright © 1999, H. Conrad Cunningham
Last modified: Wed Apr 7 19:35:56 CDT