Coder Social home page Coder Social logo

rock-paper-scissors-lizard-spock's Introduction

Rock Paper Scissors Lizard Spock

✊ ✋ ✌️ 🤏 🖖

Welcome to Rock Paper Scissors Lizard Spock game built on top of Telnyx Call Control.

If you're not familiar with the rules of the game, watch this.

Setup

Sign in on Telnyx Customer Portal or sign up if you don't have an account yet.

For singleplayer, choose TeXML application and set the webhook URL to http://<your-host>/webhook/singleplayer (using POST).

For multiplayer, choose Call Control application and set the webhook URL to http://<your-host>/webhook/mulitplayer (using POST).

Buy a new phone number and connect it to the connection and obtain the API Key.

Locally

Install dependencies:

mix deps.get

Configure:

export HOST=http://<your-host>
export API_KEY=<your-api-key>

Start the server:

mix phx.server

Play

Call the phone number connected with the application and wait for your opponent to do the same (in multiplayer mode) or play against the machine (singleplayer mode).

Deploying to Heroku

Click on the button below to deploy this application to Heroku:

Deploy

Set the required environment variables:

  • API_KEY - You can get it on Telnyx Customer Portal
  • SECRET_KEY_BASE - You can generate a fresh key with the following command: mix phx.gen.secret
  • HOST - Set it to either the Heroku or custom domain

Developers

Visit our developers portal to know more our APIs and how to integrate your software with us.

rock-paper-scissors-lizard-spock's People

Contributors

thiagogsr 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.