summaryrefslogtreecommitdiff
path: root/docs/tutorial.tex
diff options
context:
space:
mode:
authorPeter Ward <peteraward@gmail.com>2012-07-29 23:43:29 +1000
committerPeter Ward <peteraward@gmail.com>2012-07-29 23:43:29 +1000
commitc35db75eba1f67c6d6bbca9fefe7aaefb6b6d6e9 (patch)
treed32b851da74ed9b053248351f308a734b8c2a8b6 /docs/tutorial.tex
parentb62e033801895ad633f702685e50cf367ae0adee (diff)
Add start of tutorial.
Diffstat (limited to 'docs/tutorial.tex')
-rw-r--r--docs/tutorial.tex47
1 files changed, 47 insertions, 0 deletions
diff --git a/docs/tutorial.tex b/docs/tutorial.tex
new file mode 100644
index 0000000..951c7de
--- /dev/null
+++ b/docs/tutorial.tex
@@ -0,0 +1,47 @@
+\documentclass[12pt]{article}
+
+\usepackage{fontspec}
+
+\usepackage[pdfborder={0 0 0}]{hyperref}
+\usepackage[margin=20mm]{geometry}
+
+\usepackage{float}
+\usepackage{subcaption}
+
+\floatstyle{ruled}
+\newfloat{board}{bh}{brd}
+\floatname{board}{Board}
+\DeclareCaptionSubType{board}
+
+\usepackage{minted}
+
+\newmint[pyinline]{python}{}
+\newmintedfile{python}{}
+\usemintedstyle{tango}
+
+\setmainfont{Linux Libertine O}
+
+\setlength\parskip{2ex}
+\setlength\parindent{0mm}
+
+\widowpenalty=1000
+\clubpenalty=1000
+\newcommand\fasttrack[1]{\vspace{-2ex}\hfill\emph{Fast track: #1}\nopagebreak}
+
+\begin{document}
+
+\title{Writing SnakeGame bots}
+\author{Peter Ward}
+\date{July 29, 2012}
+\maketitle
+
+\input{introduction.tex}
+
+%\pagebreak
+\input{firstbot.tex}
+
+\input{random_simple.tex}
+
+\input{random_avoid.tex}
+
+\end{document}