This repository has been archived on 2025-08-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
GGS/games/tic-tac-toe-js/index.html
2011-01-30 05:57:48 +01:00

33 lines
No EOL
990 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Tic Tac Toe</title>
<script src="js/GameServer.js"></script>
<script src="js/GGS.js"></script>
<script src="js/TicTacToe.js"></script>
<script src="js/TicTacToeClient.js"></script>
<script>
var game_name ="tictactoe"
var GGS = new GGSI(game_name);
function init() {
GameServerI.addGame(game_name, main());
GameServerI.addClient(game_name, new TicTacToeClient(frames.player1.document.getElementById("p1"), GameServerI));
GameServerI.addClient(game_name, new TicTacToeClient(frames.player2.document.getElementById("p2"), GameServerI));
}
</script>
<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen">
</head>
<frameset cols="50%,50%" onload="init()">
<frame src="window1.html" name="player1">
<frame src="window2.html" name="player2">
<noframes>
<body>
<h1>Tic Tac Toe for Generic Game Server</h1>
<p>This simulator only works with frames.</p>
</body>
</noframes>
</frameset>
</html>