<?xml version="1.0"?>
<!DOCTYPE activity SYSTEM "escot.dtd" >
<activity name="Rock, Paper, Scissors" escotVersion="1.2.5" size="661,486" puzzle_id="13">
  <page name="Second RPS Activity">
    <component class="org.escot.demo.SimpleGraph" position="384,108" size="272,183" portid="SimpleGraph-1">
      <property name="labelInterval" value="0,0"/>
      <property name="derivative" value="0"/>
      <property name="xAxisName" value="Number of trials"/>
      <property name="scrollable" value="true"/>
      <property name="extent" value="-6.897828626035254,-0.1175510838318701,210.0,1.099526066350711"/>
      <property name="tickInterval" value="1,1"/>
      <property name="yAxisName" value="Ratio of (Ed's wins) / (Ed's wins + Vicky's wins)"/>
      <property name="graphName" value=""/>
    </component>
    <component class="com.sri.escot.NumberEntry" position="405,329" size="228,19" portid="NumberEntry-2">
      <property name="maximumDecimalPlaces" value="3"/>
      <property name="label" value="Number of Games Vicky won: "/>
      <property name="value" value="0.0"/>
      <property name="allowNegative" value="true"/>
      <property name="minimumDecimalPlaces" value="0"/>
      <property name="suffix" value=""/>
      <property name="editable" value="false"/>
    </component>
    <component class="com.sri.escot.NumberEntry" position="403,301" size="230,19" portid="NumberEntry-3">
      <property name="maximumDecimalPlaces" value="3"/>
      <property name="label" value="Number of Games Ed won:       "/>
      <property name="value" value="0.0"/>
      <property name="allowNegative" value="true"/>
      <property name="minimumDecimalPlaces" value="0"/>
      <property name="suffix" value=""/>
      <property name="editable" value="false"/>
    </component>
    <component class="com.sri.escot.NumberEntry" position="482,358" size="151,19" portid="NumberEntry-4">
      <property name="maximumDecimalPlaces" value="0"/>
      <property name="label" value="Number of Ties: "/>
      <property name="value" value="0.0"/>
      <property name="allowNegative" value="true"/>
      <property name="minimumDecimalPlaces" value="0"/>
      <property name="suffix" value=""/>
      <property name="editable" value="false"/>
    </component>
    <component class="com.sri.escot.EscotLabel" position="380,82" size="265,21">
      <property name="text" value="Experimental Probability of Ed winning"/>
      <property name="foreground" value="0,0,0"/>
      <property name="background" value="204,204,204"/>
      <property name="font" value="Dialog,Dialog,0,12"/>
    </component>
    <component class="org.escot.demo.TextEditor" position="10,5" size="360,91" portid="TextEditor-1">
      <![CDATA[Again we will be observing the Rock, Paper, Scissors game to examine probabilities. In this simulation there are two players. Ed generates throws randomly, but Vicky throws a Rock for every trial.  How do you think this will affect the outcome? 

Note your prediction in the solutions box!  The players will throw 100 times. There is a graph to the right of the simulation that will show how many games Ed wins out of the total number of games that Ed and Vicky win.]]>
      <property name="foreground" value="0,0,0"/>
      <property name="background" value="255,255,255"/>
      <property name="font" value="Application,Application,0,10"/>
    </component>
    <component class="org.escot.demo.TextEditor" position="9,414" answerText="true" size="638,67" portid="TextEditor-2">
      <![CDATA[Press Reset and try the simulation as many times as you wish.  (remember to first press Reset then clearGraph between tries)   When you are done, press RESET one more time to answer the following questions:
1. What was your prediction? 

2. Do you think this simulation represents a fair game? Why? 

3. How would you compare the fairness of this simulation to one in which both players choose their throw 
at random?

]]>
      <property name="foreground" value="0,0,0"/>
      <property name="background" value="255,255,255"/>
      <property name="font" value="Application,Application,0,10"/>
    </component>
    <component class="com.sri.escot.NumberEntry" position="454,384" size="180,19" portid="NumberEntry-7">
      <property name="maximumDecimalPlaces" value="3"/>
      <property name="label" value="Number of Trials left: "/>
      <property name="value" value="100.0"/>
      <property name="allowNegative" value="true"/>
      <property name="minimumDecimalPlaces" value="0"/>
      <property name="suffix" value=""/>
      <property name="editable" value="false"/>
    </component>
    <component class="edu.colorado.agentsheets.AgentSheetsWrapper" position="12,102" size="357,306" portid="AgentSheetsWrapper-1">
      <property name="classname" value="activity2"/>
      <property name="XMLWorksheet" value="secondactivity.ws"/>
      <property name="XMLPropertysheet" value="Simulation-Properties2.sip"/>
    </component>
    <component class="org.escot.demo.ButtonPanel" position="444,34" size="111,29" portid="ButtonPanel-1">
      <property name="font" value="Dialog,Dialog,0,12"/>
    </component>
    <component class="com.sri.escot.EscotLabel" position="382,11" size="259,15">
      <property name="text" value="Press Reset first, then  the clearGraph button."/>
      <property name="foreground" value="0,0,0"/>
      <property name="background" value="204,204,204"/>
      <property name="font" value="Dialog,Dialog,0,12"/>
    </component>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="PROBABILITYTHATAWINS"/>
      <to portid="SimpleGraph-1" name=""/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="TIE"/>
      <to portid="NumberEntry-4" name="number"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="PLAYERBWINS"/>
      <to portid="NumberEntry-2" name="number"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="PLAYERAWINS"/>
      <to portid="NumberEntry-3" name="number"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="TRIALSTOGO"/>
      <to portid="NumberEntry-7" name="number"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="clearGraph"/>
      <to portid="ButtonPanel-1" name=""/>
    </wire>
  </page>
</activity>

