Skip to content

Instantly share code, notes, and snippets.

@guimaion
guimaion / battleship.py
Last active November 17, 2022 11:58
This is a simple battleship game, made with lists on python. This is the first game I ever made.
from random import randint
#initializing board
board = []
for x in range(5):
board.append(["O"] * 5)
def print_board(board):
for row in board: