\documentclass[12pt]{article}

\usepackage{geometry}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{hyperref}
\usepackage{csquotes}
\usepackage{enumitem}
\usepackage[indent=20pt]{parskip} % Space between paragraphs
\usepackage{indentfirst} % Indent first paragraph of sections

\geometry{left=3cm,top=2cm,bottom=2cm,right=3cm}

\usepackage{chngcntr}

\hypersetup{colorlinks=false,
	linkcolor=black,
	filecolor=black,
	urlcolor=black,
	bookmarks=true
}

\urlstyle{mono}

\usepackage[backend=biber, style=numeric, sorting=none]{biblatex}
\addbibresource{tex/biber.bib}

\usepackage{minted} % Code importing and formatting
\setminted{linenos, breaklines}

\usepackage[acronym, toc]{glossaries}
\makeglossaries
\input{tex/glossary.tex}

\newcommand{\program}{Imago}

\newcommand{\fref}[1]{Fig.~\ref{#1}}
\newcommand{\lref}[1]{Listing~\ref{#1}}
%\newcommand{\uurl}[1]{\underline{\url{#1}}}

\newcommand{\tabitem}{~~\llap{\textbullet}~~}

\begin{document}

\frenchspacing

\title{
	\begin{center}
		\includegraphics[width=0.4\textwidth]{img/logoUniovi.png}\hfill
		\includegraphics[width=0.3\textwidth]{img/logoEII.png}
	\end{center}~\\[10pt]
	\program\\
	\large An AI player of the game of Go
}

\author{Íñigo Gutiérrez Fernández}

\date{}

\maketitle

\thispagestyle{empty}

\begin{figure}[h]
	\begin{center}
		\includegraphics[width=0.6\textwidth]{img/imago.jpg}
	\end{center}
\end{figure}

\clearpage

\begin{abstract}
	The game of Go presents a complex problem for machine learning by virtue of
	containing a very wide and deep decision tree. This project has tried to
	tackle the problem by using different decision algorithms and also provides
	a full implementation of the game. These tools could be used by players and
	developers as a foundation for other machine learning projects or to simply
	keep studying the game.
\end{abstract}

\clearpage

\section*{Acknowledgements}

To Vicente García Díaz, for helping me learning to program on my first year at
the school and directing me in this project on my last.

To José Manuel Redondo López \cite{plantillaRedondo}, for making an extensive
template on which the structure of this documentation is extensively based.

To all the people who have provided their time, support, ideas and company, all
fundamental for this project.

\clearpage

\section*{Copyright notice}

\begin{displayquote}

	Copyright (C) 2021 \textbf{ÍÑIGO GUTIÉRREZ FERNÁNDEZ}.

	\textit{Permission is granted to copy, distribute and/or modify this
	document under the terms of the GNU Free Documentation License, Version 1.3
	or any later version published by the Free Software Foundation; with the
	Copyright notice as an Invariant Section, no Front-Cover Texts, and no
	Back-Cover Texts.  A copy of  the license  is  included in  the  section
	entitled ``GNU Free Documentation License''.}

\end{displayquote}

Although this document uses the GNU Free Documentation License to keep its
contained information free, bear in mind that it isn't software documentation or
a manual or guide of any kind, and serves just as the documentation for the
author's Degree's Final Project.

This document is based on a template by José Manuel Redondo López, associate
professor of the University of Oviedo. The copyright notice he asks for
inclusion of to use this template is included here.

\begin{displayquote}

	Copyright (C) 2019 \textbf{JOSÉ MANUEL REDONDO
	LÓPEZ}. \cite{plantillaRedondo}

	\textit{Permission is granted to copy, distribute and/or modify this
	document under the terms of the GNU Free Documentation License, Version 1.3
	or any later version published by the Free Software Foundation; with no
	Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.  A  copy
	of  the license  is  included in  the  section entitled ``GNU  Free
	Documentation License''.}

\end{displayquote}

\clearpage

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{4}
\tableofcontents

\clearpage

\counterwithin{figure}{section}
\renewcommand{\listfigurename}{Figures}
\listoffigures

\clearpage

\renewcommand{\listoflistingscaption}{Listings}
\counterwithin{listing}{section}
\listoflistings

\clearpage

\input{tex/introduction.tex}
\clearpage

\input{tex/planning.tex}
\clearpage

\input{tex/systemAnalysis.tex}
\clearpage

\input{tex/systemDesign.tex}
\clearpage

\input{tex/implementation.tex}
\clearpage

%\input{tex/results.tex}
%\clearpage

\input{tex/conclusions.tex}
\clearpage

\printglossaries
\clearpage

% References (bibliography)

\setcounter{secnumdepth}{0}
\section{References}
\printbibliography[type=article,title={Cited articles},heading=subbibintoc]{}
\printbibliography[type=online,title={Online resources},heading=subbibintoc]{}
\clearpage

\input{tex/license.tex}

\end{document}
