im trying to get my code to work, but it won't. python reads the y axis as top to down (or at least that is how my code works anyway) so im trying to make it go bottom to top, as how normal crodents would go. but for some reason it dosent work. also, im finding it hard trying to describe my code to anyone playing it(not in real life, I mean what the code is printing out), what better way can I get across how this is going to work? I know the way im doing it is weird as well, can you tell me a way to do what im trying to do better?
shipboard1 =  guessboard1 =  P1 =  guessboard2 =  shipboard2 =  P2 =  x = 1 y = 1 for i in range(10): guessboard1.append(["O"] * 10) guessboard2.append(["O"] * 10) shipboard1.append(["O"] * 10) shipboard2.append(["O"] * 10) P1.append(shipboard1) P1.append(guessboard1) P2.append(shipboard2) P2.append(guessboard2) def figure_Y_axis(y): if y == 1: y = 9 elif y == 2: y = 8 elif y == 3: y = 7 elif y == 4: y = 6 elif y == 6: y = 4 def print_board2(board): for row in board: print " ".join(row) def print_board(Player): for eachboard in Player: for row in eachboard: print " ".join(row) print "" print "Welcome to battleships! 2 player edition!" print "This will be a 10X10 grid." print "Let's start with you, Player 1!" while x == 1: try: P1_Ship_x = int(raw_input("Choose the x crodent of where you want the head of your first ship, player 1!:")) P1_Ship_y = int(raw_input("And now the y crodent!:")) P1_Ship_x -= 1 P1_Ship_y -= 1 figure_Y_axis(P1_Ship_y) if x == 1: x += 1 except ValueError: print "Don't you want to play the game? Let's try again." shipboard1[P1_Ship_y][P1_Ship_x] = "X" print_board2(shipboard1) print "Now that we have figurd out where the ship's head is, tell us what direction of the rest of the ship to go." print "(If you need to know where the head is, look at the board at the top, scrool up to see the entire board (10X10))" direction = raw_input("((Capital sensitive)H = Horizontal, V = Vertical, D = Diagonal)")