I have an assignment for my computer science using Visual Basic in Visual Studio 2017.
"BAD MINESWEEPER
Build a 10 by 10 matrix (two-dimensional array) of integers
Initialize the entire array with 0
Randomly place a "9" in the array
Randomly place 5 "5" in the array.
Playing the game:
each turn pick an element of the array by inputting the row and column number.
If you find the "9" you win.
If you find 3 of the 5 "5" you lose."
I cannot, for the life of me, figure out this array stuff! Am I supposed to pick a random array element and set that element to 9, or am I supposed to set the values, then shuffle the array? I do not know how to do either and I need help ASAP. Thank you!
Aucun commentaire:
Enregistrer un commentaire