summaryrefslogtreecommitdiff
path: root/assets/levels/eulerian/double-add-one.xml
blob: b25b71bd89f8adec1b4db0de20dc9a1e934a0aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<level title="Best Path" description="Find a path through the graph (it does not have to be Eulerian).;Every time it passes through a red edge, your score will increase by 1.;Every time it passes through a blue edge, your score will double." objective="Earn as many points as possible."/>
<global-vertex-protections protect="acd"/>
<global-edge-protections protect="acd"/>
<colors>
    <color color="#FF0000" name="red"/>
    <color color="#0000FF" name="blue"/>
</colors>
<graph>
    <vertex x="200" y="450" id="l"/>
    <vertex x="300" y="400" id="top-l"/>
    <vertex x="400" y="350" id="top-m"/>
    <vertex x="500" y="400" id="top-r"/>
    <vertex x="300" y="500" id="bot-l"/>
    <vertex x="400" y="550" id="bot-m"/>
    <vertex x="500" y="500" id="bot-r"/>
    <vertex x="600" y="450" id="r"/>
    
    <edge v1="l" v2="top-l" color="red"/>
    <edge v1="top-l" v2="top-m" color="red"/>
    <edge v1="top-m" v2="top-r" color="red"/>
    <edge v1="top-r" v2="r" color="red"/>
    <edge v1="r" v2="bot-r" color="red"/>
    <edge v1="bot-r" v2="bot-m" color="red"/>
    <edge v1="bot-m" v2="bot-l" color="red"/>
    <edge v1="bot-l" v2="l" color="red"/>
    
    
    <edge v1="l" v2="r" color="blue"/>
    <edge v1="top-l" v2="bot-l" color="blue"/>
    <edge v1="top-m" v2="bot-m" color="blue"/>
    <edge v1="top-r" v2="bot-r" color="blue"/>
</graph>
<path points="0">
    <edge color="red" op="+" val="1"/>
    <edge color="blue" op="*" val="2"/>
</path>
<values>
    <var id="points" val="0"/>
    <var id="objective" val="46"/>
</values>