<?xml version="1.0"?>
<!DOCTYPE activity SYSTEM "escot.dtd" >
<activity name="Fourth activity of Rock, Paper, Scissors." size="505,390" puzzle_id="15">
  <page name="Introduction Page">
    <component class="org.escot.demo.TextEditor" position="24,60" size="476,290" portid="TextEditor-1">
      <![CDATA[This week we will be playing a three person game of Rock, Paper, Scissors again.

The rules: Ed wins if all throws are the same; Angelique wins if all are different; and Vicki wins if two are the same.

This time we want you to change the points for scoring to make the game fair.

We know from last week that Ed doesn't win as much as Angelique and nobody wins as much as Vicki. How many points should Ed get every time he wins to end up with the same score as Vicki? How about Angelique?  It might help to think about last week. Compare their winning ratios.

Go to the next page and assign points to Ed and Angelique's win so that the game will be fair for those two players. Vicky will always receive one point for each win.

You should run the simulation as many times as you like. Keep trying by changing the numbers and running it again until it seems like each player can win as often as the others. Each simulation will run through 200 throws.

The graphs will show the ratio of each player's score to the total and the boxes  underneath keep track of their scores. Remember, each time, first push Reset, then push clearGraph, then type in the values for each player's win, and then  press Run.]]>
      <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.EscotLabel" position="186,12" size="197,15">
      <property name="text" value="Rock, Scissors, Paper: Activity 4."/>
      <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="com.sri.escot.EscotLabel" position="78,364" size="362,21">
      <property name="text" value="Click the numbers at the top left to go to page 2 or 3."/>
      <property name="foreground" value="0,0,0"/>
      <property name="background" value="204,204,204"/>
      <property name="font" value="Dialog,Dialog,0,12"/>
    </component>
  </page>
  <page name="Simulation Page">
    <component class="org.escot.demo.SimpleGraph" position="377,124" size="285,70" portid="SimpleGraph-1">
      <property name="labelInterval" value="0,0"/>
      <property name="derivative" value="0"/>
      <property name="xAxisName" value="X"/>
      <property name="scrollable" value="true"/>
      <property name="extent" value="-8.56140350877193,-0.06811103588354775,410.0,1.099526066350711"/>
      <property name="tickInterval" value="1,1"/>
      <property name="yAxisName" value="Y"/>
      <property name="graphName" value=""/>
    </component>
    <component class="com.sri.escot.NumberEntry" position="406,431" size="197,19" portid="NumberEntry-2">
      <property name="maximumDecimalPlaces" value="3"/>
      <property name="label" value="Angelique's score: "/>
      <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="444,402" size="161,19" portid="NumberEntry-3">
      <property name="maximumDecimalPlaces" value="3"/>
      <property name="label" value="Ed's Score:  "/>
      <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="430,459" size="173,19" portid="NumberEntry-4">
      <property name="maximumDecimalPlaces" value="0"/>
      <property name="label" value="Vicky's Score: "/>
      <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="375,96" size="297,18">
      <property name="text" value="Ratio of Ed's score to the total score"/>
      <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="com.sri.escot.NumberEntry" position="75,409" size="188,19" portid="NumberEntry-7">
      <property name="maximumDecimalPlaces" value="3"/>
      <property name="label" value="Number of Trials left: "/>
      <property name="value" value="200.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="375,203" size="323,18">
      <property name="text" value="Ratio of Angelique's score to the total score"/>
      <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="com.sri.escot.EscotLabel" position="376,308" size="305,15">
      <property name="text" value="Ratio of Vicky's score to the total score"/>
      <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.SimpleGraph" position="381,229" size="281,70" portid="SimpleGraph-2">
      <property name="labelInterval" value="5,5"/>
      <property name="derivative" value="0"/>
      <property name="xAxisName" value="X"/>
      <property name="scrollable" value="true"/>
      <property name="extent" value="-1.5,-0.1,401.5,1.1"/>
      <property name="tickInterval" value="1,1"/>
      <property name="yAxisName" value="Y"/>
    </component>
    <component class="org.escot.demo.SimpleGraph" position="381,332" size="277,62" portid="SimpleGraph-3">
      <property name="labelInterval" value="5,5"/>
      <property name="derivative" value="0"/>
      <property name="xAxisName" value="X"/>
      <property name="scrollable" value="true"/>
      <property name="extent" value="-2.949458483754513,-0.11774193548387098,401.5,1.1"/>
      <property name="tickInterval" value="1,1"/>
      <property name="yAxisName" value="Y"/>
    </component>
    <component class="com.sri.escot.NumberEntry" position="43,12" size="134,19" portid="NumberEntry-8">
      <property name="maximumDecimalPlaces" value="3"/>
      <property name="label" value="Points for Ed: "/>
      <property name="value" value="1.0"/>
      <property name="allowNegative" value="true"/>
      <property name="minimumDecimalPlaces" value="0"/>
      <property name="suffix" value=""/>
      <property name="editable" value="true"/>
    </component>
    <component class="com.sri.escot.NumberEntry" position="5,40" size="176,19" portid="NumberEntry-9">
      <property name="maximumDecimalPlaces" value="3"/>
      <property name="label" value="Points for Angelique: "/>
      <property name="value" value="1.0"/>
      <property name="allowNegative" value="true"/>
      <property name="minimumDecimalPlaces" value="0"/>
      <property name="suffix" value=""/>
      <property name="editable" value="true"/>
    </component>
    <component class="com.sri.escot.NumberEntry" position="26,68" size="151,20" portid="NumberEntry-10">
      <property name="maximumDecimalPlaces" value="3"/>
      <property name="label" value="Points for Vicky: "/>
      <property name="value" value="1.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="5,92" size="365,304" portid="AgentSheetsWrapper-1">
      <property name="classname" value="activity34"/>
      <property name="XMLWorksheet" value="thirdactivity.ws"/>
      <property name="XMLPropertysheet" value="Simulation-Properties34.sip"/>
    </component>
    <component class="org.escot.demo.ButtonPanel" position="454,6" size="127,37" portid="ButtonPanel-1">
      <property name="font" value="Dialog,Dialog,0,12"/>
    </component>
    <component class="com.sri.escot.EscotLabel" position="394,48" size="259,24">
      <property name="text" value="Press Reset, ClearGraph, enter points."/>
      <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="181,13" size="190,71" portid="TextEditor-1">
      <![CDATA[Note: Each time you must re-enter the points even if they stay the same.]]>
      <property name="foreground" value="0,0,0"/>
      <property name="background" value="255,255,255"/>
      <property name="font" value="Dialog,Dialog,0,12"/>
    </component>
    <component class="com.sri.escot.EscotLabel" position="32,448" size="309,15">
      <property name="text" value="Click on &#34;3&#34;, top left, for the solutions page."/>
      <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="PLAYERASCORE"/>
      <to portid="NumberEntry-3" name="number"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="PLAYERBSCORE"/>
      <to portid="NumberEntry-2" name="number"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="PLAYERCSCORE"/>
      <to portid="NumberEntry-4" 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="PROBABILITYTHATAWINS"/>
      <to portid="SimpleGraph-1" name=""/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="PROBABILITYTHATBWINS"/>
      <to portid="SimpleGraph-2" name=""/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="PROBABILITYTHATCWINS"/>
      <to portid="SimpleGraph-3" name=""/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="NumberEntry-10" name="number"/>
      <to portid="AgentSheetsWrapper-1" name="RECEIVEDPOINTSC"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="NumberEntry-9" name="number"/>
      <to portid="AgentSheetsWrapper-1" name="RECEIVEDPOINTSB"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="NumberEntry-8" name="number"/>
      <to portid="AgentSheetsWrapper-1" name="RECEIVEDPOINTSA"/>
    </wire>
    <wire type="org.escot.Broker">
      <from portid="AgentSheetsWrapper-1" name="clearGraph"/>
      <to portid="ButtonPanel-1" name=""/>
    </wire>
  </page>
  <page name="Solution Page">
    <component class="org.escot.demo.TextEditor" answerText="true" position="7,53" size="644,261" portid="TextEditor-2">
      <![CDATA[Your Solutions Here!
1. How many points did you assign each player to make the game fair?



2. Were you successful in making the game fair?



3. How would you explain why your numbers worked or did not work?
]]>
      <property name="foreground" value="0,0,0"/>
      <property name="background" value="255,255,255"/>
      <property name="font" value="Application,Application,0,10"/>
    </component>
  </page>
</activity>

