Skip to content
Navigation Menu
Toggle navigation
Sign in
Product
GitHub Copilot
Write better code with AI
GitHub Advanced Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
Why GitHub
All features
Documentation
GitHub Skills
Blog
Solutions
By company size
Enterprises
Small and medium teams
Startups
Nonprofits
By use case
DevSecOps
DevOps
CI/CD
View all use cases
By industry
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
Topics
AI
DevOps
Security
Software Development
View all
Explore
Learning Pathways
Events & Webinars
Ebooks & Whitepapers
Customer Stories
Partners
Executive Insights
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Enterprise
Enterprise platform
AI-powered developer platform
Available add-ons
GitHub Advanced Security
Enterprise-grade security features
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search or jump to...
Search code, repositories, users, issues, pull requests...
Provide feedback
We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Reseting focus
{{ message }}
yuuki15
/
flash
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
Pull requests
Actions
Security
Insights
Additional navigation options
Files
main
python
scratch
flash.sb3
scratchblocks.svg
scratchblocks.txt
LICENSE
README.md
index.html
Breadcrumbs
flash
/
scratch
/
scratchblocks.txt
Copy path
Blame
Blame
Latest commit
yuuki15
May 6, 2025
cf8c0aa
·
May 6, 2025
History
History
28 lines (26 loc) · 724 Bytes
Breadcrumbs
flash
/
scratch
/
scratchblocks.txt
Top
File metadata and controls
Code
Blame
28 lines (26 loc) · 724 Bytes
Raw
when @greenFlag clicked count down [3]::custom wait (0.5) seconds flash [10]::custom ask [Sum?] and wait if <(answer) = (correct answer)> then say [Lovely!] else say (join (join [Good effort but the answer is ] (correct answer)) [.]) end define count down (number of times) set [count v] to (number of times::custom) repeat (number of times::custom) start sound [Pop v] say (count) for (1) seconds change [count v] by (-1) end define flash (number of times) set [correct answer v] to [0] repeat (number of times::custom) set [number v] to (pick random (1) to (9)) start sound [Pop v] say (number) for (0.3) seconds say [] for (0.2) seconds change [correct answer v] by (number) end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
when @greenFlag clicked
count down [3]::custom
wait (0.5) seconds
flash [10]::custom
ask [Sum?] and wait
if <(answer) = (correct answer)> then
say [Lovely!]
else
say (join (join [Good effort but the answer is ] (correct answer)) [.])
end
define count down (number of times)
set [count v] to (number of times::custom)
repeat (number of times::custom)
start sound [Pop v]
say (count) for (1) seconds
change [count v] by (-1)
end
define flash (number of times)
set [correct answer v] to [0]
repeat (number of times::custom)
set [number v] to (pick random (1) to (9))
start sound [Pop v]
say (number) for (0.3) seconds
say [] for (0.2) seconds
change [correct answer v] by (number)
end
While the code is focused, press Alt+F1 for a menu of operations.