Mit dem iPhone scannen, um zu installieren
Pick a number game
Neue Funktionen
Version 1.0
First release
Was er macht
22 Aktionen-
Choose from Menu
-
Choose from Menueasy
-
Random Number
-
Ask for Input1-10
-
If
-
Show NotificationCorrect
-
If
-
Show NotificationWrong
-
Choose from Menumedium
-
Random Number
-
Ask for Input1-20
-
If
-
Show NotificationCorrect
-
If
-
Show NotificationWrong
-
Choose from Menuhard
-
Random Number
-
Ask for Input1-50
-
If
-
Show NotificationCorrect
-
If
-
Show NotificationWrong
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#define color darkorange
menu nil {
item "easy":
randomNumber(1, 10)
const AskForInput = prompt("1-10", "Number")
if AskForInput == {
showNotification("Correct", AskForInput)
} else {
showNotification("Wrong", AskForInput)
}
item "medium":
randomNumber(1, 20)
const AskForInput1 = prompt("1-20", "Number")
if AskForInput1 == {
showNotification("Correct", AskForInput1)
} else {
showNotification("Wrong ", AskForInput1)
}
item "hard":
randomNumber(1, 50)
const AskForInput2 = prompt("1-50", "Number")
if AskForInput2 == {
showNotification("Correct", AskForInput2)
} else {
showNotification("Wrong ", AskForInput2)
}
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Das gefällt dir vielleicht auch
Werbung