<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<el:level xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://enigma-game.org/schema/level/1 level.xsd" xmlns:el="http://enigma-game.org/schema/level/1">
  <el:protected>
    <el:info el:type="level">
      <el:identity el:title="The Enigmhanoi Towers" el:subtitle="" el:id="alain05"/>
      <el:version el:score="1" el:release="2" el:revision="4" el:status="released"/>
      <el:author  el:name="Alain Busser" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2006 Alain Busser</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="1.10"/>
      <el:modes el:easy="true" el:single="true" el:network="false"/>
      <el:comments><el:code>New API converted by /dev/null</el:code></el:comments>
      <el:score el:easy="1:12" el:difficult="1:41"/>
    </el:info>
    <el:luamain><![CDATA[  
ti[" "] = {"fl_tigris"}
ti["."] = {"fl_lawn"}
ti["~"] = {"fl_water"}
ti["#"] = {"st_granite"}
ti["X"] = {"st_grate_cross"}
ti["S"] = {"st_shogun_sml"}
ti["w"] = {"it_shogun_l", target = "west"}
ti["e"] = {"it_shogun_l", target = "east"}
ti["W"] = {"st_door", "west", faces = "ew", state = CLOSED}
ti["E"] = {"st_door", "east", faces = "ew", state = CLOSED}
ti["1"] = {"it_document", "anchor", text = "text1"}
ti["2"] = {"it_document", text = "text2"}
ti["3"] = {"it_document", text = "text3"}
ti["O"] = {"st_oxyd_a"}
ti["@"] = {"#ac_marble_black"}

wo(ti, " ", {
    "####################",
    "# #    1 2 3     # #",
    "# #              # #",
    "# # ..       ... # #",
    "# # ..       .@. # #",
    "# # ..       . . # #",  
    "# W ..       ... E #",
    "# #              # #",
    "# #              # #",
    "# ~ ~        ~~~ ~ #",
    "# ~~~ ~~ ~~~ ~ ~ ~ #",
    "#O~ ~ ~~ ~ ~ ~~~ ~O#",
    "####################"}) 

if wo["IsDifficult"] then
    wo:drawMap(ti, no["anchor"] + 2 * S, " ", {"XXXXX", "Xw eX", "XXSXX", "XXXXX"})
else
    wo:drawMap(ti, no["anchor"] + 2 * S, " ", {"XXXXX", "XXSeX", "Xw XX", "XXXXX"},
               cond(random() < 0.5, MAP_FLIP_VERTICAL, MAP_IDENT))
end
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="true" el:comment="wordplay between 'enigma' and the 'hanoi towers' solitary game"/>
        <el:translation el:lang="fr">Les tours d'Enigmhanoi</el:translation>
      </el:string>
      <el:string el:key="text1">
        <el:english el:translate="true">Who speaks, does not know (Lao Tse)</el:english>
        <el:translation el:lang="fr">Celui qui parle ne sait pas (Lao Tseu)</el:translation>
      </el:string> 
      <el:string el:key="text2">
        <el:english el:translate="true">The wise man laughs (Lao Tse)</el:english>
        <el:translation el:lang="fr">L'homme sage rit (Lao Tseu)</el:translation>
      </el:string> 
      <el:string el:key="text3">
        <el:english el:translate="true">Who knows, does not speak (Lao Tse)</el:english>
        <el:translation el:lang="fr">Celui qui sait ne parle pas (Lao Tseu)</el:translation>
      </el:string> 
    </el:i18n>
  </el:protected>
</el:level>
