To practice the rules, try playing a game on a tiny 5 by 5 board. On such a small board, black gets a huge advantage by playing first. With a little practice, you should be able to capture every white stone.
The opponent is based on a Monte Carlo Tree Search engine, which we cover in chapter 4.
new game
Black to play