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-02-11 12:28:34 +01:00

41 lines
No EOL
1,010 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 GGS(game_name);
function init() {
GameServer.addGame(game_name, main());
GameServer.addClient(
game_name,
new TicTacToeClient(frames.player1.document.getElementById("p1"),
GameServer
));
GameServer.addClient(
game_name,
new TicTacToeClient(frames.player2.document.getElementById("p2"),
GameServer
));
}
</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>