A prototype WebSockets game written in JavaScript and PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources
README.md
index.php
ttt.php
tttServer.php
websocket.php

README.md

#LOL - The Red and Blue Squares game.

##Description

A very simple browser game for 2 players. There are 9 cells on the screen, clicking on a cell changes its color to either red or blue depending on which player has clicked the cell. The winning condition is to color the entire board (all 9 cells) in a single color.

A sole purpose for creating this game was to experiment with WebSockets and investigate feasability of this technology for browser-based game.

More details can be found on http://doppnet.com/

##Requirements:

  • PHP >= 5.2
  • Mongo DB
  • PHP sockets
  • PHP mongo (pecl install mongo)

##Installation

  • Place code in path served by your webserver
  • By default game will use port 12345. You can modify that in files index.php and tttServer.php.
  • Point your WebSockets capable browser to your webserver

##License This code is released under MIT License.

However the following items included in this repository are licensed differently: