-- ################ opis #################
-- 01 skala
-- 04 zlote jajko

-- 05 tarcza

-- 10 siano pionowo
-- 13 siano poziomo
-- 20 kura

-- 25 przełącznik / otwiera rure

-- 30 zwrotnica -| 33
-- 31 zwrotnica _| 30
-- 32 zwrotnica |_ 31
-- 33 zwrotnica |- 32

-- 35 zwrotnica zamrożona -|
-- 36 zwrotnica zamrożona _|
-- 37 zwrotnica zamrożona |_
-- 38 zwrotnica zamrożona |-

-- 40 zwrotnica automatyczna

-- 98 rura
-- 99 rura z blokada

-- wersja 1.08


local maps = {}

-- ################## worlds #################
maps[1] = {}
maps[2] = {}

-- ################## levels wold 1 ##########
-- maps[1][27] = {
--   width = 9, 
--   height = 10,
--   cells = { 10,13,00,13,00,13,00,13,00,10,
--             00,00,00,00,00,00,00,00,00,00,
--             10,00,00,00,00,00,00,00,00,10,
--             00,01,00,00,10,00,00,00,00,00,
--             20,00,00,30,00,13,00,00,00,98,
--             10,33,00,00,00,00,00,00,14,10,
--             00,00,00,05,01,32,31,00,00,00,
--             10,32,00,00,00,00,00,31,04,10,
--             00,13,00,13,00,13,00,13,00,00, }
-- }




maps[1][1] = {
  width = 9, 
  height = 10,
  turns = 18,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,00,00,00,00,00,00,00,10,
00,04,33,00,00,00,00,00,00,
10,00,00,00,00,00,00,00,10,
00,00,00,00,00,00,00,00,00,
10,00,32,00,30,00,33,00,10,
00,00,00,00,00,00,00,00,00,
10,00,04,00,00,00,00,00,10,
00,00,00,00,00,00,33,04,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][2] = {
  width = 9, 
  height = 10,
  turns = 18,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,00,00,00,00,00,00,04,10,
00,01,04,00,30,00,00,33,00,
10,01,00,00,00,00,00,00,10,
00,01,00,00,00,00,00,00,00,
10,01,00,00,00,00,00,00,10,
00,01,00,00,00,00,00,00,00,
10,01,00,00,00,00,00,00,10,
00,04,32,00,00,00,00,32,00,
13,00,13,00,98,13,00,13,00, }
}
-- maps[1][2] = {
--   width = 9, 
--   height = 10,
--   turns = 18,
--   stars = { 0,201,301 },
--   cells = { 13,00,13,00,20,13,00,13,00,
--             10,00,00,00,00,00,00,00,10,
--             00,01,00,00,00,00,00,33,00,
--             10,01,00,00,04,00,00,00,10,
--             00,01,00,00,00,00,00,00,00,
--             10,01,00,00,00,00,00,00,10,
--             00,01,00,00,04,00,00,00,00,
--             10,01,00,00,00,00,00,00,10,
--             00,04,32,00,00,00,00,32,00,
--             13,00,13,00,98,13,00,13,00, }
-- }

maps[1][3] = {
  width = 9, 
  height = 10,
  turns = 23,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,04,00,00,00,00,00,04,10,
00,00,00,00,30,00,00,33,00,
10,00,00,00,14,00,00,00,10,
00,00,00,14,14,00,00,00,00,
10,32,00,00,33,14,00,00,10,
00,00,14,14,00,14,14,00,00,
10,32,00,00,00,00,00,33,10,
00,00,00,14,00,14,00,04,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][4] = {
  width = 9, 
  height = 10,
  turns = 14,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,01,01,01,00,01,01,01,10,
00,31,00,00,31,00,00,30,00,
10,00,00,00,01,01,14,00,10,
00,32,00,00,00,04,14,00,00,
10,00,00,00,01,01,14,00,10,
00,04,00,00,31,00,04,00,00,
10,31,00,00,33,00,00,32,10,
00,01,01,01,00,01,01,01,00,
13,00,13,00,98,13,00,13,00 }
}
maps[1][5] = {
  width = 9, 
  height = 10,
  turns = 20,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,04,00,00,00,00,00,04,10,
00,30,00,00,30,00,00,32,00,
10,00,14,14,14,00,00,00,10,
00,31,00,31,14,14,00,00,00,
10,00,14,32,30,14,00,00,10,
00,00,14,14,00,14,00,00,00,
10,30,32,14,00,14,00,00,10,
00,14,30,04,00,00,00,32,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][6] = {
  width = 9, 
  height = 10,
  turns = 29,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,31,00,00,00,00,00,31,10,
00,00,04,00,00,04,00,00,00,
10,00,00,32,00,00,00,32,10,
00,00,30,00,31,00,32,00,00,
10,00,00,00,14,00,00,00,10,
00,00,00,00,14,30,32,00,00,
10,00,00,31,30,00,00,04,10,
00,31,33,00,00,00,00,00,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][7] = {
  width = 9, 
  height = 10,
  turns = 24,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,31,00,00,00,00,00,04,10,
00,00,00,14,00,14,01,14,00,
10,00,00,01,33,00,30,14,10,
00,30,00,00,00,00,31,01,00,
10,00,01,14,01,14,00,14,10,
00,00,00,00,31,00,04,14,00,
10,33,00,00,31,00,01,01,10,
00,04,00,00,00,00,01,01,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][8] = {
  width = 9, 
  height = 10,
  turns = 32,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,04,00,14,00,14,00,04,10,
00,32,00,00,00,00,00,30,00,
10,00,32,00,30,00,30,00,10,
00,00,00,14,14,14,00,14,00,
10,32,30,00,14,30,00,30,10,
00,00,14,00,00,00,14,00,00,
10,00,14,00,30,00,00,30,10,
00,30,00,00,00,30,14,04,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][9] = {
  width = 9, 
  height = 10,
  turns = 21,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,04,01,01,00,01,01,04,10,
00,00,32,00,00,31,00,00,00,
10,00,00,00,31,00,00,33,10,
00,00,00,00,00,00,00,00,00,
10,31,00,00,00,00,00,31,10,
00,32,00,00,00,30,00,00,00,
10,00,31,00,31,00,00,00,10,
00,00,01,01,00,01,01,04,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][10] = {
  width = 9, 
  height = 10,
  turns = 43,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,01,01,00,00,00,01,01,10,
00,37,00,00,31,00,00,38,00,
10,00,01,01,01,01,01,00,10,
00,31,00,30,01,31,00,30,00,
10,00,00,00,01,00,00,04,10,
00,00,00,14,01,36,00,35,00,
10,00,00,00,32,32,04,30,10,
00,32,00,32,00,30,04,30,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][11] = {
  width = 9, 
  height = 10,
  turns = 26,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,04,00,00,00,00,33,01,10,
00,32,33,14,00,00,30,01,00,
10,00,04,14,00,00,00,01,10,
00,00,14,14,00,00,00,01,00,
10,30,00,00,31,00,04,01,10,
00,00,00,00,00,00,00,01,00,
10,00,00,00,00,00,00,01,10,
00,36,00,00,00,00,35,01,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][12] = {
  width = 9, 
  height = 10,
  turns = 15,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,37,00,00,00,00,00,38,10,
00,00,14,14,00,14,14,00,00,
10,00,14,14,00,14,14,00,10,
00,33,00,00,32,00,04,00,00,
10,00,00,14,14,14,00,00,10,
00,00,00,14,04,14,00,00,00,
10,30,00,00,33,00,00,35,10,
00,33,00,00,00,00,00,04,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][13] = {
  width = 9, 
  height = 10,
  turns = 23,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,32,04,00,00,00,00,38,10,
00,00,00,00,00,00,00,00,00,
10,00,14,00,00,00,00,00,10,
00,00,14,14,33,00,00,30,00,
10,00,00,14,14,14,00,00,10,
00,37,00,00,38,14,14,00,00,
10,00,00,14,33,00,00,30,10,
00,04,00,14,00,00,00,04,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][14] = {
  width = 9, 
  height = 10,
  turns = 52,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,04,37,00,00,38,00,00,10,
00,36,35,14,00,31,00,38,00,
10,00,37,00,00,35,37,35,10,
00,04,00,32,00,00,36,38,00,
10,37,35,31,00,38,00,00,10,
00,00,37,00,33,00,00,00,00,
10,00,35,36,30,00,00,35,10,
00,36,00,00,00,36,00,04,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][15] = {
  width = 9, 
  height = 10,
  turns = 25,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,32,00,32,00,00,00,04,10,
00,00,00,04,00,00,00,00,00,
10,00,14,31,00,37,00,33,10,
00,00,14,14,00,00,14,00,00,
10,04,14,00,00,00,14,00,10,
00,00,01,00,30,00,00,35,00,
10,00,14,00,00,00,00,01,10,
00,31,00,00,00,35,01,01,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][16] = {
  width = 9, 
  height = 10,
  turns = 16,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,00,04,00,00,00,00,00,10,
00,00,00,00,00,00,00,00,00,
10,00,32,00,30,00,00,25,10,
00,00,00,00,00,00,00,00,00,
10,00,00,00,00,00,00,00,10,
00,00,31,00,33,00,00,04,00,
10,00,00,00,00,00,00,00,10,
00,00,04,00,00,00,00,00,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][17] = {
  width = 9, 
  height = 10,
  turns = 14,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,14,14,00,00,00,14,14,10,
00,14,30,00,00,00,31,14,00,
10,00,00,00,30,00,32,04,10,
00,00,00,00,14,00,00,00,00,
10,00,00,00,14,00,00,00,10,
00,04,33,00,31,00,00,00,00,
10,14,04,00,00,00,25,14,10,
00,14,14,00,00,00,14,14,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][18] = {
  width = 9, 
  height = 10,
  turns = 25,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,32,00,00,00,00,00,33,10,
00,31,00,30,31,00,00,30,00,
10,00,00,00,01,04,00,00,10,
00,00,00,00,01,00,00,00,00,
10,04,00,00,01,00,00,04,10,
00,00,00,00,01,00,00,14,00,
10,00,25,31,33,36,00,38,10,
00,31,00,00,00,00,00,35,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][19] = {
  width = 9, 
  height = 10,
  turns = 27,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,04,00,37,00,00,00,38,10,
00,00,14,00,00,00,14,00,00,
10,00,14,32,30,25,14,00,10,
00,00,00,00,14,00,00,00,00,
10,00,00,00,14,00,00,00,10,
00,00,14,31,33,00,14,00,00,
10,00,14,04,00,00,14,00,10,
00,36,00,00,00,00,04,35,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][20] = {
  width = 9, 
  height = 10,
  turns = 12,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,14,14,14,00,14,14,14,10,
00,37,00,00,00,25,00,38,00,
10,00,14,14,00,14,14,00,10,
00,00,14,31,30,04,14,00,00,
10,04,14,04,32,33,14,00,10,
00,00,14,14,00,14,14,00,00,
10,31,00,00,31,00,00,35,10,
00,14,14,14,00,14,14,14,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][21] = {
  width = 9, 
  height = 10,
  turns = 30,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,04,32,00,00,33,00,00,10,
00,00,00,00,30,00,00,33,00,
10,00,00,00,00,00,00,00,10,
00,00,00,00,00,32,00,30,00,
10,00,25,00,00,31,30,00,10,
00,00,30,00,00,00,00,04,00,
10,00,00,00,33,04,30,00,10,
00,00,00,00,00,00,00,00,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][22] = {
  width = 9, 
  height = 10,
  turns = 34,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,30,00,00,00,00,25,32,10,
00,00,00,00,00,00,01,14,00,
10,00,00,04,00,01,01,04,10,
00,31,00,00,32,00,00,31,00,
10,14,04,31,01,00,01,00,10,
00,32,00,00,32,00,01,00,00,
10,00,01,31,00,00,00,32,10,
00,31,00,31,00,00,00,14,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][23] = {
  width = 9, 
  height = 10,
  turns = 32,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,01,14,00,00,00,14,01,10,
00,32,00,00,00,00,00,04,00,
10,00,00,31,30,30,00,33,10,
00,00,00,00,00,00,00,00,00,
10,31,00,00,00,00,00,33,10,
00,31,00,00,00,00,00,04,00,
10,01,14,00,00,00,14,01,10,
00,01,14,04,00,25,14,01,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][24] = {
  width = 9, 
  height = 10,
  turns = 29,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,37,00,00,00,00,00,38,10,
00,00,00,14,00,14,00,00,00,
10,32,00,14,00,14,04,00,10,
00,00,00,00,00,00,00,00,00,
10,00,00,00,00,00,00,00,10,
00,31,00,00,31,00,33,00,00,
10,00,00,14,00,14,00,00,10,
00,04,00,14,00,14,04,25,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][25] = {
  width = 9, 
  height = 10,
  turns = 44,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,32,00,33,00,14,14,14,10,
00,32,00,00,31,00,00,38,00,
10,00,04,30,01,32,25,00,10,
00,00,04,00,33,00,00,00,00,
10,00,04,00,31,00,00,33,10,
00,00,00,30,01,32,00,00,00,
10,36,00,00,33,00,00,00,10,
00,14,14,14,00,00,36,30,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][26] = {
  width = 9, 
  height = 10,
  turns = 57,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,30,04,14,00,25,00,31,10,
00,00,00,00,00,00,00,00,00,
10,00,00,00,00,00,00,00,10,
00,33,00,00,41,00,00,30,00,
10,00,01,01,01,01,01,00,10,
00,00,14,14,14,14,14,00,00,
10,30,00,00,30,00,00,31,10,
00,04,00,00,00,00,00,04,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][27] = {
  width = 9, 
  height = 10,
  turns = 41,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,32,00,00,00,00,00,04,10,
00,00,00,01,00,01,00,14,00,
10,00,00,01,00,01,00,00,10,
00,31,31,00,41,00,30,30,00,
10,00,25,01,04,01,04,00,10,
00,14,14,00,14,00,14,00,00,
10,01,32,00,32,00,00,00,10,
00,01,31,00,00,00,00,32,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][28] = {
  width = 9, 
  height = 10,
  turns = 33,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,04,00,00,00,00,00,04,10,
00,32,00,00,31,00,00,33,00,
10,00,01,01,01,01,01,00,10,
00,31,00,00,40,00,00,33,00,
10,01,01,01,00,01,01,01,10,
00,04,00,31,33,32,00,38,00,
10,37,00,00,00,00,00,31,10,
00,36,00,35,00,36,25,35,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][29] = {
  width = 9, 
  height = 10,
  turns = 32,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,30,04,33,00,37,00,38,10,
00,32,00,00,35,00,01,00,00,
10,00,01,01,01,00,01,00,10,
00,00,00,00,00,00,01,00,00,
10,31,00,00,00,40,01,00,10,
00,25,01,01,01,00,01,00,00,
10,32,04,38,37,35,01,00,10,
00,36,00,00,00,00,04,35,00,
13,00,13,00,99,13,00,13,00 }
}
maps[1][30] = {
  width = 9, 
  height = 10,
  turns = 26,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,04,00,00,00,00,00,04,10,
00,30,00,00,00,00,00,31,00,
10,32,00,00,40,00,00,31,10,
00,00,01,01,00,01,01,00,00,
10,00,01,01,00,01,01,00,10,
00,04,01,01,00,00,01,25,00,
10,31,00,00,30,01,01,00,10,
00,36,00,00,00,00,00,35,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][31] = {
  width = 9, 
  height = 10,
  turns = 28,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,33,00,33,00,32,00,33,10,
00,00,01,00,00,00,01,00,00,
10,00,01,04,36,33,01,00,10,
00,00,01,00,00,00,01,00,00,
10,00,32,41,01,01,32,30,10,
00,00,30,00,32,00,00,25,00,
10,30,00,00,00,00,30,14,10,
00,04,00,14,00,14,04,14,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][32] = {
  width = 9, 
  height = 10,
  turns = 43,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,04,00,01,00,00,00,04,10,
00,32,33,01,31,00,00,33,00,
10,00,00,01,01,01,00,00,10,
00,32,00,00,00,00,32,00,00,
10,00,00,14,14,01,00,00,10,
00,00,00,14,25,01,00,00,00,
10,31,00,00,43,01,00,00,10,
00,00,04,00,00,01,31,30,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][33] = {
  width = 9, 
  height = 10,
  turns = 30,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,32,04,38,00,01,01,01,10,
00,04,01,14,31,00,30,01,00,
10,04,01,14,14,14,00,01,10,
00,42,25,00,33,14,00,01,00,
10,00,01,14,00,14,00,01,10,
00,00,01,14,00,14,00,01,00,
10,31,00,00,30,00,30,01,10,
00,14,01,01,00,01,01,01,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][34] = {
  width = 9, 
  height = 10,
  turns = 12,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,33,00,00,00,00,00,33,10,
00,00,01,01,00,01,01,00,00,
10,31,00,00,41,00,00,00,10,
00,00,01,01,00,01,01,00,00,
10,00,00,31,00,00,00,31,10,
00,04,14,00,14,14,14,04,00,
10,00,25,31,33,00,14,00,10,
00,33,00,04,00,00,00,33,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][35] = {
  width = 9, 
  height = 10,
  turns = 17,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,04,00,00,00,00,00,04,10,
00,32,00,00,31,00,00,33,00,
10,00,00,00,01,00,00,05,10,
00,00,00,00,01,00,00,00,00,
10,00,00,00,01,00,00,30,10,
00,00,00,00,01,00,00,00,00,
10,00,00,00,32,00,00,30,10,
00,04,00,00,00,00,00,00,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][36] = {
  width = 9, 
  height = 10,
  turns = 24,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,01,01,01,00,01,01,01,10,
00,04,32,00,33,05,00,33,00,
10,00,00,01,00,01,01,00,10,
00,32,31,00,30,00,00,33,00,
10,00,01,00,01,01,01,00,10,
00,00,00,01,04,00,00,33,00,
10,31,00,00,38,01,01,00,10,
00,14,04,00,00,05,00,33,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][37] = {
  width = 9, 
  height = 10,
  turns = 40,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
            10,37,00,00,00,00,05,38,10,
            00,00,37,00,32,00,00,35,00,
            10,04,00,00,00,37,00,04,10,
            00,36,36,00,00,00,00,38,00,
            10,37,30,00,38,00,37,35,10,
            00,36,00,00,00,00,30,38,00,
            10,37,00,00,35,00,04,00,10,
            00,36,00,00,38,36,00,35,00,
            13,00,13,00,98,13,00,13,00 }
}


maps[1][38] = {
  width = 9, 
  height = 10,
  turns = 38,
  stars = { 0,201,301 },
  cells = { 
            10,01,01,01,20,01,01,01,10,
            00,30,00,00,00,00,00,04,00,
            10,00,38,00,36,00,00,31,10,
            00,00,31,00,32,00,00,00,00,
            10,33,00,00,00,00,00,33,10,
            00,00,00,00,04,00,00,00,00,
            10,00,00,00,00,00,00,00,10,
            00,33,00,00,40,00,00,05,00,
            10,00,00,00,00,00,00,04,10,
            00,01,01,01,98,01,01,01,00 }
}
maps[1][39] = {
  width = 9, 
  height = 10,
  turns = 29,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,37,00,00,00,00,00,33,10,
00,05,14,14,00,00,00,00,00,
10,00,01,14,31,00,00,33,10,
00,00,01,14,14,00,00,00,00,
10,00,01,04,04,00,00,30,10,
00,00,01,01,01,01,00,00,00,
10,31,00,00,38,01,00,05,10,
00,01,01,01,00,01,01,04,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][40] = {
  width = 9, 
  height = 10,
  turns = 42,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,37,00,00,00,05,00,38,10,
00,32,00,00,30,00,04,00,00,
10,00,01,01,01,01,01,00,10,
00,32,04,14,37,00,00,32,00,
10,33,00,00,35,01,25,31,10,
00,00,01,01,01,01,01,00,00,
10,36,32,00,31,00,32,35,10,
00,04,31,00,00,00,33,05,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][41] = {
  width = 9, 
  height = 10,
  turns = 62,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,00,33,00,00,04,00,33,10,
00,00,00,00,00,00,00,00,00,
10,32,00,00,40,00,00,33,10,
00,00,00,01,14,01,00,00,00,
10,00,00,01,14,01,00,00,10,
00,31,00,00,42,00,00,30,00,
10,00,04,00,00,00,00,25,10,
00,33,00,00,00,00,04,00,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][42] = {
  width = 9, 
  height = 10,
  turns = 35,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,30,41,14,00,14,40,30,10,
00,00,00,00,00,04,00,00,00,
10,00,25,00,00,00,00,00,10,
00,30,00,00,00,00,00,30,00,
10,00,30,00,00,33,00,00,10,
00,30,00,00,30,00,00,30,00,
10,00,00,30,37,00,30,00,10,
00,04,14,01,00,01,01,04,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][43] = {
  width = 9, 
  height = 10,
  turns = 39,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,33,00,00,00,00,00,04,10,
00,36,00,00,41,00,30,04,00,
10,04,00,00,00,00,00,14,10,
00,05,00,00,00,00,00,14,00,
10,00,14,01,14,01,00,14,10,
00,32,38,00,40,38,00,14,00,
10,00,32,00,00,35,00,14,10,
00,33,00,00,00,00,32,14,00,
13,00,13,00,98,13,00,13,00, }
}
maps[1][44] = {
  width = 9, 
  height = 10,
  turns = 66,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,32,00,00,00,00,04,33,10,
00,00,00,00,00,00,01,01,00,
10,32,00,00,32,00,01,04,10,
00,00,00,00,41,00,00,33,00,
10,14,04,33,01,00,01,00,10,
00,31,00,00,43,00,01,00,00,
10,00,01,33,00,00,00,33,10,
00,31,00,30,00,00,00,05,00,
13,00,13,00,98,13,00,13,00 }
}
maps[1][45] = {
  width = 9, 
  height = 10,
  turns = 30,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,32,04,00,00,00,33,01,10,
00,00,41,00,30,00,40,04,00,
10,31,00,00,00,00,00,25,10,
00,04,32,00,00,00,00,38,00,
10,00,01,01,01,01,01,00,10,
00,30,00,00,40,00,00,00,00,
10,00,00,00,00,00,00,00,10,
00,33,00,00,00,00,00,32,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][46] = {
  width = 9, 
  height = 10,
  turns = 58,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,04,33,00,00,00,04,33,10,
00,00,41,00,31,00,00,40,00,
10,01,00,01,01,01,01,01,10,
00,00,30,00,00,32,33,25,00,
10,01,00,01,01,31,30,01,10,
00,32,00,00,01,01,01,01,00,
10,31,31,00,32,37,00,38,10,
00,41,00,00,00,04,00,30,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][47] = {
  width = 9, 
  height = 10,
  turns = 29,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,37,04,30,00,00,00,32,10,
00,00,01,00,00,00,01,25,00,
10,36,04,35,00,00,00,00,10,
00,00,01,00,00,00,01,00,00,
10,32,00,00,41,00,00,30,10,
00,00,01,00,00,00,01,00,37,
10,36,04,00,00,00,00,35,10,
00,00,01,00,00,00,01,00,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][48] = {
  width = 9, 
  height = 10,
  turns = 25,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,32,00,00,00,00,32,25,10,
00,00,37,00,31,00,00,32,00,
10,00,00,00,10,13,00,00,10,
00,41,00,00,33,00,00,00,00,
10,00,04,13,00,13,00,00,10,
00,00,04,00,00,00,00,00,00,
10,00,04,13,00,13,00,00,10,
00,31,33,00,00,00,41,31,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][49] = {
  width = 9, 
  height = 10,
  turns = 30,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,32,00,00,00,04,00,32,10,
00,31,00,00,40,00,00,35,00,
10,00,01,01,01,01,01,00,10,
00,31,00,30,01,32,04,00,00,
10,32,00,33,01,33,00,32,10,
00,00,01,01,01,01,01,25,00,
10,00,00,00,42,00,30,30,10,
00,31,00,00,00,00,30,04,00,
13,00,13,00,99,13,00,13,00, }
}
maps[1][50] = {
  width = 9, 
  height = 10,
  turns = 27,
  stars = { 0,201,301 },
  cells = { 13,00,13,00,20,13,00,13,00,
10,00,40,00,00,00,00,41,10,
00,37,00,00,31,00,43,00,00,
10,36,00,00,38,00,00,00,10,
00,04,00,00,04,38,00,00,00,
10,37,00,00,35,04,00,00,10,
00,00,40,00,00,00,43,00,00,
10,00,00,00,43,00,00,41,10,
00,36,00,00,00,35,00,00,00,
13,00,13,00,98,13,00,13,00, }
}

-- maps[1][50] = {
--   width = 9, 
--   height = 10,
--   turns = 27,
--   stars = { 0,201,301 },
--   cells = { 13,00,13,00,20,13,00,13,00,
-- 10,00,40,00,00,00,00,41,10,
-- 00,37,00,00,00,00,43,00,00,
-- 10,36,00,00,00,00,00,00,10,
-- 00,04,00,00,00,38,00,00,00,
-- 10,37,00,00,00,04,00,00,10,
-- 00,00,40,00,00,00,43,00,00,
-- 10,00,00,00,00,00,00,41,10,
-- 00,36,00,00,00,35,00,00,00,
-- 13,00,13,00,98,13,00,13,00, }
-- }

-- ################## levels wold 2 ##########
maps[2][1] = {
  width = 9, 
  height = 10,
  turns = 23,
  stars = { 0,201,301 },
  cells = { 10,13,00,13,00,13,00,13,00,10,
            00,01,04,36,00,37,00,00,38,00,
            10,00,00,00,00,30,00,00,33,10,
            00,01,00,14,00,00,01,00,01,00,
            20,00,00,00,00,00,00,00,00,98,
            10,00,00,00,00,00,00,00,00,10,
            00,01,32,00,00,32,00,00,00,00,
            10,01,00,00,00,00,30,38,04,10,
            00,13,00,13,00,13,00,13,00,00, }
}

maps[2][2] = {
  width = 9, 
  height = 10,
  turns = 23,
  stars = { 0,201,301 },
  cells = { 10,13,00,13,00,13,00,13,00,10,
            00,01,04,36,00,37,00,00,38,00,
            10,00,00,00,00,30,00,00,33,10,
            00,01,00,14,00,00,01,00,01,00,
            20,00,00,00,00,00,00,00,00,98,
            10,00,00,00,00,00,00,00,00,10,
            00,01,32,00,00,32,00,00,00,00,
            10,01,00,00,00,00,30,38,04,10,
            00,13,00,13,00,13,00,13,00,00, }
}

maps[2][3] = {
  width = 9, 
  height = 10,
  turns = 23,
  stars = { 0,201,301 },
  cells = { 10,13,00,13,00,13,00,13,00,10,
            00,01,04,36,00,37,00,00,38,00,
            10,00,00,00,00,30,00,00,33,10,
            00,01,00,14,00,00,01,00,01,00,
            20,00,00,00,00,00,00,00,00,98,
            10,00,00,00,00,00,00,00,00,10,
            00,01,32,00,00,32,00,00,00,00,
            10,01,00,00,00,00,30,38,04,10,
            00,13,00,13,00,13,00,13,00,00, }
}




-- ################## funkcje ##########
local M = {}

M.loadMap = function(world,level)
    return maps[world][level]
end

M.loadLevels = function(world)
    return maps[world]
end


return M
