Battleship


#1

Can anyone explain what this piece of code do and how and why it is there in the game?

board[guess_row][guess_col] = "X"


#2

it will update the coordinate on the board with a X, showing the user what coordinates they already guessed, and you can use it to verify the user already attempted this coordinates.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.