question

Matt Kruse avatar image
Matt Kruse asked ·

My "Guess The Number" skill is LIVE! :)

Wow, I'm quite pleased to be one of the first handful of skills that have gone "live", with my "Guess The Number" game. Everyone should see it in their Alexa app now, I guess? It's very simple, but it was my first attempt to move through the certification process and create something really solid. Give it a try and let me know what you think! PS - This skill is running on AWS Lambda, using my alexa-app framework for Node.js: https://www.npmjs.com/package/alexa-app
alexa skills kitshowcase
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered ·
Are you sure? I'm not seeing it on my feed. Usually they come out about mid-morning EST.
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Matt Kruse avatar image
Matt Kruse answered ·
Hmm, I wonder if the skill list is cached or something? In my developer portal it shows as "live: This skill is live for all Alexa end users to enable on their devices". Maybe it doesn't get pushed into the app for everyone until tomorrow? Thanks for letting me know, I guess I will wait to brag to my co-workers. ;)
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered ·
Live just means it's passed certification. My "Knock KnocK" skill has been live for weeks. Amazon are just being very picky about which certified skills they release as part of the preview. But they went from three a week, to two, to one last week. I'm hoping this tail off is a prelude to them opening up the actual market. Today may tell...
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Matt Kruse avatar image
Matt Kruse answered ·
I got an email late last night saying it would go live today. Let me know if you see it show up :)
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered ·
Yup. Came through just now. Congratulations! I'll review and post later. Just wish mine would >_<...
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered ·
Review posted: https://www.linkedin.com/pulse/another-three-skills-joseph-jaquinta Not the most ground breaking skill, but you knew that. But you got bonus points for being more playable than the other two math based games out there!
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jason Priebe avatar image
Jason Priebe answered ·
Nice job, Matt! I tried it out -- this kind of stuff reminds me of the kinds of programs I wrote when I was a kid with BASIC, like "pick up sticks" or "tic tac toe". There's something exhilarating about writing code in a heavily limited environment and maximizing the potential of the environment. I am a big fan of your alexa-app library. I think your library makes skills code much more tractable than Amazon's JS library. I've got a skill I'm trying to fine tune based on the Alexa Skills Team's comments. I hope to have mine launched someday soon!
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jason Priebe avatar image
Jason Priebe answered ·
BTW -- do you think you'll open-source Guess the Number? I'd love to see how you built it...
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Matt Kruse avatar image
Matt Kruse answered ·
Rather than put it up on github, I'll just post the entirety of the source here. I used my alexa-app module for Node.js, which makes the code nice and easy to read, IMO. [code] var alexa = require('alexa-app'); // Define an alexa-app var app = new alexa.app('guessinggame'); app.launch(function(req,res) { var number = Math.floor(Math.random()*99)+1; res.session('number',number); res.session('guesses',0); var prompt = "Guess a number between 1 and 100!"; res.say(prompt).reprompt(prompt).shouldEndSession(false); }); app.intent('guessIntent',{ "slots":{"guess":"NUMBER"} ,"utterances":["{1-100|guess}"] }, function(req,res) { var guesses = (+req.session('guesses'))+1; var guess = req.slot('guess'); var number = +req.session('number'); if (!guess || isNaN(guess)) { res.say("Sorry, I didn't hear a number. Try again."); res.reprompt("Sorry, I didn't hear a number. Try again."); res.shouldEndSession(false); } else if (guess==number) { res.say("Congratulations, the number was "+number+". You guessed it in " + guesses + (guesses==1?" try.":" tries.")); } else { if (guess > number) { res.say("The number is lower. Guess again!"); } else if (guess < number) { res.say("The number is higher. Guess again!"); } res.reprompt("Sorry, I didn't hear you guess a number. Your last guess was "+guess+". Try again."); res.session('guesses',guesses); res.shouldEndSession(false); } } ); app.intent('stopIntent',{ "slots":{"junk":"LITERAL"} ,"utterances":["{stop|quit|I quit|I give up|tell me the number|junk}"] }, function(req,res) { res.say("The number was "+req.session('number')+". Thanks for playing!"); res.shouldEndSession(true); } ); app.intent('defaultIntent',{ "slots":{"junk":"LITERAL"} ,"utterances":["{do something|junk}"] }, function(req,res) { res.say("Sorry, I didn't hear you say a number. Try guessing again."); res.shouldEndSession(false); } ); module.exports = app; [/code]
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Danny avatar image
Danny answered ·
Where do published skills end up? I don't see your, or anybody elses.
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.