Reinforcement Learning Lab

Eight reinforcement-learning labs: classical, deep, policy optimisation, bandits, planning and multi-agent, with experiments trained for real in your browser.

39interactive experiments

Tic-Tac-Toe vs a random opponent

The agent plays X and the O opponent moves uniformly at random; 19,683 states.

Environments library · Implemented and tested Intermediate

Goal

Beat the random opponent.

State space

Encoded 3×3 board

Action space

Nine cells

Reward function

+1 win, 0 draw, -1 loss, -5 for an illegal move

Success conditions

A win

Failure / termination conditions

End of the game

How it was tested

Win, draw and illegal-move rules are tested.

Suitable algorithms

Interactive experiment

Tic-Tac-Toe against a random opponent