Hi, I am trying to make a program that guesses a random number and then the user has to guess that random number by entering a guess for the row and a guess for the column. I am making a grid to display the amount of rows and columns and should have an "X" where the user's guess is and hint characters (<, >, ^, v) for giving hints as to which way the point really is.
Here's what my grid should look like if the user enters 2 for row and 3 for column and the row number secret point is higher and the column number secret point is smaller:
. . < . . .
v v X v v v
. . < . . .
. . < . . .
But mine is all messed up and looks more like this:
. . . > . . .
. v . vX . v > . v . v .