Multiplication quiz easy
What's New
Version 1.0
First release
What it does
72 actions-
Choose from Menu선택하세요.
-
Choose from Menu4지선다형
-
Calculate Expression
-
Choose from Menu주관식
-
Calculate Expression
-
If
-
Calculate Expression
-
Set Variable점수
-
Ask for Input문제 수를 입력하세요.
-
Set Variablen
-
Repeat
-
Random Number
-
Random Number
-
Calculate Expression
-
Set Variable정답
-
Random Number
-
Set Variable@1
-
Random Number
-
Set Variable@2
-
Random Number
-
Set Variable@3
-
Random Number
-
If
-
List
-
If
-
If
-
List
-
If
-
If
-
List
-
If
-
List
-
Choose from List
-
If
-
Calculate Expression
-
Set Variable점수
-
Calculate Expression
-
Show Alert
-
If
-
Calculate Expression
-
Show Alert
-
If
-
Ask for Input문제 수를 입력하세요.
-
Set Variablen
-
Calculate Expression
-
Set Variable점수
-
Repeat
-
Random Number
-
Random Number
-
Ask for Input…x…=?
-
Calculate Expression
-
If
-
Calculate Expression
-
Set Variable점수
-
Calculate Expression
-
Show Alert
-
If
-
Calculate Expression
-
Show Alert
-
Calculate Expression
-
If
-
Show Alert
-
If
-
Show Alert
-
Choose from Menu선택하세요.
-
Choose from Menu점수 공유
-
Text
-
Share
-
Choose from Menu다시 플레이
-
Run Shortcut구구단 퀴즈
-
Choose from Menu게임 종료
-
Stop This Shortcut
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/sharing'
#define color orange
#define glyph mathOperators
menu "선택하세요." {
item "4지선다형":
item "주관식":
}
if == 11 {
@ = 0
prompt("문제 수를 입력하세요.", "Number")
@n
repeat _ for @n {
randomNumber(1, 9)
randomNumber(1, 9)
@ = *
randomNumber(1, 81)
@1
randomNumber(1, 81)
@2
randomNumber(1, 81)
@3
const 1 = randomNumber(1, 4)
if 1 == 1 {
list(@, @1, @2, @3)
} else {
if 1 == 2 {
list(@1, @, @2, @3)
} else {
if 1 == 3 {
list(@1, @2, @, @3)
} else {
list(@1, @2, @3, "{@} ")
}
}
}
const 3 = chooseFromList(2, "{}x{}=?")
if 3 == @ {
@ = @+1
confirm("맞았습니다. \n점수: {@}문제/{@RepeatIndex}문제\n정답률: {}%")
} else {
confirm("틀렸습니다. \n점수: {@}문제/{@RepeatIndex}문제\n정답률: {}%\n정답: {@}")
}
}
} else {
const 4 = prompt("문제 수를 입력하세요.", "Number")
@n = 4
@ = 0
repeat _ for 4 {
randomNumber(1, 9)
randomNumber(1, 9)
const 5 = prompt("{}x{}=?", "Number")
const 6 = *
if 5 == 6 {
@ = @+1
confirm("맞았습니다. \n점수:{@}문제/{@RepeatIndex}문제\n정답률: {}%")
} else {
confirm("틀렸습니다. \n점수:{@}문제/{@RepeatIndex}문제\n정답률: {}%\n정답: {6}")
}
}
}
const 7 = (@*100)/@n
if 7 <= 20 {
confirm("당신은 {@n}문제 중 {@}개 맞추셨습니다. 정답률은 {7}%입니다. 님 바보임?")
} else {
confirm("당신은 {@n}문제 중 {@}개 맞추셨습니다. 정답률은 {7}%입니다.")
}
menu "선택하세요." {
item "점수 공유":
const 8 = "저는 구구단 퀴즈에서 {@n}문제 중 {@}문제를 맞추어 총 {7}점을 받았습니다!"
share(8)
item "다시 플레이":
runSelf()
item "게임 종료":
stop()
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by guinea
You Might Also Like
Advertisement