Projet 01

JEU DE
DEVINETTE

Choisis ta difficulté
📋 Algorithme à implémenter
ALGORITHME JeuDevinette
// Variables
VAR secretNum, tentative, essais, max, limite

DEBUT
Afficher "Choisir difficulté (max, limite)"
secretNum ← ALEATOIRE(1, max)
essais ← 0

TANT QUE essais < limite FAIRE
Lire tentative
essais ← essais + 1
SI tentative = secretNum ALORS
Afficher "Gagné !" + essais
SINON SI tentative < secretNum ALORS
Afficher "Trop petit"
SINON
Afficher "Trop grand"
FIN SI
FIN TANT QUE
Afficher "Perdu ! secret = " + secretNum
FIN
Essais restants
7
Plage
1 – 100
❄️ FROID🔥 CHAUD
Ton nombre
Historique