Skip to content

Instantly share code, notes, and snippets.

View drum35's full-sized avatar

Justin Rose drum35

View GitHub Profile
@drum35
drum35 / battleship.py
Created August 25, 2016 21:44
my first project
from random import randint
#empty board with 5 positions of 0 symbol
board = []
for x in range(5):
board.append(["O"] * 5)
#prints out board
def print_board(board):
for row in board: