Tic-Tac-Toe Game with Perl Perl script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: ttt.zip
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Perl
  • Price:Freeware
  • Company: cifnet.com (View more)

Tic-Tac-Toe Game with Perl script description:




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

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5