|
beginner project -- Bingo!
I was just recently played bingo, and I decided: "Hey, I could probably make a bingo program!".
The language would be C++ with a bingo class.
A two-dimensional array would hold 5 colums with an array of random numbers one through 15.
The idea would be that there are AI boards, and one computer board.
Random numbers are called out, and when all the numbers are called on somebodie's board ( trying to figure out how to keep track of a line ) , the player that wins ( either AI or human ), gets a point.
I could keep track of numbers that are called by marking an equivelent array with ones and zeroes, then comparing them.
Is this feasable? What do all think?
|