Python Sample Code

All sample code is written in Python 3. Code is used for activities and assignments. Code includes a series of Go programs, starting from the basics and leading up to simple re-implementations of many of the techniques used by AlphaGo.

Contents

First Go programs - Go0 and Go1

See First Go programs - Go0 and Go1 and Sample Session with the Go1 Program.

Lecture 2, 2d Go board

Lecture 3, St. Petersburg Paradox

Lecture 5, Trees and DAGs

Lecture 6, Profiling and Optimization

Go2, optimized version of Go1

See Go2

Lecture 7, Blind Search

Lecture 8, Minimax and Alphabeta part 1

Lecture 9, Minimax and Alphabeta part 2

Lecture 10, Minimax and Alphabeta part 3

Simulation-based Go player Go3

See Go3

Lecture 12, Simulation methods

Lecture 14, Probabilistic simulation policies and Bernoulli experiments

Lecture 15 and 16, MCTS

Go4 and Go5 programs

Lecture 19, Introduction to Neural Networks (NN) and Neural Net for TicTacToe


Last modified: Oct 30, 2022, Martin Müller