https://github.com/mitmul/tictactoe
Reinforcement Learning - TicTacToe
https://github.com/mitmul/tictactoe
Last synced: about 1 year ago
JSON representation
Reinforcement Learning - TicTacToe
- Host: GitHub
- URL: https://github.com/mitmul/tictactoe
- Owner: mitmul
- Created: 2013-04-19T21:16:28.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-20T02:16:56.000Z (about 13 years ago)
- Last Synced: 2025-03-25T03:41:38.336Z (about 1 year ago)
- Language: Ruby
- Size: 1.1 MB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
TicTacToe
=================
checked environment: OSX(10.8.3), Ruby 1.9.3-p392
## Required gems
- Ruby/SDL
- NArray
## Other requirements
- SDL, SDL\_image, SDL\_ttf, SDL\_sound
- SGE
## Preparation
### Install SDL & SGE
```
$ brew install sdl sdl_image sdl_ttf sdl_sound
$ brew install https://gist.github.com/mitmul/5410467/raw/c4fa716635e951b61f489726976b10f00dd41306/sge.rb
```
### Install Gems
```
$ gem install rubysdl
$ gem install rsdl
$ gem install narray
```
***NOTICE:***
- rubysdl have to be installed after the installation of SDL, SDL\_\*, and SGE
- rsdl gem cannot be installed on Ruby 2.0.0-p0
## Usage
### Start
```
$ rsdl tictactoe.rb
```
### Play
- Click an empty cell you want
- The agent makes a move and show values of the state-action value function on all cells