@@ -0,0 +1,1455 @@
+%22%22%22%0ACreated on Code Academy in python lauguage project.%0ACreated by Jason R. Pittman %0ACreated on 3/19/16%0ACode partially modified from orginial state.%0A%22%22%22%0A%0A%0A%0Afrom random import randint%0A%0Aboard = %5B%5D%0A%0Afor x in range(5):%0A    board.append(%5B%22O%22%5D * 5)%0A%0Adef print_board(board):%0A    for row in board:%0A        print %22 %22.join(row)%0A%0Aprint %22Let's Play Battleship!%22%0Aprint_board(board)%0A%0Adef random_row(board):%0A    return randint(0, len(board) - 1)%0A%0Adef random_col(board):%0A    return randint(0, len(board%5B0%5D) - 1)%0A%0Aship_row = random_row(board)%0Aship_col = random_col(board)%0Aprint ship_row%0Aprint ship_col%0A%0A#This is the main part of the game%0A%0Afor turn in range(4):%0A    print %22turn%22, turn + 1%0A    guess_row = int(raw_input(%22Guess Row:%22))%0A    guess_col = int(raw_input(%22Guess Col:%22))%0A%0A#This is the winning guess area of the game. %0A%0A    if guess_row == ship_row and guess_col == ship_col:%0A        print %22Congratulations! You sunk my battleship you bum!%22%0A        break%0A#These are the losing combinations%0A%0A    else:       %0A        if (guess_row %3C 0 or guess_row %3E 4) or (guess_col %3C 0 or guess_col %3E 4):%0A            print %22Oops, that's not even in the ocean.%22%0A        elif(board%5Bguess_row%5D%5Bguess_col%5D == %22X%22):%0A            print %22You guessed that one already.%22%0A        else:%0A            print %22You missed my battleship Ha Ha !%22%0A            board%5Bguess_row%5D%5Bguess_col%5D = %22X%22%0A        if turn == 3:%0A            print %22Game Over%22%0A    # Print (turn + 1) here!%0A        print_board(board)%0A

Create Battle_ship.py