Publisher review:Tic-Tac-Toe Game with Perl script uses reinforcement learning to implement Tic-Tac-Toe game. In this project reinforcement learning is used for implementing Tic-Tac-Toe game.
There are two scripts for learning tt.cgi and for playing play.cgi. The script for playing is using values obtained during the learning and saved in the text file.
Learning can be done by running perl script tt.cgi from command prompt. After results of learning are saved and transfered to web server someone can play with the program over the web.
Learning is using a simple formula for update: V(s)=V(s) alpha(V(s')-V(s)) where s is state after move, s' is state before move
The learned values are saved in the the file level1.txt in the format s:V(s) The board position s is represented by string of 9 digits where 0 for 0 , 1 for RL program or x and 2 for emty cell.
During the learning the program counts the number of wins for each 500 games and prints all results in the end. That number always bigger in the end then in the beginning because the program starts without any knowledge how to play.
Tic-Tac-Toe Game with Perl is a Perl script for Games scripts design by cifnet.com.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
script Tic-Tac-Toe Game with Perl script uses reinforcement learning to implement Tic-Tac-Toe game.
Operating system:Windows / Linux / Mac OS / BSD / Solaris