todo.bao
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# todo.bao - gestionnaire de tâches
taches = []
fonction ajouter(titre):
taches.ajouter({ "titre": titre, "fait": faux })
fonction terminer(index):
taches[index]["fait"] = vrai
afficher("Tâche " + texte(index + 1) + " terminée.")
fonction afficher_liste():
afficher("📋 Mes tâches:")
pour i dans intervalle(longueur(taches)):
t = taches[i]
marque = "[x]" si t["fait"] sinon "[ ]"
afficher(marque + " " + texte(i + 1) + ". " + t["titre"])
ajouter("Apprendre Baobab")
ajouter("Construire une app")
ajouter("Partager avec la communauté")
afficher_liste()
terminer(0)
afficher_liste()
Terminal Baobab Studio v0.1.0 - tapez 'help' pour les commandes