Skip to content

Commit

Permalink
Updated the pseudocode example to include the exchangeable toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
vkaravir committed Jun 24, 2014
1 parent daf7701 commit 179be36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/pseudocode-example.html
Expand Up @@ -29,7 +29,7 @@ <h2>Simple js-parsons pseudocode example assignment</h2>
<script src="../lib/skulpt.js"></script>
<script src="../lib/skulpt-stdlib.js"></script>
<script>
var initial = 'IF a $$toggle::<::>$$ b THEN\n min := a\nELSE\n min := b\nENDIF';
var initial = 'IF $$toggle::a::b$$ $$toggle::<::>::<>$$ b THEN\n min := a\nELSE\n min := b\nENDIF';
var parson;

$(document).ready(function(){
Expand All @@ -41,7 +41,7 @@ <h2>Simple js-parsons pseudocode example assignment</h2>
{initcode: "min = None\na = 7\nb = 4\n", code: "", message: "Testing with a = 7 ja b = 4",
variables: {min: 4}}],
'grader': ParsonsWidget._graders.LanguageTranslationGrader,
'executable_code': "if a $$toggle$$ b:\n" +
'executable_code': "if $$toggle$$ $$toggle::<::>::!=$$ b:\n" +
"min = a\n" +
"else:\n" +
"min = b\n pass",
Expand Down

0 comments on commit 179be36

Please sign in to comment.