Guessing Game
Hello, this game Is an gussying game you have to know a number from 1 to 100
saif-munirEscanea con tu iPhone para instalar
Hello, this game Is an gussying game you have to know a number from 1 to 100
Novedades
Versión 1.0
First release
Qué hace
30 acciones-
CommentBy Lim Thye Chean Guess a number between 1-100. This version uses speech for input.
-
Text
-
Get Text from Input
-
Repeat
-
Random Number
-
Set Variableanswer
-
Repeat
-
Text
-
Speak Text
-
Dictate Text
-
Round Number
-
If
-
If
-
Text
-
Speak Text
-
If
-
Text
-
Speak Text
-
Show Result
-
Stop This Shortcut
-
If
-
If
-
Text
-
Speak Text
-
If
-
Text
-
Speak Text
-
Text
-
Speak Text
-
Show AlertGuessing Game
Ver como código
Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.
#include 'actions/text'
#define color red
#define glyph gameController
/*
By Lim Thye Chean
Guess a number between 1-100.
This version uses speech for input.
*/
const Text = "Guessing Game.\n\nThis game let you guess a number between 1 to 100.\nYou only have 10 chances."
getText(Text)
const IfResult = repeat _ for 100 {
randomNumber(1, 100)
@answer
repeat _ for 10 {
speak(, "en-US")
const DictatedText = listen()
const RoundedNumber = round(DictatedText)
if RoundedNumber == @answer {
if @RepeatIndex2 < 6 {
speak(, "en-US")
} else {
speak(, "en-US")
}
show("You win!\nThe answer is {@answer}.")
stop()
} else {
if RoundedNumber > @answer {
speak(, "en-US")
} else {
speak(, "en-US")
}
}
}
speak(, "en-US")
alert(, "Guessing Game")
}
Abrir en Cherri Playground
Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.
Valoraciones y reseñas
Escribe una reseña–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!
Publicidad
Más de saif-munir
También te puede gustar
Publicidad