Skip to content

A "Guess The Number" game, written in Python. Allows the Player to both pick or guess the number.

Notifications You must be signed in to change notification settings

YanivWein24/Guess_The_Number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Requirements:

  • Python 3.0 or above
  • Download guess_a_number.py or clone it to your local repository in order to run it.
  • To select a version and start playing, uncomment the function call related to your wanted version

There are 3 versions for this game:

  • In the first 2 versions, the player needs to guess the number that was picked by the PC.
    These versions are very similar to each other, but each of them is using different approach to do the same thing.

  • In the 3rd version, the user gets to choose the number, and the PC needs to figure out this number.
    With this version, the PC is using the "Binary Search" Algorithm in order to find the correct number in a fast and efficient way
    (reducing time complexity to O(log n) ).

About

A "Guess The Number" game, written in Python. Allows the Player to both pick or guess the number.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages