jcchurch / hunttheyetialexa Goto Github PK
View Code? Open in Web Editor NEWPlay the game Hunt the Yeti on the Amazon Echo
Play the game Hunt the Yeti on the Amazon Echo
I was testing the latest version, installed fine, got the intro, began game, I got an error when I tried to move or throw. In the ASK console for the intent Move Hunter, this is the message:
2016-09-05T00:45:57.521Z 1bcfc9af-7302-11e6-b383-6d447718b97e session applicationId: amzn1.ask.skill.e299f832-250a-4416-9c68-5d5a1bdb9a2a
2016-09-05T00:45:57.521Z 1bcfc9af-7302-11e6-b383-6d447718b97e dispatch intent = MoveHunter
2016-09-05T00:45:57.521Z 1bcfc9af-7302-11e6-b383-6d447718b97e Unexpected exception TypeError: Cannot read property 'length' of undefined
2016-09-05T00:45:57.521Z 1bcfc9af-7302-11e6-b383-6d447718b97e {"errorMessage":"Cannot read property 'length' of undefined","errorType":"TypeError","stackTrace":["Cave.getSafeRooms (/var/task/model/Cave.js:309:26)","Cave.placeHunterInRandomSafeRoom (/var/task/model/Cave.js:325:26)","new Cave (/var/task/model/Cave.js:17:14)","new HuntTheYetiGame (/var/task/controller/HuntTheYetiGame.js:30:21)","HuntTheYetiSkill.moveHunter (/var/task/index.js:97:31)","HuntTheYetiSkill.intentHandlers.MoveHunter (/var/task/index.js:54:14)","AlexaSkill.eventHandlers.onIntent (/var/task/AlexaSkill.js:65:27)","AlexaSkill.requestHandlers.IntentRequest (/var/task/AlexaSkill.js:28:37)","AlexaSkill.execute (/var/task/AlexaSkill.js:105:24)","exports.handler (/var/task/index.js:169:17)"]}
With the your update 548fd00, my previous issue with the spears is fixed. However, I still get the message " If you would like to play again..." after I get the result from the spear throw.
if (session.attributes.game.isPlaying()) {
var aDirection = intent.slots.Direction.value;
session.attributes.game.launchSpear(aDirection);
response.askSSML(session.attributes.game.getConsequence()
I was playing with 4 yetis in the cave, that was fun! Also, does the spear travel more than one room? A couple of times, even though nothing was near, I threw the spear in a random direction and it hit a yeti.
BTW, have you tried bst proxy https://bespoken.tools/blog/2016/08/24/introducing-bst-proxy-for-alexa-skill-development? I use it when testing Hunt Yeti.
Hey jcchurch, I was wondering how you managed to convert your audio files into correct music mp3 files. When I test my alexa skill, I can't seem to play my audio clip file(1min in duration). I followed the instructions on here, but I couldn't get it working https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/speech-synthesis-markup-language-ssml-reference#audio
How did you convert the audio tracks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.