Skip to content

The age/number guessing game is something I came across in Birla Planetarium, Chennai, TN, India. This was so much fun to figure out and build.

Notifications You must be signed in to change notification settings

AngelineReetuA/binary-search-number-guessing-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Binary Search Number Guessing Game

Description

This is a number guessing game based on the binary search algorithm. It takes the hints above and below and guesses the number the player is thinking of.

When the player clicks above, the number displayed plus its result when added with 30 and put in the binary search formula - a+b/2. When the player clicks below, the number is divided by 2. This logic and a few test-cases which me and my buddy worked out together are in the brainStorming folder.

Note: This game is supposed to be an age guesser and doesn't do well when the number is an abnormal age

Tech used

  • Javascript
  • Bootstrap
  • HTML

PLAY IT HERE

https://angelinereetua.github.io/binary-search-number-guessing-game/

About

The age/number guessing game is something I came across in Birla Planetarium, Chennai, TN, India. This was so much fun to figure out and build.

Topics

Resources

Stars

Watchers

Forks