A fun game skill sample.
You can play "coast to coast" as the default game.
New developers should start with a tutorial like Cakewalk or Fact Skill to learn the basics of Alexa skill building.
- Clone this repository to your laptop
- Run
npm install
from the skill/lambda/custom folder to install dependencies. - Zip the contents of the skill/lambda/custom folder.
- Create a new Lambda function called ask-state-games and upload the zip file.
- Add the Alexa trigger to your Lambda function.
- Update the IAM role of your function to include DynamoDB Full Access policy permissions.
- Create a new skill in the Alexa Developer console.
- Use the models\en-US.json file for your model.
- Enable the Alexa Presentation Language interface from the Interfaces page.
- Save and build your skill.
- In the AWS Console, click to DynamoDB
- Create a database called askStateGames with primary key "id", a string.
- Create a second database called askStateGamesLeaderboard with primary key "id", a string.
- Test your skill by invoking it and asking for "coast to coast".
- From a command prompt, navigate to /skill/test folder.
- Type
node testflow
- You should see the skill code be executed for LaunchRequest, AMAZON.HelpIntent, AMAZON.StopIntent
- Try out some of the other tests found in the test/dialogs folder.
- For example, try
node testflow resume
to see the skill resume a game in progress. - Create your own tests, and read more at the Testflow project and blog post.
- Check out the source file names in the lambda/custom folder.
- From the bottom of the index.js file, uncomment out the AplInterceptor
- Uncomment the IspStatusInterceptor as well.
- Add ISP products to your skill: see the isps\ folder for details.
- Test that the skill shows APL content in the test panel.