Skip to content

🐴 🐍 The Heads or Tails game tests your ability to call it in the air.

Notifications You must be signed in to change notification settings

jefforulez/alexa-heads-or-tails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heads or Tails: Alexa Skill Lambda

Heads or Tails

Links

Usage

User: Alexa, open Heads or Tails.
Alexa: Welcome to Heads or Tails. Say FLIP to start, or HELP for how to play.

User: Flip.
Alexa: Okay, the coin is in the air. What's your call? Heads? Or Tails?

User: Heads
Alexa: Correct! Here we go: What's your call? Heads or Tails?

[...]

User: Tails
Alexa: Sorry, the coin came up heads. You got 3 in a row, and that's a high score this round.

Development

Configure Nodejs:

nvm use

Setup environment:

vim .env

LOG_LEVEL="debug"
TEST_MODE="1"

Install Dependencies:

yarn

Build for debugging:

yarn run debug

Open VS Code:

code .

Download and edit skill:

  • Alexa Skills Toolkit -> Skills Management -> Download and edit skill -> Heads or Tails

Run debugger:

  • Press F5

Open the simulator or run the ask dialog command:

ask dialog \
    --profile rulez \
    --locale en-US

Documentation

Alexa Developer Docs

Other References