<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../xsl/challenge.xsl"?>
<fll:challenge
    xmlns:fll="http://fll-tools.com/applications/scoring/v1/challenge.xsd" year="2016" version="1" name="ANIMAL ALLIES">

    <strings language="en-US">

        <string id="yes">                           Yes</string>
        <string id="no">                            No</string>

        <string id="sharkshipment-name">            M01 Shark Shipment</string>
        <string id="sharkshipment-desc">            <![CDATA[Move the Shark to her new home not touching her tank's walls.]]></string>
        <string id="sharkshipment-scoring">         Shark and take are completely in Target</string>
        <string id="sharkshipment-scoring-target0"> None</string>
        <string id="sharkshipment-scoring-target1"> T1</string>
        <string id="sharkshipment-scoring-target2"> T2</string>
        <string id="sharkshipment-scoring2">        Shark touching only tank floor (NOT wall)</string>
        <string id="sharkshipment-scoring3">        Nothing touched the Shark except the tank</string>
                   
        <string id="dog-name">                      M02 Service Dog Action</string>
        <string id="dog-desc">                      <![CDATA[Drive past the visually impaired man, and the dog will do her job.]]></string>
        <string id="dog-scoring">                   Warning Fence is down</string>
        <string id="dog-scoring2">                  Robot completely crossed fence from West, between barriers</string>
                   
        <string id="conservation-name">             M03 Conservation</string>
        <string id="conservation-desc">             <![CDATA[During the Match, participating Robots make the trays switch places.  A switch is officially successful when the red axle causes the system to stop.  Robots then have the option of removing the received animal and replacing it with a different animal for switching.  The Referee resets the red axle.]]></string>
        <string id="conservation-scoring">          Pairs of Identical Animals completely on same side</string>

        <string id="feeding-name">                  M04 Feeding</string>
        <string id="feeding-desc">                  <![CDATA[Deliver food from the Refrigerator to Target Animal Areas.]]></string>
        <string id="feeding-scoring">               Pieces of food completely in Animal Areas (only one colour per Area)</string>

        <string id="biomimicry-name">               M05 Biomimicry</string>
        <string id="biomimicry-desc">               <![CDATA[Test our ability to mimic the Gecko's “stickiness” by placing the White (mechanical) Gecko on the Biomimicry Wall, and/or by seeing if the Robot itself can get onto the wall.]]></string>
        <string id="biomimicry-scoring1">           Wall supports complete weight of White Gecko</string>
        <string id="biomimicry-scoring2">           Wall supports complete weight of Robot</string>
        
        <string id="milk-name">                     M06 Milking Automation</string>
        <string id="milk-desc">                     <![CDATA[Guide the cow into the machine, then spin the machine until Milk comes out. If you spin too far, Manure also comes out!]]></string>
        <string id="milk-scoring">                  All Milk has rolled out</string>
        <string id="milk-scoring2">                 All Manure has rolled out</string>
        
        <string id="panda-name">                    M07 Panda Release</string>
        <string id="panda-desc">                    <![CDATA[Convert the Panda’s scene from facility care and observation to open wilderness.]]></string>
        <string id="panda-scoring">                 Slider appears fully opened clockwise</string>
        
        <string id="camera-name">                   M08 Camera Recovery</string>
        <string id="camera-desc">                   <![CDATA[Go get the camera and bring it to Base.]]></string>
        <string id="camera-scoring">                Camera is completely in Base</string>
        
        <string id="training-name">                 M09-M15 Training and Research</string>
        <string id="training-desc">                 <![CDATA[Move the Dog & Trainer, Zoologist, and/or Manure Samples to the Training & Research Area.]]></string>
        <string id="training-scoring-1">            <![CDATA[Dog & Trainer completely in Training/Research Area]]></string>
        <string id="training-scoring-2">            <![CDATA[Zoologist completely in Training/Research Area]]></string>
        <string id="training-scoring-3">            <![CDATA[Manure completely in Training/Research Area]]></string>
        
        <string id="bee-name">                      M10 Bee Keeping</string>
        <string id="bee-desc">                      <![CDATA[Place the Bee on the Beehive and get the Honey out.]]></string>
        <string id="bee-scoring">                   Bee is on Beehive with NO Honey in Beehive</string>
        <string id="bee-scoring1">                  Bee is on Beehive and Honey is completely in Base</string>
        <string id="bee-error">                     Choose one of the two options</string>
        
        <string id="prosthesis-name">               M11 Prosthesis</string>
        <string id="prosthesis-desc">               <![CDATA[Fit the Prosthesis where the legs of the Pet (Our Little Friend) should be, and send the Pet to its place on the farm.]]></string>
        <string id="prosthesis-scoring">            Prosthesis fitted to Pet, NOT held by Ref</string>
        <string id="prosthesis-scoring-0">          Prosthesis fitted to Pet and completely in Farm Target</string>
        <string id="prosthesis-error">              Choose one of the two options</string>
        
        <string id="seal-name">                     M12 Seal in Base</string>
        <string id="seal-desc">                     <![CDATA[The Seal is completely in Base and not broken]]></string>
        <string id="seal-scoring">                  Seal is completely in Base, NOT broken</string>
                           
        <string id="milkBase-name">                 M13 Milk in Base</string>
        <string id="milkBase-desc">                 <![CDATA[-]]></string>
        <string id="milkBase-scoring">              All three Milk are completely in Base</string>

        <string id="milkRamp-name">                 M14 Milk on Ramp</string>
        <string id="milkRamp-desc">                 <![CDATA[-]]></string>
        <string id="milkRamp-scoring">              Select option that best fits</string>
        <string id="milkRamp-scoring-0">            None</string>
        <string id="milkRamp-scoring-1">            All three milk supported by Ramp</string>
        <string id="milkRamp-scoring-2">            <![CDATA[+ only things supported by & touching Ramp]]></string>
        <string id="milkRamp-scoring-3">            + standing</string>
        
        <string id="samples-name">                  M15 All Samples</string>
        <string id="samples-desc">                  <![CDATA[-]]></string>
        <string id="samples-scoring">               All seven Manure Samples completely in Training/Research Area</string>
        
        <string id="penalties-name">                Penalties</string>
        <string id="penalties-desc">                <![CDATA[Penalties given]]></string>
        <string id="penalties-scoring">             Number of Manure samples in the white triangle area</string>
                             
    </strings>

    <!-- Do NOT edit below this line -->

    <mission name="sharkshipment-name" description="sharkshipment-desc">
        <objective-enum id="target" description="sharkshipment-scoring" default="0">
            <option name="2" description="sharkshipment-scoring-target2" />
            <option name="1" description="sharkshipment-scoring-target1" />
            <option name="0" description="sharkshipment-scoring-target0" />
        </objective-enum>
        <objective-yesno id="bonus" description="sharkshipment-scoring2" default="no" />
        <objective-yesno id="malus" description="sharkshipment-scoring3" default="no" />
        <score>
            <indexes>
                <index objective="target" />
                <index objective="bonus" />
                <index objective="malus" />
            </indexes>
            <cases>
                <case> <index-ref value="0" /> <index-ref value="no" /> <index-ref value="yes" /> <points amount="0" /> </case>
                <case> <index-ref value="1" /> <index-ref value="no" /> <index-ref value="yes" /> <points amount="7" /> </case>
                <case> <index-ref value="2" /> <index-ref value="no" /> <index-ref value="yes" /> <points amount="10" /> </case>
                <case> <index-ref value="0" /> <index-ref value="yes" /> <index-ref value="yes" /> <points amount="0" /> </case>
                <case> <index-ref value="1" /> <index-ref value="yes" /> <index-ref value="yes" /> <points amount="27" /> </case>
                <case> <index-ref value="2" /> <index-ref value="yes" /> <index-ref value="yes" /> <points amount="30" /> </case>
                <case> <index-ref value="0" /> <index-ref value="no" /> <index-ref value="no" /> <points amount="0" /> </case>
                <case> <index-ref value="1" /> <index-ref value="no" /> <index-ref value="no" /> <points amount="0" /> </case>
                <case> <index-ref value="2" /> <index-ref value="no" /> <index-ref value="no" /> <points amount="0" /> </case>
                <case> <index-ref value="0" /> <index-ref value="yes" /> <index-ref value="no" /> <points amount="0" /> </case>
                <case> <index-ref value="1" /> <index-ref value="yes" /> <index-ref value="no" /> <points amount="0" /> </case>
                <case> <index-ref value="2" /> <index-ref value="yes" /> <index-ref value="no" /> <points amount="0" /> </case>
            </cases>
        </score>
    </mission>

    <mission name="dog-name" description="dog-desc">
        <objective-yesno id="dog" description="dog-scoring" default="no" />
        <objective-yesno id="dog-malus" description="dog-scoring2" default="no" />
        <score>
            <indexes>
                <index objective="dog" />
                <index objective="dog-malus" />
            </indexes>
            <cases>
                <case> <index-ref value="no"  /> <index-ref value="yes"  /> <points amount="0"  /> </case>
                <case> <index-ref value="yes"  /> <index-ref value="yes"  /> <points amount="15"  /> </case>
                <case> <index-ref value="no"  /> <index-ref value="no"  /> <points amount="0"  /> </case>
                <case> <index-ref value="yes"  /> <index-ref value="no"  /> <points amount="0"  /> </case>
            </cases>
        </score>
    </mission>

    <mission name="conservation-name" description="conservation-desc">
        <objective-number id="conservation" description="conservation-scoring" min="0" max="6" default="0" />
        <score>
            <indexes>
                <index objective="conservation" />
            </indexes>
            <cases>
                <case> <index-ref value="0" /> <points amount="0"  /> </case>
                <case> <index-ref value="1" /> <points amount="20"  /> </case>
                <case> <index-ref value="2" /> <points amount="40"  /> </case>
                <case> <index-ref value="3" /> <points amount="60"  /> </case>
                <case> <index-ref value="4" /> <points amount="80"  /> </case>
                <case> <index-ref value="5" /> <points amount="100"  /> </case>
                <case> <index-ref value="6" /> <points amount="120"  /> </case>
            </cases>
        </score>
    </mission>
    
    <mission name="feeding-name" description="feeding-desc">
        <objective-number id="feeding" description="feeding-scoring" min="0" max="8" default="0" />
        <score>
            <indexes>
                <index objective="feeding" />
            </indexes>
            <cases>
                <case> <index-ref value="0" /> <points amount="0"  /> </case>
                <case> <index-ref value="1" /> <points amount="10"  /> </case>
                <case> <index-ref value="2" /> <points amount="20"  /> </case>
                <case> <index-ref value="3" /> <points amount="30"  /> </case>
                <case> <index-ref value="4" /> <points amount="40"  /> </case>
                <case> <index-ref value="5" /> <points amount="50"  /> </case>
                <case> <index-ref value="6" /> <points amount="60"  /> </case>
                <case> <index-ref value="7" /> <points amount="70"  /> </case>
                <case> <index-ref value="8" /> <points amount="80"  /> </case>
            </cases>
        </score>
    </mission>

    <mission name="biomimicry-name" description="biomimicry-desc">
        <objective-yesno id="gecko" description="biomimicry-scoring1" default="no" />
        <objective-yesno id="robot" description="biomimicry-scoring2" default="no" />
        <score>
            <indexes>
                <index objective="gecko" />
            </indexes>
            <cases>
                <case> <index-ref value="no" /> <points amount="0"  /> </case>
                <case> <index-ref value="yes" /> <points amount="15"  /> </case>
            </cases>
        </score>
        <score>
            <indexes>
                <index objective="robot" />
            </indexes>
            <cases>
                <case> <index-ref value="no" /> <points amount="0"  /> </case>
                <case> <index-ref value="yes" /> <points amount="32"  /> </case>
            </cases>
        </score>
    </mission>
    
    <mission name="milk-name" description="milk-desc">
        <objective-yesno id="milk1" description="milk-scoring" default="no" />        
        <objective-yesno id="milk2" description="milk-scoring2" default="no" />
        <score>
            <indexes>
                <index objective="milk1" />
                <index objective="milk2" />
            </indexes>
            <cases>
                <case> <index-ref value="no" /> <index-ref value="no"  /> <points amount="0"  />  </case>
                <case> <index-ref value="no" /> <index-ref value="yes"  /> <points amount="0"  />  </case>
                <case> <index-ref value="yes" /> <index-ref value="no"  /> <points amount="20"  />  </case>
                <case> <index-ref value="yes" /> <index-ref value="yes"  /> <points amount="15"  />  </case>
            </cases>
        </score>
    </mission>
    
    <mission name="panda-name" description="panda-desc">
        <objective-yesno id="panda" description="panda-scoring" default="no" />
        <score>
            <indexes>
                <index objective="panda" />
            </indexes>
            <cases>
                <case> <index-ref value="no"  /> <points amount="0"  /> </case>
                <case> <index-ref value="yes"  /> <points amount="10"  /> </case>
            </cases>
        </score>
    </mission>
    
    <mission name="camera-name" description="camera-desc">
        <objective-yesno id="camera" description="camera-scoring" default="no" />
        <score>
            <indexes>
                <index objective="camera" />
            </indexes>
            <cases>
                <case> <index-ref value="no"  /> <points amount="0"  /> </case>
                <case> <index-ref value="yes"  /> <points amount="15"  /> </case>
            </cases>
        </score>
    </mission>
    
    <mission name="training-name" description="training-desc">
        <objective-yesno id="training1" description="training-scoring-1" default="no" />
        <objective-yesno id="training2" description="training-scoring-2" default="no" />
        <objective-number id="training3" description="training-scoring-3" min="0" max="7" default="0" />
        <score>
            <indexes>
                <index objective="training1" />
            </indexes>
            <cases>
                <case> <index-ref value="no"  /> <points amount="0"  /> </case>
                <case> <index-ref value="yes"  /> <points amount="12"  /> </case>
            </cases>
        </score>
        <score>
            <indexes>
                <index objective="training2" />
            </indexes>
            <cases>
                <case> <index-ref value="no"  /> <points amount="0"  /> </case>
                <case> <index-ref value="yes"  /> <points amount="15"  /> </case>
            </cases>
        </score>
        <score>
            <indexes>
                <index objective="training3" />
            </indexes>
            <cases>
                <case> <index-ref value="0"  /> <points amount="0"  /> </case>
                <case> <index-ref value="1"  /> <points amount="5"  /> </case>
                <case> <index-ref value="2"  /> <points amount="10"  /> </case>
                <case> <index-ref value="3"  /> <points amount="15"  /> </case>
                <case> <index-ref value="4"  /> <points amount="20"  /> </case>
                <case> <index-ref value="5"  /> <points amount="25"  /> </case>
                <case> <index-ref value="6"  /> <points amount="30"  /> </case>
                <case> <index-ref value="7"  /> <points amount="35"  /> </case>
            </cases>
        </score>
    </mission>
    
    <mission name="bee-name" description="bee-desc">
        <objective-yesno id="bee" description="bee-scoring" default="no" />
        <objective-yesno id="bee1" description="bee-scoring1" default="no" />
        <score>
            <indexes>
                <index objective="bee" />
                <index objective="bee1" />
            </indexes>
            <cases>
                <case> <index-ref value="no" /> <index-ref value="no" /> <points amount="0"  /> </case>
                <case> <index-ref value="yes" /> <index-ref value="no" /> <points amount="12"  /> </case>
                <case> <index-ref value="no" /> <index-ref value="yes" /> <points amount="15"  /> </case>
                <case> <index-ref value="yes" /> <index-ref value="yes" /> <error message="bee-error" /> </case>
            </cases>
        </score>
    </mission>
    
    <mission name="prosthesis-name" description="prosthesis-desc">
        <objective-yesno id="prosthesis" description="prosthesis-scoring" default="no" />
        <objective-yesno id="prosthesis0" description="prosthesis-scoring-0" default="no" />
        <score>
            <indexes>
                <index objective="prosthesis" />
                <index objective="prosthesis0" />
            </indexes>
            <cases>
                <case> <index-ref value="no" /> <index-ref value="no" /> <points amount="0"  /> </case>
                <case> <index-ref value="no" /> <index-ref value="yes" /> <points amount="9"  /> </case>
                <case> <index-ref value="yes" /> <index-ref value="no" /> <points amount="15"  /> </case>
                <case> <index-ref value="yes" /> <index-ref value="yes" /> <error message="prosthesis-error" /> </case>
            </cases>
        </score>
    </mission>
    
    <mission name="seal-name" description="seal-desc">
        <objective-yesno id="seal" description="seal-scoring" default="no" />
        <score>
            <indexes>
                <index objective="seal" />
            </indexes>
            <cases>
                <case> <index-ref value="no"  /> <points amount="0"  /> </case>
                <case> <index-ref value="yes"  /> <points amount="1"  /> </case>
            </cases>
        </score>
    </mission>
    
    <mission name="milkBase-name" description="milkBase-desc">
        <objective-yesno id="milkBase" description="milkBase-scoring" default="no" />
        <score>
            <indexes>
                <index objective="milkBase" />
            </indexes>
            <cases>
                <case> <index-ref value="no"  /> <points amount="0"  /> </case>
                <case> <index-ref value="yes"  /> <points amount="1"  /> </case>
            </cases>
        </score>
    </mission>
    
    <mission name="milkRamp-name" description="milkRamp-desc">
        <objective-enum id="milkRamp" description="milkRamp-scoring" default="0">
            <option name="0" description="milkRamp-scoring-0" />
            <option name="1" description="milkRamp-scoring-1" />
            <option name="2" description="milkRamp-scoring-2" />
            <option name="3" description="milkRamp-scoring-3" />
        </objective-enum>
        <score>
            <indexes>
                <index objective="milkRamp" />
            </indexes>
            <cases>
                <case> <index-ref value="0" /> <points amount="0"  /> </case>
                <case> <index-ref value="1" /> <points amount="2"  /> </case>
                <case> <index-ref value="2" /> <points amount="3"  /> </case>
                <case> <index-ref value="3" /> <points amount="4"  /> </case>
            </cases>
        </score>
    </mission>
    
    <mission name="samples-name" description="samples-desc">
        <objective-yesno id="samples" description="samples-scoring" default="no" />
        <score>
            <indexes>
                <index objective="samples" />
            </indexes>
            <cases>
                <case> <index-ref value="no"  /> <points amount="0"  /> </case>
                <case> <index-ref value="yes"  /> <points amount="5"  /> </case>
            </cases>
        </score>
    </mission>
    
    <mission name="penalties-name" description="penalties-desc">
        <objective-enum id="penalties" description="penalties-scoring" default="0">
            <option name="0" description="0" />
            <option name="1" description="1" />
            <option name="2" description="2" />
            <option name="3" description="3" />
            <option name="4" description="4" />
            <option name="5" description="5" />
        </objective-enum>
        <score>
            <indexes>
                <index objective="penalties" />
            </indexes>
            <cases>
                <case> <index-ref value="0" /> <points amount="0"  /> </case>
                <case> <index-ref value="1" /> <points amount="-6"  /> </case>
                <case> <index-ref value="2" /> <points amount="-12"  /> </case>
                <case> <index-ref value="3" /> <points amount="-18"  /> </case>
                <case> <index-ref value="4" /> <points amount="-24"  /> </case>
                <case> <index-ref value="5" /> <points amount="-30"  /> </case>
            </cases>
        </score>
    </mission>

</fll:challenge>
