Skip to content

ayohana/twenty-questions

Repository files navigation

Binary Trees Exercise in JavaScript, 07.22.2020 - 07.28.2020

About | Screenshots | How To Install | Bugs | Technologies Used | Learning Resources | Contact and Support

GitHub last commit (branch) GitHub language count GitHub top language

About

A web application that implements a yes/no guessing game called "20 Questions." This game is between user versus computer. The user will think of an object, and the computer will try to guess the object. But beware! As the computer fails to guess, it gets smarter. The computer will save previous objects it tried to guess so it knows the next time the object comes up again! This app ultimately aims to apply the developer's knowledge on binary trees into practice. Click on the following link to play around with the deployed app! Twenty Questions on Netlify

Winning Conditions

  • As the smart computer, I should be able to win the game based on these conditions:
    • The user reaches the last question (a leaf node), then the user clicks "yes" (right answer).
  • As the user, I should be able to win the game based on these conditions:
    • I reach the last question (a leaf node), but then I click on "no" (wrong answer).
    • I reach question #20 that is not a leaf node, so it doesn't matter what I click on next (computer ran out of chances to ask questions).

Screenshots

Create new game

Create new game

First three rounds of the game

First three rounds of the game

Reaching question # 20

Reaching question # 20

No save detected

No save detected

Cancel create new game

Cancel create new game

How To Install

For local development

  • Clone this repo
  • Open the command line and navigate into the repository
    • npm install to install all necessary plugins
    • npm test to run all tests
    • npm start to run the application locally

Known Bugs

No known bugs at this time.

Technologies Used

*Open package.json file to see the complete list of all plugins.

Learning Resources

Contact and Support

Any feedback is welcomed!

[email protected]

About

A web app that implements a yes/no guessing game called "20 questions".

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published