This is an Alexa skill for teaching Basic Strategy to the card game Blackjack. Alexa will deal a sample hand and quiz the user on the correct move based on Basic Strategy odds.
Blackjack Trainer uses a serverless architecture via an AWS Lambda function. To deploy on your own Lambda for testing, follow these steps:
- Clone and download this repository.
- Install dependencies using
yarn. - Run
npm run setupto generate the Lambda deployment files. - Fill out the necessary fields in
.env. - Add your Alexa Skill app id to
deploy.envasAPP_ID=<appId>. - Run
npm run deployto deploy skill to your Lambda function. - Add the contents of
intent-schema.jsonandsample-utterances.txtto your Alexa skill. - Install and test.
You can test locally by editing event.json with a specific Lambda Request. You may find it useful to copy and paste from the Testing page of the Alexa skill.
Blackjack Trainer makes use of the following projects:
Thanks to the many developers who contributed to these and other open source projects!