Coder Social home page Coder Social logo

pg-tic-tac-toe's Introduction

Phune Gaming Tic Tac Toe

A HTML5 implementation of the game Tic Tac Toe for Phune Gaming.

Install

This game makes heavy use of LimeJS HTML5 Game Framework and Grunt JavaScript Task Runner. To build it you need to have Git, SVN, Java, Python 2.x, Node.js, Bower and PhantomJS installed.

Install LimeJS and its dependencies

In the root folder of Tic Tac Toe create a directory limejs:

mkdir limejs

Clone LimeJS Git repo into the limejs directory you just created:

git clone https://github.com/digitalfruit/limejs.git limejs

Setup LimeJS dependencies:

limejs/bin/lime.py init

Install Node.js dependencies

Setup Node.js modules:

npm install

Install Bower dependencies

Setup Bower packages:

bower install

Build

This game should be run using the Phune Gaming platform, but can be quickly tested using the command (only the initial screen will be shown, it is not possible to play without the Phune Gaming platform):

grunt serve

Note: If you got an error during the build, try to remove the folder limejs/box2d/examples and try again.

Build (production-ready version):

grunt build

Note: If you get the following error during build: limejs/closure/closure/goog/base.js:236: ERROR - illegal initialization of @define variable goog.DISALLOW_TEST_ONLY_CODE, remove or comment that line.

Note: PhantomJS does not support the bind method. If you get the following error during the tests: TypeError: 'undefined' is not a function (evaluating 'throwDeprecated.bind(null,"getRelativeQuality")'), remove or comment the last lines of limejs/lime/src/node.js where the bind method is used.

There are many other tasks that can be run through Grunt. For the complete list of available tasks run:

grunt --help

License

Copyright (c) 2014 Present Technologies

Licensed under the MIT license.

pg-tic-tac-toe's People

Contributors

aurhe avatar samaxes avatar stand579 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.