Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
/ AlphaZero Public archive

2º Project for Laboratory of Artificial Intelligence and Data Science Class, 3º Year, 1º Semester. Bachelor in Artificial Intelligence and Data Science.

License

Notifications You must be signed in to change notification settings

seblessa/AlphaZero

Repository files navigation

AlphaZero

Assignment for Laboratory of Artificial Intelligence and Data Science Class, 3º Year,1º Semester, Bachelor in Artificial Intelligence and Data Science Project 2 – Develop an Alpha Zero Ataxx Player

Summary

In this project our goal is to implement an AlphaZero player for the game Ataxx and for the game Go.

The AlphaZero algorithm is a reinforcement learning algorithm that uses a neural network to approximate the value function and the policy function. The neural network is trained using self-play and Monte Carlo Tree Search.

Autores:

Versões

The versions of the operating systems used to develop and test this application are:

  • Fedora 38
  • macOS Sonoma 14.0
  • Windows 11

Python Versions:

  • 3.11.0

Requirements

To keep everything organized and simple, we will use MiniConda to manage our environments.

To create an environment with the required packages for this project, run the following commands:

conda create -n LabIACD python==3.11 pytorch::pytorch torchvision torchaudio -c pytorch

To install the requirements run:

pip install -r requirements.txt

Usage

There are two usaged modes for this project:

  • Training:
python3 training.py <GNxM>

Where G is the game (A for Ataxx, G for Go and P for Player (Player vs Player mode)) and NxM is the board size.

For Ataxx, the board size can be 4x4, 5x5 or 6x6. For Go, the board size can be 7x7 or 9x9.

  • Playing (Testing):
python3 play.py

About

2º Project for Laboratory of Artificial Intelligence and Data Science Class, 3º Year, 1º Semester. Bachelor in Artificial Intelligence and Data Science.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •