Guessing Game

I am taking a course on Modern C++ for Computer Vision and Image Processing:

As part of the first homework, I had to write a program to do the following:

The program will pick a random number from 0 to 99 and the player will be guessing this number by providing a guess through stdin. Depending on
which number the player guessed there are 3 outcomes:
• The player guessed the number. Then the program has to tell that the player has won.
• Guessed number if larger than the target one. The program should tell that its number is smaller.
• Guessed number is smaller than the target one. The program should tell that its number is larger.
The game goes on until the player guesses the number.

Demo

--

--

--

MS Thesis Student, CVGL, LUMS http://pk.linkedin.com/in/talhahanifbutt

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Mining through NFT Battle Cards

How to Customize Start-Up Service or Daemon on Ubuntu 18.04

Your Mobile Teams Should All Use The Same SDKs

Data-Driven Testing using Python and the Parameterized Module

😎Are you ready to play #WSGToken’s DUNK IT with me guys?

CoverCompared Collaborates with SupraOracles

GSoC 2020: Final Phase Report 1

The software developers’ way is better!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Talha Hanif Butt

Talha Hanif Butt

MS Thesis Student, CVGL, LUMS http://pk.linkedin.com/in/talhahanifbutt

More from Medium

Decision Theory: Expected Utility and Risk Aversion

Identifying the circle that fits the outer white pixels in a binary image (or make external mask)

Matrix rotation

FastAI Bag of Tricks — Hand Sign Classification