\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
\usepackage{multicol} % Multiple columns

\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\\
	\large (Juego Go basado en inteligencia artificial)\\
}

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

\date{Oviedo, June 2023}

\maketitle

\thispagestyle{empty}

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

\clearpage

\begin{abstract}
	With a history of more than 3000 years, the game of Go presents a complex
	problem for machine learning by virtue of containing a very wide and deep
	decision tree. Finally, in 2016, computer scientists from DeepMind were able
	to create an artificial intelligence capable of defeating profesional
	players of the game with a combination of old and new strategies. This
	project has tried to follow their steps and tackle the problem by using
	different decision algorithms, such as Monte Carlo Tree Search and neural
	networks, and also provides a full implementation of the game, playable on
	its own or available as a library for the engine developed for this project
	and potentially others to come. The resulting strength of the developed
	algorithms is no match to that of a profesional player, but it shows the
	possibilities achievable just with the limited resources employed on this
	project. 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/appendixes.tex}
\clearpage

\input{tex/conclusions.tex}
\clearpage

% Glossary and acronyms

\printglossary[title=Glossary of Go Terminology]
\makeatletter
\def\@currentlabelname{\@glotype@main@title}
\label{glossary}
\makeatother

\printglossary[type=\acronymtype]
\makeatletter
\def\@currentlabelname{\@glotype@acronymtype@title}
\label{acronyms}
\makeatother

\clearpage

% References (bibliography)
\printbibliography[heading=bibintoc]{}
\clearpage

\input{tex/license.tex}

\end{document}
