I am stuck on the Battleships section


#1

ermahgerd!!! erm sterk ern bertlesherps serctern!!1 plerse herlp mer!!!


#2

I would suggest posting your code, error, and what your struggling with that error so moderators and help deskers can get back to you faster and with better answers :smiley:


#3

No, I mean I don't have a code. I don't understand the instructions.


#4

Ah ok! Well in that case, just tell what your confused about the instructions and we can help you out that way.


#5

These functions should return a random row index and a random column index from your board, respectively. Use randint(0, len(board) - 1).

That.


#6

Call each function on board.

Oh, and that.


#7

Ok. You are obviously not at the very beginning of 13. Battleship. What is the code for your lesson previously? I believe these codes do transfer over throughout the lesson since you are building the game from scratch


#8

board = []
for i in range(0,5):
    board.append(["O"]*5)
def print_board(board):
    for row in board:
        print" ".join(row)

print_board(board)

There you go.


#9

Hah, I duns it now. fanks 4 da hulp, fwends


#10

Well great! Glad you finished it on your own! That is good for any coder to be able to do!


#11

thanks buddy <3 great help