nvm! was able to resolve this.


uhm.. this line:

ship=randint(0, 5)

you are items in board are indexed at 0,1,2,3,4. but randint can also generate 5, i would do:


it is really easy to manipulate the list based on the users guess:

board[guess] = "X"

guess will hold the index, which you can use to access board, and put a * for a wrong guess or a X for the winning guess