Engr 691-12: Special Topics in Engineering Science
Software Architecture
Fall Semester 2000

Assignment #1
Due Monday, 18 September, 2000 (Revised)


Note: This exercise is based on a practice programming problem used at the ACM Southeast Regional programming contest a couple of years ago.

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 691 Assignments page?


Copyright © 2000, H. Conrad Cunningham
Last modified: Sun Oct 1 15:17:45 CDT 2000