In the latest version of ChoiceScript up on github, you’ll find that randomtest.html has three new features.
-
Avoid used options (less random; finds bugs faster). When this box is checked, randomtest will avoid selecting options that it selected before in a previous iteration. (It first looks for the options that have been used the least; if there’s a tie, it will select one randomly.) This is now enabled by default.
-
Show choices selected during game. This has always been enabled by default; it shows the exact option that the player selected during play. The new feature is that it’s possible to turn this off, just like @cvaneseltine’s “nodisp” randomtest variant. This is useful if you only want to view line coverage statistics and don’t care about the exact paths used to get there.
-
Highlight gender pronouns. When enabled, gender pronouns will be highlighted with a yellow background. (This is especially useful when you enable “Show full text during game.”) This makes it easier to notice pronoun errors when proofreading randomtest output.
Pronouns that come from variables will appear in blue; hard-coded pronouns will appear in red. For example, this code:
*temp he "she"
$!{He} gave him a leaflet.
Would display like this:
In a game that uses variable pronouns, hard-coded pronouns are more likely to be in error, so coloring them red makes them extra noticeable.
Let me know if you have questions about these changes or find bugs in the new randomtest!