<?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="Checkmate I" el:subtitle="" el:id="andreas29"/>
      <el:version el:score="1" el:release="1" el:revision="0" el:status="released"/>
      <el:author  el:name="Andreas Lochmann" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2006 Andreas Lochmann</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="1.0">
      </el:compatibility>
      <el:modes el:easy="false" el:single="true" el:network="true"/>
      <el:comments>
        <el:code>Lua 5.1 and XML converted by Leveladministrators</el:code>
      </el:comments>
      <el:score el:easy="-" el:difficult="00:27"/>
    </el:info>
    <el:luamain><![CDATA[
levelw = 20
levelh = 13

CreateWorld(levelw, levelh)

draw_checkerboard_floor("fl-white", "fl-black", 0,0,levelw,levelh)
draw_border("st-rock3", 0, 0, levelw, levelh)

set_actor("ac-blackball", 3.5, 6.5, {player=0})
set_actor("ac-whiteball", levelw - 3.5, 6.5, {player=1})
set_item("it-yinyang", 3, 6)
set_item("it-yinyang", levelw - 4, 6)

oxyd(0, 6)
oxyd(levelw-1, 6)
oxyd_shuffle()  -- *g*
set_stone("st-white4", 1, 6)
set_stone("st-black4", levelw - 2, 6)

for x = 7, levelw-8 do
  for y = 1, levelh - 2 do
    if enigma.GetKind(enigma.GetFloor(x,y)) == "fl-black" then
      set_stone("st-white4", x, y)
    else
      set_stone("st-black4", x, y)
    end
  end
end

for x = 7, levelw-8 do
  for y = 4, levelh-5 do
    if enigma.GetKind(enigma.GetFloor(x,y)) == "fl-black" then
      set_stone("st-chess_black", x, y)
    else
      set_stone("st-chess_white", x, y)
    end
  end
end
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
