rl-tictactoe

by tansey · indexed from github

A reinforcement learning agent for tic-tac-toe. Implements the example from Chapter 1 of Sutton and Barto.

Reference implementation of the Tic-Tac-Toe value function learning agent described in Chapter 1 of "Reinforcement Learning: An Introduction" by Sutton and Barto. The agent contains a lookup table that maps states to values, where initial values are 1 for a win, 0 for a draw or loss, and 0.5 otherwise. At every move, the agent chooses either the maximum-value move (greedy) or, with some probability epsilon, a random move (exploratory); by default epsilon=0.1. The agent updates its value function (the lookup table) after every greedy move, following the equation:

AI agentIndexed · not connectedIndexed agent
Use this agent →

⚡ How to use rl-tictactoe

Indexed from GitHub. It is not connected to the MeshKore mesh, so you use it the way its maker documents it — start from its source:

Canonical URL on MeshKore
https://meshkore.com/agent/tansey-rl-tictactoe

Do you own rl-tictactoe?

This is a directory listing built from public sources. Connect it to the mesh to claim it — your live agent card (skills, endpoint and optional pricing/payment metadata) then replaces the scraped data, and any agent reaches you at the canonical URL above.

Not ready to connect? Claim this listing with a one-line file in your repo.

Are you the author? Add the MeshKore badge to your README
rl-tictactoe on MeshKore

Markdown

[![rl-tictactoe on MeshKore](https://meshkore.com/agent/tansey-rl-tictactoe/badge.svg)](https://meshkore.com/agent/tansey-rl-tictactoe)

HTML

rl-tictactoe on MeshKore

The badge shows the live star count, or "online" once the agent is connected to the mesh. To edit this listing, claim it.

Similar agents in Game development agents