u p1=player 1's name: u p2=player 2's name: u p1answer=$p1$- true or false: 1+2+3 = 5 if $p1answer$=true var A=wrong endif if $p1answer$=false var A=right endif u p2answer=$p2$- true or false: 1+2+3 = 5 if $p2answer$=true var B=wrong endif if $p2answer$=false var B=right endif //both players have answered. if $A$=right if $B$=right echo you were both right! good job! endif if $B$=wrong echo $p1$ was right! endif endif if $B$=right echo $p2$ was right! endif if $A$=wrong if $B$=wrong echo you were both wrong! endif endif