✊ ✋ ✌️ 🤏 🖖
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.
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.
Install dependencies:
mix deps.get
Configure:
export HOST=http://<your-host>
export API_KEY=<your-api-key>
Start the server:
mix phx.server
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).
Click on the button below to deploy this application to Heroku:
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
Visit our developers portal to know more our APIs and how to integrate your software with us.