Skip to content

Instantly share code, notes, and snippets.

$1$oLGE.0t0$OHwPT/hfN.mUTf7BHG4k10
@andy-rash
andy-rash / Battleship.py
Created December 24, 2017 04:44
Battleship
from random import randint
board = []
for x in range(0, 5):
board.append(["O"] * 5)
def print_board(board):
for row in board:
print(" ".join(row))
% !TEX TS-program = XeLaTeX
% DOCUMENT FORMATTING
\documentclass[12pt]{article}
\usepackage{fontspec}
\usepackage{fullpage}
\usepackage{fancyhdr} % better looking title
% MATH FORMATTING
\usepackage{amsmath}