[resolved]


#1

nvm! was able to resolve this.


#2

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:

randint(0,4)

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