Guess the number/With feedback: Difference between revisions
Content added Content deleted
(Guess the number/With feedback in Gambas, Minimal BASIC, Qbasic, Run BASIC, True BASIC and Yabasic) |
Basicgames (talk | contribs) |
||
Line 1,158: | Line 1,158: | ||
=={{header|Craft Basic}}== |
=={{header|Craft Basic}}== |
||
<syntaxhighlight lang="basic"> |
<syntaxhighlight lang="basic">let n = int(rnd * 100) + 1 |
||
bgcolor 0, 180, 0 |
|||
cls |
|||
wait |
|||
let n = int(rnd * 100) + 1 |
|||
do |
do |
||
Line 1,186: | Line 1,180: | ||
loop g <> n |
loop g <> n |
||
alert "you guessed the number in ", t, " tries" |
alert "you guessed the number in ", t, " tries"</syntaxhighlight> |
||
end</syntaxhighlight> |
|||
=={{header|Crystal}}== |
=={{header|Crystal}}== |