Skip to content

tnajdek/red-and-blue-squares-game

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

#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:

About

A prototype WebSockets game written in JavaScript and PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published