DEV Community

Saman Hoodaji
Saman Hoodaji

Posted on

Guess Number - Simple Vue Game!

What is this?

This is a game that you will pick a number in your head, then check whether your number is between listed numbers, after checking as much as chosen step, the program will tell your number!

How to play?

Choose a step:

Step will be the count of questions you have to answer to let program guess your number, also the max number you can pick will be 2^step

Pick a number

Pick a number between 1 and 2^step in your mind

Check the listed numbers

Check the listed numbers and click Yes button if you see your number there, otherwise click No.

Count of questions

You have to do the previous item as much as chosen steps, by default step is 6 so you'll have range of 1 to 2^6 = 64 numbers and answer to 6 questions!

If you liked my work please star the repository on github

Latest comments (0)