PHP Classes

File: index.html

Recommend this page to a friend!
  Classes of Amin Saeidi  >  Tic-Tac-Toe  >  index.html  >  Download  
File: index.html
Role: Auxiliary data
Content type: text/plain
Description: example
Class: Tic-Tac-Toe
Tic-Tac-Toe game using alpha beta search algorithm
Author: By
Last change: Bug fix in IE.
Date: 5 years ago
Size: 1,154 bytes


Class file image Download
	<script type="text/javascript" src="libs/jquery-1.4.2.js"></script>
	<script type="text/javascript" src="libs/raphael-min.js"></script>
	<script type="text/javascript" src="libs/TicTacToe.js"></script>
	<script type="text/javascript" src="libs/Position.js"></script>
	<script type="text/javascript">
		//Second parameter can be passed to TicTacToe constructor to change default properties:
		//e.g. var ttt = new TicTacToe('board', {size:600, stroke_width: 4});
		var ttt = new TicTacToe('board');
		if (Const.TURN == Const.COM) {;
			$('#debug').html('It is your turn. Please start the game!');
	<style type="text/css">
	html, body{
		padding: 0;
		text-align: center;	
	#board, #debug{
		margin: 10px auto;
	<div id="debug" style="height: 40px; width 100%; background-color: #FFF;text-align:center; font-size:20pt;padding:10px"></div>
	<div id="board"></div>