WSQ06 – Pick a number

In this WSQ, we created a programm that works like a mini simple viodegame. Guess the correct number.
So, for the computer to choose a random number we use “rand()%100” = x, that will be the mysterious number. Also use srand(time(NULL)) because Ken told to use it. Something about everytime, would be a different number, or something like that. But in the class I’ll ask him again.

Also I checked various blogs from my co-students LOL.

Captura de pantalla 2016-02-16 a las 0.45.04I did something extra here. I Put inly 7 chances to guess the right number, ‘cause if you don’t, you’ll lose every talent that you think you have.

Just kiddin, you only will lose the game.

My GitHub link:
https://github.com/antonioangelm24/TC101/blob/master/WSQ06

 


Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Salir /  Cambiar )

Google photo

Estás comentando usando tu cuenta de Google. Salir /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Salir /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Salir /  Cambiar )

Conectando a %s