Skip to content

FuriousCoder/gomoku

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gomoku game

Description

Implementation Gomoku realtime game using Websockets.

Description of the game's mechanic

First of all you must choose your login. Then you can "Join" to the existed games, or "Create" new one.

Dimension - dimension of the board. Lineup - number of stones, that players must put in a row (horizontal, vertical, diagonally, anti-diagonally).

Also, in any moment players can see general statistics of the games. Just press "Esc" button or click on the blue line on the top of the page.

Have fun :)

Technical description

I've used next cool, fresh and awesome stack of technologies:

Backend (game server): Python 3.3, Tornado 3.1, Redis 2.6.14

Backend (stats server): Python 3.3, Django 1.5.1, SQL DB

Frontend: SockJS 0.3.4, jQuery 2.0.3, Less.js 1.4.2, Mustache 0.7.2

Game server communicates with browser by Websocket or Websocket emulation (some fallback protocols if Websocket is not available). Game server communicates with Stats server by HTTP protocol asynchronously.

Installation

$ git clone git@github.com:vaxXxa/gomoku.git
$ cd gomoku
$ mkvirtualenv gomoku --python=python3.3
$ workon gomoku
$ pip install -r requirements.txt

Run game server

$ redis-server /usr/local/etc/redis.conf
$ python endpoints/game/server.py

Run stats server

$ python endpoints/stats/manage.py syncdb --noinput
$ python endpoints/stats/manage.py runserver

Screenshots

http://imageshack.us/a/img853/7600/gxoo.png

About

Gomoku game: Tornado, SockJS, Websocket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published