GithubHelp home page GithubHelp logo

isabella232 / api-guide-with-tictactoe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pubnub/api-guide-with-tictactoe

0.0 0.0 0.0 711 KB

Explaining PubNub features and JavaScript APIs using a realtime two-player Tic-Tac-Toe

Home Page: http://pubnub.github.io/api-guide-with-tictactoe

License: MIT License

CSS 15.32% HTML 54.13% JavaScript 30.56%

api-guide-with-tictactoe's Introduction

PubNub APIs Explained with Tic-Tac-Toe

How to Play this Multi-player Tic-Tac-Toe

Tic-Tac-Toe is for two players, X and O, who take turns marking the spaces in a 3ร—3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.

This is a realtime multi-player Tic-Tac-Toe on web- You and your opponent need to play together on separate browsers. You can just open an another browser window to act as your own opponent. Your opponent needs to use the same Game ID by passing it in the URL as a query string.

First, go to: http://pubnub.github.io/api-guide-with-tictactoe.

Then start from Publish and Subscribe.

Once you go to one of the API guide page, you will see a Tic-Tac-Toe board with Game ID. You will need to open an another browser tab or window with the same URL with a quesry string, for example, when your game ID is 1234, your "opponent" has to access the same URL as yours with ?id=1234 appended in the end.

At the each section, you will learn how PubNub features work as you play the game.

Tic-Tac-Toe

api-guide-with-tictactoe's People

Contributors

cvconover avatar girliemac 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.