Scripts.FranciscoCharrua.com
HotScripts.com - Over 10 web rings.
more links...
user name     password  
  Index    News    Samples    E-Mail me    Forums    Sign Up
 

TIC-TAC-TOE.JS

This script is the engine of the game. It keeps track of the moves that have been made, handles sharing turns between the human player and the computer AI, and determines who wins.



tic-tac-toe.js artificial-intelligence.js sample.html



INTERFACE.JS

This is where the tic-tac-toe object is created and the interface configured. I try to keep tic-tac-toe.js free of HTML and the HTML portion free of javascript.



TIC-TAC-TOE.HTML