GithubHelp home page GithubHelp logo

project-hanoi-game-skeleton's Introduction

Towers of Hanoi: Reading and Passing Tests

Time to put your newfound mocha knowledge to the test! In this project you'll be following what is now a familiar pattern - running automated tests and writing code to pass those tests. The difference this time round is that we will only provide very minimal written information for the code you'll be writing. This project will revolve around reading the provided tests and then writing code to pass those tests.

We've provided you with a skeleton for a JavaScript version of the famous Towers of Hanoi game. If you've never played the game take a moment to watch a quick video of how it is played or check out this playable version (beware the game has sound). For the version we are building, a game of Towers of Hanoi will be played using three towers and using three pieces which we'll refer to as disks from now on.

Once you've downloaded the skeleton make sure you npm install to install the dependencies the tests will rely on. We'll be using Chai in combination with chai-spies as our assertion libraries for this project so we recommend keeping both documentation pages open. The tests you'll be working on will be in the test/game-spec.js file and you'll be doing all your work within the hanoi/hanoi-game.js file. You will not need to specify any new methods upon the HanoiGame class - just fill in empty methods provided.

Carefully read each spec and concentrate on passing them one at a time in the order they are written. As always, to run the specs use the mocha command in the top level directory.

You got this! Once you've passed all the specs feel free to play a game of Hanoi in your terminal by running node hanoi/play-script.js before moving on to the next project.

project-hanoi-game-skeleton's People

Contributors

aa-curtissimo avatar bartdorsey avatar idbentley avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.