blob: a76760b230eb619296bfefde9c380d3f6658905b (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
\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}
\usemintedstyle{tango}
\newmint[py]{python}{}
\newminted{python}{}
\newmintedfile{python}{}
\newminted[shell]{sh}{}
\setmainfont{Linux Libertine O}
\setmonofont[AutoFakeBold]{Inconsolata}
\setlength\parskip{2ex}
\setlength\parindent{0mm}
%\widowpenalty=1000
%\clubpenalty=1000
\newcommand\fasttrack[1]{\vspace{-2ex}\hfill\emph{Fast track: #1}\nopagebreak}
\newcommand\footnoteurl[1]{\footnote{\url{#1}}}
\begin{document}
\title{Writing SnakeGame bots}
\author{Peter Ward}
\date{July 29, 2012}
\maketitle
\input{introduction.tex}
\input{firstbot.tex}
\input{random_simple.tex}
% this section is rather long,
% perhaps take an intermission to explain the board
% and getting width, height
% and modulo properly?
\input{random_avoid.tex}
\input{look_ahead.tex}
\break
\input{closest_apple.tex}
\end{document}
|