Skip to content
Play the game Hunt the Yeti on the Amazon Echo
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources
speechAssets
src
.gitignore
README.md
gpl.txt

README.md

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:

  • 1 hunter: You control the hunter.
  • 1 yeti: Your goal is to defeat the yeti.
  • 2 open pits: If the hunter falls into a pit, the hunter dies.
  • 2 bats: If the hunter enters a room with bats, the bats pick the hunter up and carries the hunter to a random room.

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

You can’t perform that action at this time.