jcchurch / HuntTheYetiAlexa

Play the game Hunt the Yeti on the Amazon Echo
17 stars 2 forks source link
alexa amazon amazon-echo game

Hunt the Yeti skill for Amazon Echo

License

As of May 16, 2017, this code is distributed under the GPL. You may use the code under the GPL terms and conditions which are best explained here. The most notable requirement of the GPL is that you must disclose your source code. You may use this in a commercial product, but ultimately I want this to be an educational experience.

Copyright (C) 2017 James Church

Overview

Hunt the Yeti is an interpretation of Hunt the Wumpus, a classic game for teaching artificial intelligence. The game is played on a five-by-five grid of rooms called a cave. Scattered around the cave are:

How to play

To begin the game, say "Alexa, launch the Yeti Hunt Game", then "Begin Game".

You can move the hunter in any of the four cardinal directions: north, south, east, or west. To move, say 'move north', or 'step east', or 'go west', or simply 'south'.

Once the hunter has figured out the direction of the yeti, the hunter should throw a spear. To throw the spear, say 'launch the spear north', or 'throw south', or 'attack east'.

Understanding This Code

It is recommended that you study the sample code provided by Amazon Echo Skill Team.

To prepare this project for uploading, move into the src folder.

cd src

Make sure that you install the alexa-sdk library using node package manager.

npm install alexa-sdk

Then zip the project.

zip -r yeti.zip *

Then upload the zip file produced.

Attributions

Game itself.

This game is based on Hunt the Wumpus (MIT, 1972).

Icon

Audio Clips