<?xml version="1.0"?>
<!DOCTYPE activity SYSTEM "escot.dtd" >
<activity name="Rock, Paper, Scissors" escotVersion="1.2.5" size="661,486" puzzle_id="12">
  <page name="Introduction">
    <component class="org.escot.demo.HTMLViewer" position="11,7" size="603,453" portid="HTMLViewer-1">
      <![CDATA[<html>	<head>		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">		<meta name="generator" content="Adobe GoLive 4">		<title>Welcome to Adobe GoLive 4</title>	</head>	<body>		<center>			<h1>Rock, Paper, Scissors</h1>		</center>		<p><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Welcome to the first ESCOT Problem of the Week for the new millenium!  We will be playing the Rock, Paper, Scissors game to explore some concepts of probability.  For those of you who are not familiar with Rock, Paper, Scissors, it is a choosing game in which two or more people make throws with their hands.  The throws resemble the shapes of a rock, scissors and paper. The game is scored as follows:  Rock smashes Scissors (rock wins); Paper covers Rock (paper wins); Scissors cuts paper (scissors wins). If both players make the same throw, it is a tie.  </font></p>		<div align="left">			<p><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><b>Directions for the Simulations</b>:</font></p>			<p><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Each time you run the simulation, you must first press the Reset Button.  Then you must press the Clear Graph Button so that you can start a new simulation.  Next press either the Step button or the Run button.  The Step button will step through the game one throw at a time.  The Run button will run through the entire set of trials. We recommend stepping through a few throws in each activity first before running the simulation.</font></p>			<p><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Please remember that if you press the Clear Button, you must reset the game by pressing the Reset Button.</font></p>						<ul>				<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">To run the simulation hit the Run Button after Pressing the Reset Button.</font>				<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">To stop the simulation hit the Stop Button.</font>				<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">To step through the simulation hit the Step Button; it is the small <b>yellow</b> arrow to the right of the Run button.</font>				<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">To reset the simulation, hit the Reset Button.</font>				<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">To reset the graph, hit the Clear Graph Button.</font>				<li><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">To completely clear the worksheet, hit the Clear Button.</font>			</ul></p>Please click on the "2" at the top of this window to go to the activity on the second page.			</html>]]>
    </component>
  </page>
  <page name="First 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[In this activity you will observe a simulation of the Rock, Paper, Scissors game and tell us what you think about its fairness.  In the simulation there are two players, Ed and Vicky.  The scorekeeper, Mr. Garrison, is on the left watching over the game.  The game is played 100 times. The throws for each player are generated randomly.

The graph next to the simulation helps us think about Ed's winning percentage.  It plots, over the course of the 100 throws, the ratio of Ed's wins to the total number of wins, ignoring ties for now. The vertical (up) axis represents this ratio and it goes from a value of 0, where Ed isn't winning any, to 1, where Ed is winning all. The number of wins for Ed and Vicky are shown below the graph.]]>
      <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" answerText="true" position="9,414" size="638,69" portid="TextEditor-2">
      <![CDATA[Your solution here:
Press Reset and try the simulation as many times as you wish.  (remember to press Reset then clearGraph between tries)   When you are done, press RESET one more time to answer the following two questions:
1. Do you think that this game is fair?  Please explain your answer.

2. Explain what happens to the graph as the game goes on.  What does this tell you about the "fairness" of the game?




]]>
      <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="activity1"/>
      <property name="XMLWorksheet" value="firstactivity.ws"/>
      <property name="XMLPropertysheet" value="Simulation-Properties1.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>
    <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>

