Rock-paper-scissors: Difference between revisions
m
→{{header|Lasso}}: remove extraneous indenting
(→{{header|Lasso}}: Rewritten to use correct Lasso 9 code, and optimized. Added win record tracking and display.) |
m (→{{header|Lasso}}: remove extraneous indenting) |
||
Line 1,717:
=={{header|Lasso}}==
Notes: This implementation uses the default session handling in Lasso, and assumes it's running on a web server. User choices are passed in via HTTP as GET query parameters.
<lang Lasso>
}
}
Line 1,741:
var(
choice = web_request->param('choice')->asString,
$controls
Line 1,766:
'User chose ' + $choice + br
$historic_choices->find($choice) = $historic_choices->find($choice)+1
Line 1,777:
else
'Invalid Choice.'+ br + $controls
{{out}}
<pre>Rock Paper Scissors Quit (<- as links)
|