<?xml version="1.0" encoding="UTF-16"?>
<!-- This XML file has been created by Easy Java Simulations (Ejs). Visit http://www.um.es/fem/Ejs. -->
<!-- Please, save the file to your hard disk on your Ejs' user directory and open it with Ejs. -->
<Osejs version="4.3.7" password="">
<Osejs.Information>
<Title><![CDATA[ΕΡΓΑΣΙΑ ΨΥΧΑΡΗΣ]]></Title>
<Author><![CDATA[ΑΡΤΕΜΙΣ ΣΤΥΛΟΓΛΟΥ]]></Author>
<Keywords><![CDATA[]]></Keywords>
<Password><![CDATA[]]></Password>
<Level><![CDATA[]]></Level>
<Language><![CDATA[]]></Language>
<Abstract><![CDATA[]]></Abstract>
<ExecPassword><![CDATA[]]></ExecPassword>
<CaptureTools>false</CaptureTools>
<DataTools>false</DataTools>
<LanguageTools>false</LanguageTools>
<AppletColSupport>false</AppletColSupport>
<UseMacMenuBar>false</UseMacMenuBar>
<UseInterpreter>true</UseInterpreter>
<AdditionalLibraries>
</AdditionalLibraries>
<ImportStatements>
</ImportStatements>
<DetectedFiles><![CDATA[]]></DetectedFiles>
<AuxiliaryFiles><![CDATA[]]></AuxiliaryFiles>
</Osejs.Information>
<Osejs.Description>
<Osejs.Description.Page>
<Type>DESCRIPTION_EDITOR</Type>
<Name>Intro Page</Name>
<Active>true</Active>
<Content>
<OneHTMLPage>
  <Locale>_default_</Locale>
  <Title>Intro Page</Title>
  <External>false</External>
  <![CDATA[
<html>
  <head>
    <style type="text/css">
      <!--
        a:visited { color: purple }
        body { font-family: Georgia, Times New Roman, Times, serif; color: purple; background-color: #C8DFD0 }
        address { margin-top: 0; border-top-color: border-color; padding-top: 0; border-top-style: dotted; border-top-width: thin }
        a:link { color: blue }
        h1 { font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif }
      -->
    </style>
    
  </head>
  <body>
    <p style="margin-top: 0">
      In this model of simulation, the algorithm for the &quot;Triangle Mysteries&quot; 
      is implemented.
    </p>
    <p style="margin-top: 0">
      http://page.mi.fu-berlin.de/bhrnds/publ_papers/behrends_humble.pdf
    </p>
    <p style="margin-top: 0">
      
    </p>
    <p style="margin-top: 0">
      
    </p>
    <p style="margin-top: 0">
      To celebrate its tenth anniversary,theBalticheld a weekend of events 
      themed around the number TEN. One of us (S. H.) was asked to present a 
      series of maths art workshops in which
    </p>
    <p style="margin-top: 0">
      the general public was able to participate during this weekend. Turner 
      Prize (for contemporary art) Winner Mark Wallinger&#8217;s work 
      &#8216;&#8216;Systemising the Randomness of Nature, a look at Super Perfect 
      Numbers&#8217;&#8217;, was exhibiting at the Baltic, so randomness
    </p>
    <p style="margin-top: 0">
      and hidden order were chosen as the theme for the workshop. A game was 
      created that families were able to play as a visual starting point to 
      generate discussion around the question of
    </p>
    <p style="margin-top: 0">
      what randomness is. One starts with three different randomly placedcolours 
      on atoprowof10.Theruleforcreatingthenext row is simply to look at the 
      row above:
    </p>
    <p style="margin-top: 0">
      &#8226; If two consecutive colours in the row above are the same, enplacethesamecolourinbetweentheminthenextrow. 
      &#8226;  fthetwoconsecutivecoloursintherowabovearedifferent,
    </p>
    <p style="margin-top: 0">
      thenplace thethirdcolourinbetween them in the nextrow.
    </p>
  </body>
</html>

]]>
</OneHTMLPage>
</Content>
</Osejs.Description.Page>
</Osejs.Description>
<Osejs.Model>
<Osejs.Model.FramesPerSecond>20</Osejs.Model.FramesPerSecond>
<Osejs.Model.StepsPerDisplay>1</Osejs.Model.StepsPerDisplay>
<Osejs.Model.RealTimeVariable></Osejs.Model.RealTimeVariable>
<Osejs.Model.Autostart>false</Osejs.Model.Autostart>
<Osejs.Model.Variables>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>myvariables</Name>
<Active>true</Active>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[SIZE]]></Name>
<Value><![CDATA[0.5]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color1_1]]></Name>
<Value><![CDATA[java.awt.Color.BLACK]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color1_2]]></Name>
<Value><![CDATA[java.awt.Color.BLACK]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color1_3]]></Name>
<Value><![CDATA[java.awt.Color.gray]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color1_4]]></Name>
<Value><![CDATA[java.awt.Color.white]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color1_5]]></Name>
<Value><![CDATA[java.awt.Color.white]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color2_1]]></Name>
<Value><![CDATA[java.awt.Color.BLUE]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color2_2]]></Name>
<Value><![CDATA[java.awt.Color.BLUE]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color2_3]]></Name>
<Value><![CDATA[java.awt.Color.BLUE]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color2_4]]></Name>
<Value><![CDATA[java.awt.Color.BLUE]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color3_1]]></Name>
<Value><![CDATA[java.awt.Color.BLUE]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color3_2]]></Name>
<Value><![CDATA[java.awt.Color.BLUE]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color3_3]]></Name>
<Value><![CDATA[java.awt.Color.BLUE]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color4_1]]></Name>
<Value><![CDATA[java.awt.Color.BLUE]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color4_2]]></Name>
<Value><![CDATA[java.awt.Color.BLUE]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color5]]></Name>
<Value><![CDATA[java.awt.Color.BLUE]]></Value>
<Type><![CDATA[Color]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
</Osejs.Model.Variables>
<Osejs.Model.Initialization>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>Init Page</Name>
<Active>true</Active>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[

if(color1_1 == color1_2){ color2_1 = color1_1; } else { color2_1 = getRemainColor(color1_1,color1_2); }
if(color1_2 == color1_3){ color2_2 = color1_2; } else { color2_2 = getRemainColor(color1_2,color1_3); }
if(color1_3 == color1_4){ color2_3 = color1_3; } else { color2_3 = getRemainColor(color1_3,color1_4); }
if(color1_4 == color1_5){ color2_4 = color1_4; } else { color2_4 = getRemainColor(color1_4,color1_5); }

if(color2_1 == color2_2){ color3_1 = color2_1; } else { color3_1 = getRemainColor(color2_1,color2_2); }
if(color2_2 == color2_3){ color3_2 = color2_2; } else { color3_2 = getRemainColor(color2_2,color2_3); }
if(color2_3 == color2_4){ color3_3 = color2_3; } else { color3_3 = getRemainColor(color2_3,color2_4); }

if(color3_1 == color3_2){ color4_1 = color3_1; } else { color4_1 = getRemainColor(color3_1,color3_2); }
if(color3_2 == color3_3){ color4_2 = color3_2; } else { color4_2 = getRemainColor(color3_2,color3_3); }

if(color4_1 == color4_2){ color5 = color4_1; } else { color5 = getRemainColor(color4_1,color4_2);}

]]></Code>
</Content>
</Osejs.Model.Initialization.Page>
</Osejs.Model.Initialization>
<Osejs.Model.Evolution>
</Osejs.Model.Evolution>
<Osejs.Model.Constraints>
</Osejs.Model.Constraints>
<Osejs.Model.Library>
<Osejs.Model.Library.Page>
<Type>LIBRARY_EDITOR</Type>
<Name>GetRemainColor</Name>
<Active>true</Active>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
public java.awt.Color getRemainColor (java.awt.Color color1,java.awt.Color color2) 
{
  java.awt.Color retColor = new java.awt.Color(255,   0,   0);
  if(color1==java.awt.Color.black && color2==java.awt.Color.white) { retColor = java.awt.Color.gray;}
  if(color1==java.awt.Color.black && color2==java.awt.Color.gray) { retColor = java.awt.Color.white;}  
  if(color1==java.awt.Color.white && color2==java.awt.Color.black) { retColor = java.awt.Color.gray;}
  if(color1==java.awt.Color.white && color2==java.awt.Color.gray) { retColor = java.awt.Color.black;}
  if(color1==java.awt.Color.gray && color2==java.awt.Color.white) { retColor = java.awt.Color.black;}
  if(color1==java.awt.Color.gray && color2==java.awt.Color.black) { retColor = java.awt.Color.white;}

  if(color2==java.awt.Color.black && color1==java.awt.Color.white) { retColor = java.awt.Color.gray;}
  if(color2==java.awt.Color.black && color1==java.awt.Color.gray) { retColor = java.awt.Color.white;}  
  if(color2==java.awt.Color.white && color1==java.awt.Color.black) { retColor = java.awt.Color.gray;}
  if(color2==java.awt.Color.white && color1==java.awt.Color.gray) { retColor = java.awt.Color.black;}
  if(color2==java.awt.Color.gray && color1==java.awt.Color.white) { retColor = java.awt.Color.black;}
  if(color2==java.awt.Color.gray && color1==java.awt.Color.black) { retColor = java.awt.Color.white;}
  
  return retColor;
}

]]></Code>
</Content>
</Osejs.Model.Library.Page>
</Osejs.Model.Library>
<Osejs.Model.Elements>
</Osejs.Model.Elements>
</Osejs.Model>
<Osejs.View>
<Osejs.View.Creation>
<Osejs.View.Creation.Element>
<Expanded>true</Expanded>
<Type>Elements.Frame</Type>
<Property name="name">drawingFrame</Property>
<Property name="_ejs_mainWindow">true</Property>
<Property name="title"><![CDATA["Frame"]]></Property>
<Property name="layout"><![CDATA[border]]></Property>
<Property name="visible"><![CDATA[true]]></Property>
<Property name="location"><![CDATA["-109,126"]]></Property>
<Property name="size"><![CDATA["451,559"]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>true</Expanded>
<Type>Elements.DrawingPanel</Type>
<Property name="name">drawingPanel</Property>
<Property name="parent">drawingFrame</Property>
<Property name="position">center</Property>
<Property name="autoscaleX"><![CDATA[false]]></Property>
<Property name="autoscaleY"><![CDATA[false]]></Property>
<Property name="minimumX"><![CDATA[0]]></Property>
<Property name="maximumX"><![CDATA[10]]></Property>
<Property name="minimumY"><![CDATA[0]]></Property>
<Property name="maximumY"><![CDATA[10]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape1_1</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[1]]></Property>
<Property name="y"><![CDATA[5]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color1_1]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape1_2</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[1.5]]></Property>
<Property name="y"><![CDATA[5]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color1_2]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape1_3</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[2]]></Property>
<Property name="y"><![CDATA[5]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color1_3]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape1_4</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[2.5]]></Property>
<Property name="y"><![CDATA[5]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color1_4]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape1_5</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[3]]></Property>
<Property name="y"><![CDATA[5]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color1_5]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape2_1</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[1.25]]></Property>
<Property name="y"><![CDATA[4.5]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color2_1]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape2_2</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[1.75]]></Property>
<Property name="y"><![CDATA[4.5]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color2_2]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape2_3</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[2.25]]></Property>
<Property name="y"><![CDATA[4.5]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color2_3]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape2_4</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[2.75]]></Property>
<Property name="y"><![CDATA[4.5]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color2_4]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape3_1</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[1.50]]></Property>
<Property name="y"><![CDATA[4]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color3_1]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape3_2</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[2]]></Property>
<Property name="y"><![CDATA[4]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color3_2]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape3_3</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[2.5]]></Property>
<Property name="y"><![CDATA[4]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color3_3]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape4_1</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[1.75]]></Property>
<Property name="y"><![CDATA[3.5]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color4_1]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape4_2</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[2.25]]></Property>
<Property name="y"><![CDATA[3.5]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color4_2]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Shape2D</Type>
<Property name="name">shape5</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x"><![CDATA[2]]></Property>
<Property name="y"><![CDATA[3]]></Property>
<Property name="sizeX"><![CDATA[SIZE]]></Property>
<Property name="sizeY"><![CDATA[SIZE]]></Property>
<Property name="fillColor"><![CDATA[color5]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Property name="name">buttonsPanel</Property>
<Property name="parent">drawingFrame</Property>
<Property name="position">south</Property>
<Property name="layout"><![CDATA[FLOW:center,0,0]]></Property>
<Property name="borderType"><![CDATA[LOWERED_ETCHED]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TwoStateButton</Type>
<Property name="name">playPauseButton</Property>
<Property name="parent">buttonsPanel</Property>
<Property name="variable"><![CDATA[_isPaused]]></Property>
<Property name="imageOn"><![CDATA[/org/opensourcephysics/resources/controls/images/play.gif]]></Property>
<Property name="actionOn"><![CDATA[_play()]]></Property>
<Property name="imageOff"><![CDATA[/org/opensourcephysics/resources/controls/images/pause.gif]]></Property>
<Property name="actionOff"><![CDATA[_pause()]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Button</Type>
<Property name="name">resetButton</Property>
<Property name="parent">buttonsPanel</Property>
<Property name="image"><![CDATA[/org/opensourcephysics/resources/controls/images/reset.gif]]></Property>
<Property name="action"><![CDATA[_reset()]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Label</Type>
<Property name="name">aFieldLabel</Property>
<Property name="parent">buttonsPanel</Property>
<Property name="text"><![CDATA[" var="]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.ParsedField</Type>
<Property name="name">aField</Property>
<Property name="parent">buttonsPanel</Property>
</Osejs.View.Creation.Element>
</Osejs.View.Creation>
</Osejs.View>
</Osejs>
