Hi. I'm creating a program in c++ that plays bingo. So far I have the card, however I don't know how I can possibly create markers that would 'x' out the numbers that have already been called out. How can I make the program play the game?
Here's the code I have so far:
Honestly with the number of backflips and workarounds that you would have to do to get a game even as seeminly simple as "BINGO" to work you'd be far better off spending half of that time to learn how to do it in SFML.
Is it just me or you have loops that run only once and two dimensional arrays with only one row? This is unnecessary, recheck your design of the bingo board. Any way, to play you should probably have a random number every turn and if it's on the board, replace it with a certain integer to mark it (say 0). Have another function to check if you won every turn.