snd.bas
来自「smallbasic for linux」· BAS 代码 · 共 21 行
BAS
21 行
#!/usr/local/bin/sbrun -g' sound-gamecls:15 s=int(100*rnd)+120 ?sound s*10,500input "What is your guess?";gsound g,500:g=g/10if g=s ?"You guessed it!" ? "Let's play again.":? goto 15fiif g>s ?"Too big!"else ?"Too small!"figoto 20
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?