!7 static L options = tlftj([[ a question a statement a true statement a false statement ]]); p { ai_spec_init(); } html { S _topic = params.get("topic"); if (empty(_topic)) _topic = ai_randomString(); fS topic = _topic; ret htitle("Matrix: " + topic) + hcenter( p(b(hfontsize(20, topic)), style := "margin-top: 3em") + form( hhidden(+topic) + htable_noEncode( map(options, func(S s) -> Map { int computerGuess = random(3)-1; new LinkedHashMap map; map.put("Statement", b(htmlencode2(topic)) + " is " + htmlencode2(s)); map.put("Computer Answer", computerGuess == 0 ? "" : hsnippetimg(computerGuess > 0 ? #1013057 : #1013056, width := 16, height := 16)); map.put("Your Answer", hcheckbox(urlencode(s), guessChecked(topic, s))); ret map; } )) ) ); } sbool guessChecked(S topic, S option) { ret tossCoin(); }