Guess a number

1.0

By l_et_m, 1 month ago

Notre premier jeu Gamebuino (classic).  Un nombre est tiré au hasard, il faut le trouver.

  • bouton UP pour augmenter la valeur courante, DOWN pour diminuer.
  • bouton A pour essayer la valeur
  • bouton B pour remettre à 0 la valeur courante

Il nous reste à trouver comment initialiser proprement le générateur de nombres aléatoires, pour l'instant la graine est constante, ...

Last comments

Martisse

NEW 1 month ago

Je n'arrive pas a supprimer ce message. Désolé

Steph

NEW 1 month ago

Sorunome Sorunome

I didn't even realize it was the Classic! Thank you Soru for these additional ideas!...... and I see that gb.pickRandomSeed() is based on the same trick as my last suggestion:-)

Sorunome

NEW 1 month ago

Hey, soru is seeing a lot of randomSeed() stuff here, just wanted to point out that gb.begin();already sets a random seed as random as possible ^^

EDIT: oh, the classic, it has gb.pickRandomSeed(); which you have to call yourself

Steph

1 month ago

I didn't even realize it was the Classic! Thank you Soru for these additional ideas!...... and I see that gb.pickRandomSeed() is based on the same trick as my last suggestion:-)