[{"id":1,"text":"   Prepare delicious meals in a simple and interesting game. Discover new dishes, replenishing their stocks in the refrigerator. Restore the old family restaurant and bring your business to thrive. ","answers":[{"id":2,"text":"Begin","var_set":["global fullscreen",1]}]},{"id":2,"text":"   Playthrough ","answers":[{"id":2,"text":"<s>n<s>n<s>n<s>n<s>n<s>n<s>n<s>n<s>n<s>n<s>n<s>n","comment":true},{"lua_do":"function lua_do()<s>nbonus_shadow = nil<s>nbonus_fingerprint = nil<s>nmoney = money or 0<s>nend","super_calculate":false,"id":2,"text":"  ","calculate":true,"var_set":["global fullscreen",1]},{"id":60,"text":"     catalog","run":[60]},{"var_set":["global fullscreen",1],"middle_answer":true,"bgAnswerImage":["http://188.120.236.127/memories/restoran/button1.jpg"],"text":"Cafe","id":2,"instant":false,"lua_do":"function lua_do()<s>n   cafeWasOpenned = cafeWasOpenned or 1<s>n   if cafeWasOpenned == 1 then <s>n     showPage {id = 11} <s>n   elseif cafeWasOpenned == 2 then<s>n      showPage {id = 34} <s>n<s>n<s>n   end<s>nend","no_transition":true},{"lua_text":"function lua_text()<s>nlvl = lvl or 1<s>nreturn <s>"Start level <s>".. lvl<s>nend","bgAnswerImage":["http://188.120.236.127/memories/restoran/button1.jpg"],"id":17,"text":"Level... ","lua_do":"function lua_do()<s>n   chainTab = chainTab or {{}} <s>n   cardTo = {} <s>n   hard = hard or 0<s>n   hard = hard <plus> 0.04<s>n   if hard > 1 then hard = 1 end<s>n   max_moves = max_moves or 20<s>n   moves = max_moves<s>n   stepLevel = 1<s>n   <s>n   chains = {} <s>n   if lvl == 1 then chains = { } <s>n   elseif lvl == 2 then chains = {1}<s>n   else<s>n      if pick1 > 0 then<s>n         chains = chainTab[pick1]<s>n      end<s>n   end<s>nend","middle_answer":true},{"id":2,"text":"fullscreen stretch","url":"http://188.120.236.127/memories/restoran/fullscreen.jpg"},{"id":10,"text":"get money from winning ","need":[99999],"var_equal":["global isAuthor",1]},{"id":11,"text":"Cafe1","need":[999]},{"id":34,"text":"Cafe2","need":[999]}]},{"id":3,"text":"level page. This text is not displayed. To copy this entire page with the command <s>"copy all<s>", to create a new level.","answers":[{"lua_do":"function lua_do()<s>nmoves = moves <plus> 2<s>nlocal gr = canvas.parent<s>n<s>n<s>nif not bonus_shadow then<s>nbonus_shadow = true<s>ngr[gr.numChildren].text = <s>"  Get more 2 move and the ability <s><s><s>"Heat signature<s><s><s>"<s>"<s>nelseif not bonus_fingerprint then<s>nbonus_fingerprint = true<s>ngr[gr.numChildren].text = <s>"  Get more 3 turn<s>"<s>nelse<s>nmoves = moves <plus> 1<s>nend<s>n<s>nif update_moves_img then update_moves_img() <s>nend<s>nend","bg_color":[0.97,0.79,0.78],"paid_answer":["Bonus",5],"super_calculate":false,"id":3,"text":"Add 2 turn and the ability to activate <s>"Presentiment<s>"","calculate":false,"no_transition":true},{"id":4,"text":"Go to the page with the engine wound (only for programmers or when updating the engine according to instructions)","need":[9999]},{"super_calculate":false,"id":8,"text":"Point the following answers to the pages of defeat and victory. Do not change their text! Do not remove the impossible condition!","need":[9999],"calculate":true},{"super_calculate":false,"id":2,"calculate":false,"need":[9999],"text":"Victory_page"},{"super_calculate":false,"id":2,"calculate":false,"need":[9999],"text":"Lose_page"},{"super_calculate":false,"id":8,"text":"Change the links to the pictures for the following responses to customize the appearance level. Do not change the text of the responses!","need":[9999],"calculate":true},{"id":3,"text":"bg stretch","url":"http://188.120.236.127/memories/restoran/001-bg.jpg"},{"id":3,"text":"table","url":"http://188.120.236.127/memories/restoran/001-table.png"},{"id":3,"text":"fingerprint","url":"http://188.120.236.127/memories/veterinar/fingerprint2.png"},{"super_calculate":true,"id":4,"calculate":false,"run":[4],"text":"Run with the engine"}]},{"id":4,"text":"To update the engine (only in coordination with the programmers), you have to press <s>"edit<s>" on the back, and then left unchanged.","answers":[{"module":true,"super_calculate":true,"lua_do":"function lua_do()<s>n<s>r<s>nlocal cards = {}<s>r<s>nlocal map = {}<s>r<s>nlocal cardSize = display.contentWidth/4<s>r<s>nlocal selected_card_1<s>r<s>nlocal selected_card_2<s>r<s>nlocal cards_number = 0<s>r<s>nlocal moves_row = {}<s>r<s>n--update_moves_img<s>r<s>nlocal hard_cheat<s>r<s>nlocal switch_cards_secretly<s>r<s>nlocal is_chains_contain<s>r<s>nlocal break_one_chain<s>r<s>nlocal shadow_deadly_variant<s>r<s>nlocal ushadow_deadly_variants<s>r<s>nlocal fingerprint_url<s>r<s>nlocal rubashka_url<s>r<s>nlocal card_inside_url<s>r<s>nlocal fade_fingerprints<s>r<s>nlocal check_chains_block_game<s>r<s>n<s>r<s>nif not max_moves then<s>r<s>n<s>tmax_moves = moves<s>r<s>nend<s>r<s>n<s>r<s>nchainTab = {{1,3,7,9}, {2,4,6,8}, {1,2,3}, {1,4,7}, {2,5,8}, {1,5,7}, {1,3,5}, {1,2,4}, {2,3,6}, {1,5,9}, {3,5,7}, {4,5,6}, {4,7,8}, {6,8,9}, {1,2,8,9}, {2,3,7,8}}<s>r<s>ncardTab = cardTab or { 1, 2, 3, 4, 5, 6, 7 }<s>r<s>n<s>r<s>nfor i=1,4 do<s>r<s>n<s>tlocal card = display.newImage(imageTab[cardTab[i <plus> stepLevel - 1]])<s>n  card.xScale = (cardSize) / math.max(card.height, card.width) * 0.95<s>r<s>n<s>tcard.yScale = card.xScale<s>r<s>n<s>tcard.alpha = 1<s>r<s>n<s>tcard.id = i<s>r<s>n<s>tcard.place = #map<plus>1<s>r<s>n<s>tcard.uid = math.random(1000000)<s>r<s>n<s>ttable.insert(map,card)<s>t<s>r<s>n<s>tcards[i*2-1] = card<s>r<s>n<s>tcards_number = cards_number <plus> 1<s>r<s>n<s>t<s>r<s>n<s>tlocal card2 = display.newImage(imageTab[cardTab[i <plus> stepLevel - 1]])<s>r<s>n<s>tcard2.xScale = card.xScale<s>r<s>n<s>tcard2.yScale = card.yScale<s>r<s>n<s>tcard2.place = #map<plus>1<s>r<s>n<s>tcard2.id = i<s>r<s>n<s>tcard2.uid = math.random(1000000)<s>r<s>n<s>tcards[i*2] = card2<s>r<s>n<s>ttable.insert(map,card2)<s>r<s>n<s>tcards_number = cards_number <plus> 1<s>r<s>nend<s>r<s>r<s>n<s>r<s>nlocal winCard = display.newImage(imageTab[cardTab[5 <plus> stepLevel - 1]])<s>nwinCard.xScale = (cardSize) / math.max(winCard.height, winCard.width) * 0.95<s>r<s>nwinCard.yScale = winCard.xScale<s>r<s>nwinCard.place = #map<plus>1<s>r<s>nwinCard.uid = math.random(1000000)<s>r<s>nwinCard.id = 0<s>r<s>ncards[9] = winCard<s>r<s>ntable.insert(map,winCard)<s>r<s>ncards_number = cards_number <plus> 1<s>n<s>r<s>n<s>t<s>r<s>nif images.fingerprint then<s>r<s>n<s>tfingerprint_url = images.fingerprint.url<s>r<s>n<s>timages.fingerprint:removeSelf()<s>r<s>nend<s>r<s>n<s>r<s>nfade_fingerprints = function()<s>r<s>n<s>tif bonus_fingerprint then<s>r<s>n<s>t<s>tfor i=1,9 do<s>r<s>n<s>t<s>t<s>tif map[i] then<s>r<s>n<s>t<s>t<s>t<s>tif map[i].rubashka.fingerprint.alpha>0 then<s>r<s>n<s>t<s>t<s>t<s>t<s>ttransition.to(map[i].rubashka.fingerprint,{<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>talpha = map[i].rubashka.fingerprint.alpha-0.2, -- print disappearance<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>ttime = 300,<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t--delay = 200,<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>ttransition = easing.inOutQuad<s>r<s>n<s>t<s>t<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>tend<s>r<s>n<s>t<s>tend<s>r<s>n<s>tend<s>r<s>n<s>r<s>nend<s>r<s>n<s>r<s>nshadow_deadly_variant = function(card)<s>r<s>n<s>tlocal random_array = {2,6,4,9,8,1,3,7,5,2,6,4,9,8,1,3,7,5}<s>r<s>n<s>tlocal plus = math.random(8)<s>r<s>n<s>tfor ii = 1,2 do<s>r<s>n<s>t<s>tlocal ever_opened_variant<s>r<s>n<s>t<s>tlocal never_opened_variant<s>r<s>n<s>t<s>tfor i=1,9 do<s>r<s>n<s>t<s>t<s>tlocal i = random_array[i<plus>plus]<s>r<s>n<s>t<s>t<s>tif <s>r<s>n<s>t<s>t<s>t<s>tmap[i]<s>r<s>n<s>t<s>t<s>tand<s>r<s>n<s>t<s>t<s>t<s>tmap[i].id ~= card.id <s>r<s>n<s>t<s>t<s>tand<s>r<s>n<s>t<s>t<s>t<s>t(not map[i].rubashka.chain)<s>r<s>n<s>t<s>t<s>tand <s>r<s>n<s>t<s>t<s>t<s>t(not map[i].shadowed_deadly_variant)<s>r<s>n<s>t<s>t<s>tthen<s>r<s>n<s>t<s>t<s>t<s>tif map[i].ever_opened then<s>r<s>n<s>t<s>t<s>t<s>t<s>tever_opened_variant = map[i]<s>r<s>n<s>t<s>t<s>t<s>telse<s>r<s>n<s>t<s>t<s>t<s>t<s>tnever_opened_variant = map[i]<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>tend<s>r<s>n<s>t<s>tend<s>r<s>n<s>t<s>tlocal card2 = never_opened_variant or ever_opened_variant<s>r<s>n<s>t<s>tif card2 then<s>r<s>n<s>t<s>t<s>tcard2.shadowed_deadly_variant = true<s>r<s>n<s>t<s>t<s>tcard2.ever_opened = true<s>r<s>n<s>t<s>t<s>ttimer.performWithDelay(15,function(event)<s>r<s>n<s>t<s>t<s>t<s>tif card2 then<s>r<s>n<s>t<s>t<s>t<s>t<s>tcard2.rubashka.base_img:setFillColor((255-event.count*3)/255,(255-event.count*3)/255,(255-event.count*3)/255)<s>r<s>n<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>tend,30)<s>r<s>n<s>t<s>t<s>t<s>r<s>n<s>t<s>tend<s>r<s>n<s>tend<s>r<s>nend<s>r<s>n<s>r<s>nunshadow_deadly_variants = function()<s>r<s>n<s>tfor i=1,9 do<s>r<s>n<s>t<s>tif map[i] and map[i].shadowed_deadly_variant then<s>r<s>n<s>t<s>t<s>ttimer.performWithDelay(15,function(event)<s>r<s>n<s>t<s>t<s>t<s>tif map[i] then<s>r<s>n<s>t<s>t<s>t<s>t<s>tmap[i].rubashka.base_img:setFillColor((255-60<plus>event.count*3)/255,(255-60<plus>event.count*3)/255,(255-60<plus>event.count*3)/255)<s>r<s>n<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t<s>tmap[i].shadowed_deadly_variant = false<s>r<s>n<s>t<s>t<s>tend,30)<s>r<s>n<s>t<s>tend<s>r<s>n<s>tend<s>r<s>nend<s>r<s>n<s>r<s>nis_chains_contain = function(i)<s>r<s>n<s>tfor k,v in pairs(chains) do<s>r<s>n<s>t<s>tif v == i then<s>r<s>n<s>t<s>t<s>treturn true<s>r<s>n<s>t<s>tend<s>r<s>n<s>tend<s>r<s>nend<s>r<s>n<s>r<s>nbreak_one_chain = function()<s>r<s>n<s>tif chains then<s>r<s>n<s>t<s>tif #chains > 0 then<s>r<s>n<s>t<s>t<s>tlocal chain_place = chains[1]<s>r<s>n<s>t<s>t<s>tlocal card = map[chain_place]<s>r<s>n<s>t<s>t<s>ttimer.performWithDelay(1000,function()<s>r<s>n<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>tfor k,v in pairs({card.rubashka.chain,card.rubashka,card.card_inside,card}) do<s>r<s>n<s>t<s>t<s>t<s>t<s>tif v then<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>tlocal x = v.x<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>ttransition.to(v,{x = x <plus> cardSize*0.08,time = 100,delay=0,rotation=-3})<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>ttransition.to(v,{x = x - cardSize*0.05,time = 100,delay=100,rotation=4, xScale = v.xScale*0.75, yScale = v.yScale*0.75*1.25})<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>ttransition.to(v,{x = x <plus> cardSize*0.03,time = 100,delay=200,rotation=-5, xScale = v.xScale*0.6*1.25, yScale = v.yScale*0.6})<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>ttransition.to(v,{x = x - cardSize*0.01,time = 100,delay=300,rotation=10, xScale = v.xScale*0.5, yScale = v.yScale*0.5*1.25, onComplete = function() <s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>tif card.rubashka.chain then<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t  card.rubashka.chain.alpha = 0 <s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>tend <s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>tend})<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>ttransition.to(v,{x = x <plus> cardSize*0.03,time = 100,delay=400,rotation=-5, xScale = v.xScale*1.25*1.25, yScale = v.yScale*1.25})<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>ttransition.to(v,{x = x<s>t<s>t<s>t<s>t,time = 100,delay=500,rotation=0, xScale = v.xScale*1.0, yScale = v.yScale*1.0,<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>tonComplete = function()<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>tif v.uid == card.uid then<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>t<s>tif card.rubashka.chain then<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>t<s>tcard.rubashka.chain.imshaking = false <s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>t<s>tcard.rubashka.chain:removeSelf()<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>t<s>tcard.rubashka.chain = nil<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>t<s>ttable.remove(chains,1)<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>tend})<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>tend)<s>n<s>r<s>n<s>t<s>telse<s>n<s>t<s>t<s>tfor i = 1,9 do<s>n<s>t<s>t<s>t<s>tif map[i] then<s>r<s>n<s>t<s>t<s>t<s>t<s>tif map[i].rubashka.chain and map[i].rubashka.chain.removeSelf then<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>tmap[i].rubashka.chain:removeSelf()<s>r<s>n<s>t<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>tend<s>r<s>n<s>t<s>tend<s>r<s>n<s>tend<s>r<s>nend<s>r<s>n<s>r<s>n  -- setting the general background images kard_insayd<s>r<s>n<s>tfor i=1,9 do<s>r<s>n<s>t<s>tlocal card_inside = display.newImage(sysImage[1])<s>r<s>n<s>t<s>tcards[i]:toFront()<s>r<s>n<s>t<s>tcards[i].card_inside = card_inside<s>r<s>n<s>t<s>tcards[i].card_inside.card = cards[i]<s>r<s>n<s>t<s>t<s>r<s>n<s>t<s>tcard_inside.xScale =  (cardSize) / card_inside.width<s>r<s>n<s>t<s>tcard_inside.yScale =  card_inside.xScale<s>r<s>n<s>t<s>t<s>r<s>n<s>t<s>tcard_inside.alpha = 1<s>r<s>n<s>t<s>tcard_inside.id = i<s>t<s>r<s>n<s>t<s>t-- card_inside.x = images.table.x<s>r<s>n<s>t<s>t-- card_inside.y = images.table.x<s>r<s>r<s>n  end<s>n<s>n<s>r<s>n<s>tfor i=1,9 do<s>t<s>t<s>r<s>n<s>t<s>tlocal rubashka = display.newGroup()<s>r<s>n<s>t<s>tcards[i].rubashka = rubashka<s>r<s>n<s>t<s>trubashka.base_img = display.newImage(sysImage[4])<s>r<s>n<s>t<s>trubashka:insert(rubashka.base_img)<s>t<s>t<s>r<s>n<s>t<s>t<s>r<s>n<s>t<s>trubashka:toFront()<s>r<s>n<s>t<s>trubashka.card = cards[i]<s>r<s>n<s>t<s>t-- rubashka.x = images.table.x<s>r<s>n<s>t<s>t-- rubashka.y = images.table.x<s>r<s>n<s>t<s>trubashka.xScale =  (cardSize) / rubashka.width<s>r<s>n<s>t<s>trubashka.yScale =  rubashka.xScale<s>r<s>n<s>t<s>trubashka.alpha = 1<s>r<s>n<s>t<s>trubashka.id = i<s>t<s>r<s>n<s>t<s>trubashka.ever_opened = false<s>r<s>n<s>t<s>t<s>t<s>r<s>n<s>t<s>tif fingerprint_url then<s>r<s>n<s>t<s>t<s>trubashka.fingerprint = display.newImage(fingerprint_url)<s>r<s>n<s>t<s>t<s>trubashka:insert(rubashka.fingerprint)<s>t<s>r<s>n<s>t<s>t<s>trubashka.fingerprint.alpha = 0<s>r<s>n<s>t<s>tend<s>r<s>n<s>tend<s>r<s>n<s>r<s>n<s>r<s>nif images and images[<s>"table<s>"] then<s>r<s>n<s>t-- images[<s>"table<s>"].alpha = 0<s>r<s>n<s>t-- transition.to(images[<s>"table<s>"],{<s>r<s>n<s>t<s>t-- alpha = 1,<s>r<s>n<s>t<s>t-- time = 300,<s>r<s>n<s>t<s>t-- delay = 0<plus>1000,<s>r<s>n<s>t<s>t-- xScale = images[<s>"table<s>"].xScale*0.9,<s>r<s>n<s>t<s>t-- yScale = images[<s>"table<s>"].yScale*0.9<s>r<s>n<s>t-- })<s>r<s>n<s>timages.table.xScale = images[<s>"table<s>"].xScale*0.9<s>r<s>n<s>timages.table.yScale = images[<s>"table<s>"].yScale*0.9<s>r<s>nend<s>r<s>n--Sort by * (shaffling)<s>r<s>ntable.sort(map,function(a,b) <s>r<s>nreturn a.uid > b.uid<s>r<s>nend)<s>r<s>n<s>r<s>nfor i=1,9 do<s>r<s>nmap[i].place = i<s>r<s>nend<s>r<s>n<s>r<s>n-- card placement<s>r<s>nfor i,card in pairs(map) do<s>r<s>n<s>tlocal i = i-1<s>n  local pick = math.max(card.height, card.width)<s>r<s>n<s>tlocal x = images.table.x  <plus> pick * card.xScale * (i%3 - 1) * 1.1<s>r<s>n<s>tlocal y = images.table.y  <plus> pick * card.xScale * (math.floor(i/3) - 1) * 1.1<s>r<s>n<s>r<s>n<s>tcard.x = x<s>r<s>n<s>tcard.y = y<s>r<s>n<s>tif card.card_inside then<s>r<s>n<s>t<s>tcard.card_inside.x = x<s>r<s>n<s>t<s>tcard.card_inside.y = y<s>r<s>n<s>t<s>tcard.card_inside:toFront()<s>r<s>n<s>t<s>tcard:toFront()<s>r<s>n<s>tend<s>r<s>n<s>tif card.rubashka then<s>r<s>n<s>t<s>tcard.rubashka.x = x<s>r<s>n<s>t<s>tcard.rubashka.y = y<s>r<s>n<s>t<s>tcard.rubashka:toFront()<s>r<s>n<s>tend<s>r<s>n<s>r<s>nend<s>r<s>n<s>r<s>n   -- production chains<s>r<s>n<s>tfor i=1,9 do<s>r<s>n<s>t<s>tlocal card = map[i]<s>r<s>n<s>t<s>tif chains and is_chains_contain(i) then<s>r<s>n<s>t<s>t<s>tcard.rubashka.chain = display.newImage(randomChainTab[chainLvl])<s>r<s>n<s>t<s>t<s>tcard.rubashka.chain.x = card.rubashka.x<s>r<s>n<s>t<s>t<s>tcard.rubashka.chain.y = card.rubashka.y<s>r<s>n<s>t<s>t<s>tcard.rubashka.chain.xScale = card.rubashka.width*card.rubashka.xScale / card.rubashka.chain.width<s>r<s>n<s>t<s>t<s>tcard.rubashka.chain.yScale = card.rubashka.chain.xScale<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>tcard.rubashka.chain:addEventListener(<s>"tap<s>", function() <s>r<s>n<s>t<s>t<s>t<s>tif not card.rubashka.chain.imshaking then<s>r<s>n<s>t<s>t<s>t<s>t<s>tcard.rubashka.chain.imshaking = true<s>r<s>n<s>t<s>t<s>t<s>t<s>tfor k,v in pairs({card.rubashka.chain,card.rubashka,card.card_inside,card}) do<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>tif v then<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>tlocal x = v.x<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>ttransition.to(v,{x = x <plus> cardSize*0.05,time = 100,delay=0})<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>ttransition.to(v,{x = x - cardSize*0.07,time = 100,delay=100})<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>ttransition.to(v,{x = x <plus> cardSize*0.05,time = 100,delay=200})<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>ttransition.to(v,{x = x - cardSize*0.03,time = 100,delay=300})<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>ttransition.to(v,{x = x <plus> cardSize*0.01,time = 100,delay=400})<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>ttransition.to(v,{x = x<s>t<s>t<s>t<s>t,time = 100,delay=500,onComplete = function() if card and card.rubashka and card.rubashka.chain then card.rubashka.chain.imshaking = false end end})<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t<s>treturn true <s>t<s>t<s>r<s>n<s>t<s>t<s>tend)<s>r<s>n<s>t<s>tend<s>r<s>n<s>tend<s>r<s>n<s>r<s>n<s>r<s>n<s>r<s>nfunction open_card(card)<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>tcard.xScale = 0.01<s>r<s>n<s>t<s>t<s>tcard.rotation = -10<s>r<s>n<s>t<s>t<s>ttransition.to(card.rubashka,{<s>r<s>n<s>t<s>t<s>t<s>txScale = 0.01, -- folding shirts<s>r<s>n<s>t<s>t<s>t<s>ttime = 200,<s>t<s>r<s>n<s>t<s>t<s>t<s>trotation = -10,<s>r<s>n<s>t<s>t<s>t<s>ttransition = easing.inOutQuad,<s>r<s>n<s>t<s>t<s>t<s>tonComplete = function()<s>r<s>n<s>t<s>t<s>t<s>t<s>tcard.rubashka.alpha = 0<s>r<s>n<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>tif card.card_inside then<s>r<s>n<s>t<s>t<s>t<s>tprint(123)<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>tcard.card_inside.xScale = 0.01<s>r<s>n<s>t<s>t<s>t<s>tcard.card_inside.rotation = -10<s>r<s>n<s>t<s>t<s>t<s>ttransition.to(card.card_inside,{ -- the front of the card deployment shirt<s>r<s>n<s>t<s>t<s>t<s>t<s>txScale = cardSize / card.card_inside.width,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttime = 200,<s>r<s>n<s>t<s>t<s>t<s>t<s>tdelay = 200,<s>r<s>n<s>t<s>t<s>t<s>t<s>trotation = 0,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttransition = easing.inOutQuad,<s>r<s>n<s>t<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>t<s>tcard.yScale = cardSize / math.max(card.height, card.width) * 0.75<s>r<s>n<s>t<s>t<s>t<s>ttransition.to(card,{ -- the front of the card object deployment<s>r<s>n<s>t<s>t<s>t<s>t<s>txScale = cardSize / math.max(card.height, card.width) * 0.8,<s>r<s>n<s>t<s>t<s>t<s>t<s>tyScale = cardSize / math.max(card.height, card.width) * 0.8,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttime = 200,<s>r<s>n<s>t<s>t<s>t<s>t<s>tdelay = 250,<s>r<s>n<s>t<s>t<s>t<s>t<s>trotation = 0,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttransition = easing.inOutQuad,<s>r<s>n<s>t<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>telse<s>r<s>n<s>t<s>t<s>t<s>ttransition.to(card,{ -- the front side of the card deployment sewed background<s>r<s>n<s>t<s>t<s>t<s>t<s>txScale = cardSize / math.max(card.height, card.width),<s>r<s>n<s>t<s>t<s>t<s>t<s>ttime = 200,<s>r<s>n<s>t<s>t<s>t<s>t<s>tdelay = 200,<s>r<s>n<s>t<s>t<s>t<s>t<s>trotation = 0,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttransition = easing.inOutQuad,<s>r<s>n<s>t<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>tif bonus_fingerprint then<s>r<s>n<s>t<s>t<s>t<s>ttransition.to(card.rubashka.fingerprint,{<s>r<s>n<s>t<s>t<s>t<s>t<s>talpha = 1, -- print appearance<s>r<s>n<s>t<s>t<s>t<s>t<s>ttime = 200,<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>tdelay = 200,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttransition = easing.inOutQuad<s>r<s>n<s>t<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>tend<s>r<s>nend<s>r<s>n<s>r<s>ncheck_duplicates = function()<s>r<s>n<s>ttimer.performWithDelay(1000,function()<s>r<s>n<s>t<s>tif not (selected_card_1 and selected_card_1.removeSelf) then<s>r<s>n<s>t<s>t<s>treturn<s>r<s>n<s>t<s>tend<s>r<s>n<s>t<s>tif selected_card_1.id == selected_card_2.id then<s>r<s>n<s>t<s>t<s>tlocal card1_is_on_left = selected_card_1.x < selected_card_2.x<s>r<s>n<s>t<s>t<s>tselected_card_1:toFront()<s>r<s>n<s>t<s>t<s>tselected_card_2:toFront()<s>r<s>n<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>ttransition.to(selected_card_1,{ -- reaching is the card in ssoronu<s>r<s>n<s>t<s>t<s>t<s>tx = selected_card_1.x <plus> cardSize*(card1_is_on_left and -1 or 1)*2,<s>r<s>n<s>t<s>t<s>t<s>ttime = 500,<s>r<s>n<s>t<s>t<s>t<s>trotation = 50,<s>r<s>n<s>t<s>t<s>t<s>t--transition = easing.outExpo,<s>r<s>n<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>ttransition.to(selected_card_2,{ -- reaching is up cards<s>r<s>n<s>t<s>t<s>t<s>tx = selected_card_2.x <plus> cardSize*(card1_is_on_left and 1 or -1)*2,<s>r<s>n<s>t<s>t<s>t<s>ttime = 500,<s>r<s>n<s>t<s>t<s>t<s>trotation = 50,<s>r<s>n<s>t<s>t<s>t<s>t--transition = easing.outExpo,<s>r<s>n<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>ttransition.to(selected_card_1,{ -- reaching is up cards<s>r<s>n<s>t<s>t<s>t<s>ty = selected_card_1.y - cardSize,<s>r<s>n<s>t<s>t<s>t<s>ttime = 200,<s>r<s>n<s>t<s>t<s>t<s>ttransition = easing.outQuad,<s>r<s>n<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>ttransition.to(selected_card_2,{ -- reaching is up cards<s>r<s>n<s>t<s>t<s>t<s>ty = selected_card_2.y - cardSize,<s>r<s>n<s>t<s>t<s>t<s>ttime = 200,<s>r<s>n<s>t<s>t<s>t<s>ttransition = easing.outQuad,<s>r<s>n<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>ttransition.to(selected_card_1,{ -- cards fall<s>r<s>n<s>t<s>t<s>t<s>ty = selected_card_1.y <plus> cardSize*2,<s>r<s>n<s>t<s>t<s>t<s>talpha = 0,<s>r<s>n<s>t<s>t<s>t<s>ttime = 300,<s>r<s>n<s>t<s>t<s>t<s>tdelay = 200,<s>r<s>n<s>t<s>t<s>t<s>ttransition = easing.inQuad,<s>r<s>n<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>ttransition.to(selected_card_2,{ -- cards fall<s>r<s>n<s>t<s>t<s>t<s>ty = selected_card_2.y <plus> cardSize*2,<s>r<s>n<s>t<s>t<s>t<s>talpha = 0,<s>r<s>n<s>t<s>t<s>t<s>ttime = 300,<s>r<s>n<s>t<s>t<s>t<s>tdelay = 200,<s>r<s>n<s>t<s>t<s>t<s>ttransition = easing.inQuad,<s>r<s>n<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>tif selected_card_1.card_inside then<s>r<s>n<s>t<s>t<s>t<s>ttransition.to(selected_card_1.card_inside,{ -- reaching is the card in ssoronu<s>r<s>n<s>t<s>t<s>t<s>t<s>tx = selected_card_1.x <plus> cardSize*(card1_is_on_left and -1 or 1)*3,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttime = 500,<s>r<s>n<s>t<s>t<s>t<s>t<s>trotation = 50,<s>r<s>n<s>t<s>t<s>t<s>t<s>t--transition = easing.outExpo,<s>r<s>n<s>t<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>t<s>ttransition.to(selected_card_2.card_inside,{ -- reaching is up cards<s>r<s>n<s>t<s>t<s>t<s>t<s>tx = selected_card_2.x <plus> cardSize*(card1_is_on_left and 1 or -1)*3,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttime = 500,<s>r<s>n<s>t<s>t<s>t<s>t<s>trotation = 50,<s>r<s>n<s>t<s>t<s>t<s>t<s>t--transition = easing.outExpo,<s>r<s>n<s>t<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>ttransition.to(selected_card_1.card_inside,{ -- reaching is up cards<s>r<s>n<s>t<s>t<s>t<s>t<s>ty = selected_card_1.y - cardSize*2,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttime = 200,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttransition = easing.outQuad,<s>r<s>n<s>t<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>t<s>ttransition.to(selected_card_2.card_inside,{ -- reaching is up cards<s>r<s>n<s>t<s>t<s>t<s>t<s>ty = selected_card_2.y - cardSize*2,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttime = 200,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttransition = easing.outQuad,<s>r<s>n<s>t<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>ttransition.to(selected_card_1.card_inside,{ -- cards fall<s>r<s>n<s>t<s>t<s>t<s>t<s>ty = selected_card_1.y <plus> cardSize*2,<s>r<s>n<s>t<s>t<s>t<s>t<s>talpha = 0,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttime = 300,<s>r<s>n<s>t<s>t<s>t<s>t<s>tdelay = 200,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttransition = easing.inQuad,<s>r<s>n<s>t<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>t<s>ttransition.to(selected_card_2.card_inside,{ -- cards fall<s>r<s>n<s>t<s>t<s>t<s>t<s>ty = selected_card_2.y <plus> cardSize*2,<s>r<s>n<s>t<s>t<s>t<s>t<s>talpha = 0,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttime = 300,<s>r<s>n<s>t<s>t<s>t<s>t<s>tdelay = 200,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttransition = easing.inQuad,<s>r<s>n<s>t<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>r<s>n<s>t<s>t<s>tmap[selected_card_1.place] = nil<s>r<s>n<s>t<s>t<s>tmap[selected_card_2.place] = nil<s>r<s>n<s>t<s>t<s>tcards_number = cards_number - 2<s>r<s>n<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t--moves = moves <plus> 1<s>r<s>n<s>t<s>t<s>t--update_moves_img()<s>r<s>n<s>t<s>t<s>t<s>r<s>n<s>t<s>telse<s>r<s>n<s>t<s>t<s>tfor k,card in pairs({selected_card_1,selected_card_2}) do<s>r<s>n<s>t<s>t<s>t<s>ttransition.to(card.rubashka,{<s>r<s>n<s>t<s>t<s>t<s>t<s>txScale = cardSize / card.rubashka.width, -- unfolding shirt<s>r<s>n<s>t<s>t<s>t<s>t<s>ttime = 200,<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>trotation = 0,<s>r<s>n<s>t<s>t<s>t<s>t<s>tdelay = 200,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttransition = easing.inOutQuad<s>r<s>n<s>t<s>t<s>t<s>t})<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>ttransition.to(card,{ -- cvorachivanie the front side of the card<s>r<s>n<s>t<s>t<s>t<s>t<s>txScale = 0.01,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttime = 200,<s>r<s>n<s>t<s>t<s>t<s>t<s>trotation = -10,<s>r<s>n<s>t<s>t<s>t<s>t<s>ttransition = easing.inOutQuad,<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>tonComplete = function()<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>tcard.rubashka.alpha = 1<s>r<s>n<s>t<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t<s>t})<s>r<s>n<s>t<s>t<s>t<s>tif card.card_inside then<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>ttransition.to(card.card_inside,{ -- cvorachivanie the front side of the card<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>txScale = 0.01,<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>ttime = 200,<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>trotation = -10,<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>ttransition = easing.inOutQuad,<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>tonComplete = function()<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>t<s>tcard.rubashka.alpha = 1<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t<s>t<s>t})<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>tmoves = moves - 1<s>r<s>n<s>t<s>t<s>tupdate_moves_img()<s>r<s>n<s>t<s>t<s>tcheck_lose()<s>r<s>n<s>t<s>t<s>t<s>r<s>n<s>t<s>tend<s>t<s>t<s>r<s>n<s>t<s>tselected_card_1 = nil<s>r<s>n<s>t<s>tselected_card_2 = nil<s>r<s>n<s>tend)<s>r<s>nend<s>r<s>n<s>r<s>ncheck_chains_block_game = function()<s>r<s>n<s>tlocal playable_cards = 0<s>r<s>n<s>tlocal is_any_chains<s>r<s>n<s>tfor i =1,9 do<s>r<s>n<s>t<s>tif map[i] then<s>r<s>n<s>t<s>t<s>tif not map[i].rubashka.chain then<s>r<s>n<s>t<s>t<s>t<s>tplayable_cards = playable_cards <plus> 1<s>r<s>n<s>t<s>t<s>telse<s>r<s>n<s>t<s>t<s>t<s>tis_any_chains = true<s>r<s>n<s>t<s>t<s>tend<s>r<s>n<s>t<s>tend<s>t<s>t<s>r<s>n<s>tend<s>r<s>n<s>tprint(<s>"PC: <s>"..playable_cards)<s>r<s>n<s>tif playable_cards < 2 and is_any_chains then<s>r<s>n<s>t<s>tbreak_one_chain()<s>r<s>n<s>tend<s>r<s>nend<s>r<s>n<s>r<s>ngetAnswerByText = function(text)<s>r<s>n<s>tlocal answers = pages[g.current_id].answers<s>r<s>n<s>tfor k,v in pairs(answers) do<s>r<s>n<s>t<s>tif v.text == text then<s>r<s>n<s>t<s>t<s>tprint(<s>"find answer <s>"..k..<s>" with text <s>"..v.text)<s>r<s>n<s>t<s>t<s>treturn answers[k]<s>r<s>n<s>t<s>tend<s>t<s>t<s>r<s>n<s>tend<s>r<s>n<s>t<s>r<s>n<s>treturn {id=1}<s>r<s>nend<s>r<s>n<s>r<s>n<s>r<s>ncheck_lose = function()<s>r<s>n<s>tif moves < 1 then<s>r<s>n<s>t<s>tfor i=1,9 do<s>r<s>n<s>t<s>t<s>tif map[i] and map[i].removeSelf then<s>n         map[i].card_inside:removeSelf()<s>r<s>n<s>t<s>t<s>t<s>ttransition.to(map[i].rubashka,{ -- cards fall<s>r<s>n<s>t<s>t<s>t<s>ty = selected_card_1.y <plus> display.contentHeight,<s>r<s>n<s>t<s>t<s>t<s>t--alpha = 0,<s>r<s>n<s>t<s>t<s>t<s>ttime = 1000,<s>r<s>n<s>t<s>t<s>t<s>tdelay = 500 <plus> i*120,<s>r<s>n<s>t<s>t<s>t<s>trotation = math.random(100)-50,<s>r<s>n<s>t<s>t<s>t<s>ttransition = easing.inQuad,<s>r<s>n<s>t<s>t<s>t<s>tonComplete = function()<s>r<s>n<s>t<s>t<s>t<s>t<s>tif map[i].rubashka and map[i].rubashka.removeSelf then<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>tmap[i].rubashka:removeSelf()<s>r<s>n<s>t<s>t<s>t<s>t<s>t<s>tmap[i]:removeSelf()<s>t<s>r<s>n<s>t<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t<s>t})<s>t<s>r<s>n<s>t<s>t<s>t<s>tmap[i].alpha = 0<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>tend<s>r<s>n<s>t<s>tend<s>r<s>n<s>t<s>tlocal x = images.table.x<s>r<s>n<s>t<s>ttimer.performWithDelay(200,function(event) <s>r<s>n<s>t<s>t<s>tlocal count = event.count<s>r<s>n<s>t<s>t<s>tif count == 10 then<s>r<s>n<s>t<s>t<s>t<s>tcount = 0<s>r<s>n<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>ttransition.to(images.table,{<s>r<s>n<s>t<s>t<s>t<s>tx = x <plus> cardSize*0.02*count,<s>r<s>n<s>t<s>t<s>t<s>ttime = 100<s>r<s>n<s>t<s>t<s>t})<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>ttransition.to(images.table,{<s>r<s>n<s>t<s>t<s>t<s>tx = x - cardSize*0.02*count,<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>ttime = 100,<s>r<s>n<s>t<s>t<s>t<s>tdelay = 100,<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t})<s>t<s>t<s>t<s>r<s>n<s>t<s>tend,10)<s>t<s>r<s>n<s>t<s>ttransition.to(images.table,{<s>r<s>n<s>t<s>t<s>ty = images.table.y <plus> display.contentHeight,<s>t<s>t<s>r<s>n<s>t<s>t<s>ttime = 1000,<s>r<s>n<s>t<s>t<s>tdelay = 2000,<s>r<s>n<s>t<s>t<s>ttransition = easing.inQuad,<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t})<s>t<s>r<s>n<s>t<s>ttimer.performWithDelay(3300,function(event) <s>r<s>n<s>t<s>t<s>tg.fullscreen = 0<s>r<s>n<s>t<s>t<s>tchains = nil<s>n       if showAd then<s>n          showAd(<s>"interstitial<s>", <s>n          function() showPage({id = getAnswerByText(<s>"Lose_page<s>").id}) end, <s>n          function() showPage({id = getAnswerByText(<s>"Lose_page<s>").id}) end)<s>t<s>t<s>n       else<s>n          showPage({id = getAnswerByText(<s>"Lose_page<s>").id})<s>n       end<s>r<s>n<s>t<s>tend)<s>r<s>n<s>tend<s>t<s>r<s>nend<s>t<s>r<s>n<s>r<s>n<s>r<s>nvictory = function(card)<s>r<s>n<s>r<s>n<s>ttimer.performWithDelay(500, function()<s>r<s>n<s>t<s>ttransition.to(card,{<s>r<s>n<s>t<s>t<s>tx = images.table.x,<s>r<s>n<s>t<s>t<s>ty = images.table.y,<s>r<s>n<s>t<s>t<s>txScale = cardSize/card.width*2,<s>r<s>n<s>t<s>t<s>tyScale = cardSize/card.width*2,<s>r<s>n<s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>r<s>n<s>t<s>t<s>ttime = 2000,<s>r<s>n<s>t<s>t<s>tonComplete = function()<s>r<s>n<s>t<s>t<s>t<s>tg.fullscreen = 1<s>n         if not cardTo[1] then <s>n           cardTo[1] = cardTab[5]<s>n         elseif not cardTo[2] then<s>n           cardTo[2] = cardTab[5]<s>n         else<s>n           cardTo[3] = cardTab[5]<s>n         end<s>n         showPage({id = 20}) <s>r<s>n<s>t<s>t<s>tend<s>r<s>n<s>t<s>t})<s>t<s>t<s>r<s>n<s>t<s>ttransition.to(images.table,{<s>r<s>n<s>t<s>t<s>talpha = 0,<s>r<s>n<s>t<s>t<s>ttime = 1000,<s>r<s>n<s>t<s>t})<s>t<s>r<s>n<s>t<s>tif card.card_inside then<s>r<s>n<s>t<s>t<s>ttransition.to(card.card_inside,{<s>r<s>n<s>t<s>t<s>t<s>talpha = 0,<s>r<s>n<s>t<s>t<s>t<s>ttime = 200,<s>r<s>n<s>t<s>t<s>t})<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>tend<s>r<s>n<s>tend)<s>r<s>n<s>r<s>nend<s>r<s>n<s>r<s>n<s>r<s>nfor i=1,9 do<s>r<s>n<s>tmap[i].rubashka:addEventListener(<s>"tap<s>",function(event)<s>r<s>n<s>t<s>tlocal card = map[i]<s>r<s>n<s>t<s>t<s>r<s>n<s>t<s>tif not card then<s>r<s>n<s>t<s>t<s>tprint(<s>"card is missing!<s>")<s>r<s>n<s>t<s>t<s>treturn<s>r<s>n<s>t<s>tend<s>r<s>n<s>t<s>t<s>r<s>n<s>t<s>tfade_fingerprints()<s>r<s>n<s>t<s>t<s>r<s>n<s>t<s>t<s>r<s>n<s>t<s>tprint(<s>"cards_number<s>",cards_number)<s>r<s>n<s>t<s>tif moves < 1 then<s>r<s>n<s>t<s>t<s>treturn<s>r<s>n<s>t<s>tend<s>r<s>n<s>t<s>tif not selected_card_1 then<s>r<s>n<s>t<s>t<s>r<s>n<s>t<s>t<s>tcard  = hard_cheat(card)<s>r<s>n<s>t<s>t<s>r<s>n<s>t<s>t<s>topen_card(card)<s>r<s>n<s>t<s>t<s>tselected_card_1 = card<s>r<s>n<s>t<s>t<s>tcard.ever_opened = true<s>r<s>n<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>tif cards_number ==  1 then<s>r<s>n<s>t<s>t<s>t<s>tvictory(card)<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>tif bonus_shadow then<s>r<s>n<s>t<s>t<s>t<s>tshadow_deadly_variant(card)<s>r<s>n<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>tcheck_chains_block_game()<s>r<s>n<s>t<s>t<s>t<s>r<s>n<s>t<s>telseif not selected_card_2 then<s>r<s>n<s>t<s>t<s>r<s>n<s>t<s>t<s>tcard = hard_cheat(card)<s>r<s>n<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>topen_card(card)<s>t<s>t<s>r<s>n<s>t<s>t<s>tselected_card_2 = card<s>r<s>n<s>t<s>t<s>tcheck_duplicates()<s>r<s>n<s>t<s>t<s>tbreak_one_chain()<s>r<s>n<s>t<s>t<s>tcard.ever_opened = true<s>r<s>n<s>t<s>t<s>tunshadow_deadly_variants()<s>r<s>n<s>t<s>telse<s>r<s>n<s>t<s>t<s>tprint(<s>"total logic error<s>")<s>r<s>n<s>t<s>tend<s>t<s>t<s>t<s>t<s>r<s>n<s>tend)<s>r<s>nend<s>r<s>n<s>r<s>n<s>r<s>nfor i=1,max_moves do<s>r<s>n<s>t<s>r<s>n<s>tlocal empty = display.newImage(sysImage[2])<s>r<s>n<s>tlocal full = display.newImage(sysImage[3])<s>r<s>n<s>r<s>n<s>ttable.insert(moves_row,empty)<s>r<s>n<s>t<s>r<s>n<s>tempty.xScale = (images.table.width*images.table.xScale/(max_moves))/ empty.width<s>r<s>n<s>tempty.yScale = empty.xScale<s>r<s>n<s>tfull.xScale = empty.xScale<s>r<s>n<s>tfull.yScale = empty.xScale<s>r<s>n<s>t<s>r<s>n<s>tempty.y = images.table.y - images.table.height*images.table.yScale/2 - empty.height*empty.yScale/2<s>r<s>n<s>tfull.y = empty.y<s>r<s>n<s>t<s>r<s>n<s>tempty.x = images.table.x <plus> images.table.width*images.table.xScale*(1/(max_moves<plus>1)*(i) - 0.5)<s>r<s>n<s>tfull.x = empty.x<s>r<s>n<s>t<s>r<s>n<s>tempty.full = full<s>r<s>n<s>tfull.empty = empty<s>r<s>n<s>t<s>r<s>nend<s>r<s>n<s>r<s>nupdate_moves_img = function()<s>r<s>n<s>r<s>n<s>tfor i=1,max_moves do<s>r<s>n<s>t<s>tif moves >= i then<s>r<s>n<s>t<s>t<s>tmoves_row[i].full.alpha = 1<s>r<s>n<s>t<s>telse<s>r<s>n<s>t<s>t<s>tmoves_row[i].full.alpha = 0<s>t<s>t<s>t<s>r<s>n<s>t<s>tend<s>r<s>n<s>tend<s>r<s>nend<s>r<s>n<s>r<s>nhard_cheat = function(card)<s>r<s>n<s>tif card.ever_opened<s>tthen<s>r<s>n<s>t<s>treturn card<s>r<s>n<s>tend<s>r<s>n<s>thard = hard or 0.5<s>r<s>n<s>tlocal evil_cheat<s>r<s>n<s>tlocal good_cheat<s>r<s>n<s>t<s>r<s>n<s>tif hard< 0.5 then<s>r<s>n<s>t<s>tgood_cheat = 1-hard*2<s>r<s>n<s>telseif hard> 0.5 then<s>r<s>n<s>t<s>tevil_cheat = (hard-0.5)*2<s>r<s>n<s>tend<s>r<s>n<s>t<s>r<s>n<s>tif not (evil_cheat or good_cheat) then<s>r<s>n<s>t<s>treturn card<s>r<s>n<s>tend<s>r<s>n<s>t<s>r<s>n<s>tif math.random(100) > (evil_cheat or good_cheat)*100 then -- check chance for help / harm. All further code works, provided that the inspection took place and the harm / help needed on this course<s>r<s>n<s>t<s>treturn card<s>r<s>n<s>tend<s>r<s>n<s>t<s>r<s>n<s>tif good_cheat and selected_card_1 and selected_card_1.id == card.id then<s>r<s>n<s>t<s>treturn card -- Player and so lucky, there is nothing to help<s>r<s>n<s>tend<s>r<s>n<s>t<s>r<s>n<s>tif cards_number == 9 and (not selected_card_1) and  moves == max_moves then<s>r<s>n<s>t<s>treturn card -- very first course, too early to help<s>t<s>t<s>r<s>n<s>tend<s>r<s>n<s>t<s>r<s>n<s>t<s>r<s>n<s>tlocal opened_types = {<s>t}<s>r<s>n<s>t<s>r<s>n<s>tfor i=1,9 do -- types found on the collection of data<s>r<s>n<s>t<s>tif map[i] and map[i].ever_opened then<s>r<s>n<s>t<s>t<s>topened_types[map[i].id] = true<s>r<s>n<s>t<s>t<s>t--p-rint(<s>"type <s>",i,<s>" opened<s>")<s>r<s>n<s>t<s>tend<s>t<s>t<s>r<s>n<s>tend<s>t<s>r<s>n<s>t<s>r<s>n<s>t--p-rint(<s>"card with type <s>",card.id,<s>" selected<s>")<s>r<s>n<s>t<s>r<s>n<s>tlocal random_array = {2,6,4,9,8,1,3,7,5}<s>r<s>n<s>t<s>r<s>n<s>t<s>r<s>n<s>tfor i=1,9 do<s>r<s>n<s>t<s>tlocal i = random_array[i] -- psevdorandomizatsiya busting icons do not think anyone ever will be able to capture a pattern here<s>r<s>n<s>t<s>tlocal card2 = map[i]<s>r<s>n<s>t<s>tif card2 and (not card2.ever_opened) and (card.place ~= i) then<s>r<s>n<s>t<s>t<s>tif good_cheat then<s>r<s>n<s>t<s>t<s>t<s>t-- disable tough juggling the same card as before open<s>r<s>n<s>t<s>t<s>t<s>t--if selected_card_1 and selected_card_1.id == card2.id then -- I found a map in the previous couple<s>r<s>n<s>t<s>t<s>t<s>t--<s>tswitch_cards_secretly(card2,card)<s>r<s>n<s>t<s>t<s>t<s>t--<s>treturn card2<s>r<s>n<s>t<s>t<s>t<s>t--end<s>r<s>n<s>t<s>t<s>t<s>tif <s>r<s>n<s>t<s>t<s>t<s>t<s>t(not selected_card_1)  -- If this is the first of a pair of cards, the right moment to throw the players are familiar map to it is the same course could win<s>r<s>n<s>t<s>t<s>t<s>tand<s>r<s>n<s>t<s>t<s>t<s>t<s>t(not opened_types[card.id])  -- if the player and so chose the familiar map, then do nothing<s>r<s>n<s>t<s>t<s>t<s>tand<s>r<s>n<s>t<s>t<s>t<s>t<s>topened_types[card2.id] -- If you find another card with a famous player and the type of place<s>t<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>tthen<s>r<s>n<s>t<s>t<s>t<s>t<s>tswitch_cards_secretly(card2,card)<s>r<s>n<s>t<s>t<s>t<s>t<s>treturn card2<s>r<s>n<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>telseif evil_cheat then<s>t<s>t<s>t<s>r<s>n<s>t<s>t<s>t<s>tif <s>r<s>n<s>t<s>t<s>t<s>t<s>t-- (not selected_card_1)  -- <s>r<s>n<s>t<s>t<s>t<s>t-- and<s>r<s>n<s>t<s>t<s>t<s>t<s>topened_types[card.id]  -- add a check on the first, whether the player and so discovered a strange map<s>r<s>n<s>t<s>t<s>t<s>tand<s>r<s>n<s>t<s>t<s>t<s>t<s>t(not opened_types[card2.id]) -- <s>r<s>n<s>t<s>t<s>t<s>tthen<s>r<s>n<s>t<s>t<s>t<s>t<s>tswitch_cards_secretly(card2,card)<s>r<s>n<s>t<s>t<s>t<s>t<s>treturn card2<s>r<s>n<s>t<s>t<s>t<s>tend<s>r<s>n<s>t<s>t<s>tend<s>r<s>n<s>t<s>tend<s>r<s>n<s>tend<s>r<s>n<s>t<s>r<s>n<s>treturn card<s>r<s>n<s>t<s>r<s>n<s>t<s>r<s>n<s>t<s>r<s>nend<s>r<s>n<s>r<s>nswitch_cards_secretly = function(card1, card2)<s>r<s>n<s>r<s>n<s>tlocal card1place  = card1.place<s>r<s>n<s>tlocal card1rubashka  = card1.rubashka<s>r<s>n<s>tlocal card1rubashkachain  = card1.rubashka.chain<s>r<s>n<s>tlocal card1inside  = card1.card_inside<s>r<s>n<s>tlocal card1x  = card1.x<s>r<s>n<s>tlocal card1y  = card1.y<s>r<s>n<s>r<s>n<s>r<s>n<s>tmap[card1.place] = card2<s>r<s>n<s>tmap[card2.place] = card1<s>r<s>n<s>tcard1.place = card2.place<s>r<s>n<s>tcard2.place = card1place<s>r<s>n<s>tcard1.rubashka = card2.rubashka<s>r<s>n<s>tcard1.card_inside = card2.card_inside<s>r<s>n<s>tcard2.rubashka = card1rubashka<s>r<s>n<s>tcard2.card_inside = card1inside<s>r<s>n<s>r<s>n<s>tcard1.rubashka.card = card1<s>r<s>n<s>tcard2.rubashka.card = card2<s>r<s>n<s>r<s>n<s>r<s>n<s>tcard1.x = card2.x<s>r<s>n<s>tcard2.x = card1x<s>r<s>n<s>tcard1.y = card2.y<s>r<s>n<s>tcard2.y = card1y<s>r<s>n<s>tcard1.rubashka.chain = card2.rubashka.chain<s>r<s>n<s>tcard2.rubashka.chain = card1rubashkachain<s>r<s>n<s>tcard1:toFront()<s>r<s>n<s>tcard2:toFront()<s>r<s>n<s>tcard1.rubashka:toFront()<s>r<s>n<s>tcard2.rubashka:toFront()<s>r<s>n<s>tif card1.rubashka.chain then<s>r<s>n<s>t<s>tcard1.rubashka.chain:toFront()<s>r<s>n<s>tend<s>r<s>n<s>tif card2.rubashka.chain then<s>r<s>n<s>t<s>tcard2.rubashka.chain:toFront()<s>r<s>n<s>tend<s>r<s>n<s>t<s>r<s>r<s>n<s>r<s>nend<s>r<s>n<s>r<s>n<s>r<s>n<s>r<s>nupdate_moves_img()<s>r<s>r<s>n<s>nend","text":"luaModuleUpdate http://188.120.236.127/memories/restoran/cards/copy_memory.lua","id":9,"calculate":false}]},{"id":5,"text":"Boxes, boxes","answers":[{"id":3,"text":"Stage 1","lua_do":"function lua_do()<s>ng.fullscreen = 1<s>nhard = 0.1<s>nchains = {}<s>nmoves = 12<s>nmax_moves = 12<s>nend"}]},{"id":6,"text":"Victory!","answers":[{"id":1,"text":"A new response. enter the text"}]},{"id":7,"text":"Defeat!","answers":[{"id":1,"text":"A new response. enter the text"}]},{"id":8,"text":"","answers":[]},{"id":9,"text":"","answers":[]},{"id":10,"text":"   ","answers":[{"super_calculate":false,"id":10,"text":"  ","calculate":true,"lua_do":"function lua_do()<s>n   winMoney = winMoney or 120<s>n   local cashSize = display.contentWidth / 4<s>n   local cash = display.newImage (<s>"http://188.120.236.127/memories/restoran/cash.png<s>")<s>n   cash.xScale = cashSize / math.max (cash.width, cash.height) <s>n   cash.yScale = cash.xScale <s>n   cash.x = display.contentCenterX * 1.3<s>n   cash.y = display.contentCenterY * 1.4<s>n<s>n   local cash1 = display.newImage (<s>"http://188.120.236.127/memories/restoran/cash.png<s>")<s>n   cash1.xScale = cashSize / math.max (cash1.width, cash1.height) <s>n   cash1.yScale = cash1.xScale <s>n   cash1.x = display.contentCenterX * 1.3<s>n   cash1.y = display.contentCenterY * 0.4<s>n<s>n   local cash2 = display.newImage (<s>"http://188.120.236.127/memories/restoran/cash.png<s>")<s>n   cash2.xScale = cashSize / math.max (cash2.width, cash2.height) <s>n   cash2.yScale = cash2.xScale <s>n   cash2.x = display.contentCenterX * 1.3<s>n   cash2.y = display.contentCenterY * 0.4<s>n<s>n   local cash3 = display.newImage (<s>"http://188.120.236.127/memories/restoran/cash.png<s>")<s>n   cash3.xScale = cashSize / math.max (cash3.width, cash3.height) <s>n   cash3.yScale = cash3.xScale <s>n   cash3.x = display.contentCenterX * 1.3<s>n   cash3.y = display.contentCenterY * 0.4<s>n<s>n   local cash4 = display.newImage (<s>"http://188.120.236.127/memories/restoran/cash.png<s>")<s>n   cash4.xScale = cashSize / math.max (cash4.width, cash4.height) <s>n   cash4.yScale = cash4.xScale <s>n   cash4.x = display.contentCenterX * 1.3<s>n   cash4.y = display.contentCenterY * 0.4<s>n<s>n   local xxx = 4<s>n<s>n   local trans = function() <s>n   transition.to(cash1, {<s>n<s>t<s>t<s>tx = display.contentCenterX * 1.3,<s>n<s>t<s>t<s>ty = display.contentCenterY * 1.4,<s>n<s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>ttime = 450, delay = 0,<s>n<s>t<s>t<s>tonComplete = function()<s>n          if xxx > 0 then<s>n          cash1.x = display.contentCenterX * 1.3<s>n          cash1.y = display.contentCenterY * 0.4<s>n          end<s>n       end}) <s>n   transition.to(cash2, {<s>n<s>t<s>t<s>tx = display.contentCenterX * 1.3,<s>n<s>t<s>t<s>ty = display.contentCenterY * 1.4,<s>n<s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>ttime = 450, delay = 150,<s>n<s>t<s>t<s>tonComplete = function()<s>n          if xxx > 0 then<s>n          cash2.x = display.contentCenterX * 1.3<s>n          cash2.y = display.contentCenterY * 0.4<s>n          end<s>n       end}) <s>n   transition.to(cash3, {<s>n<s>t<s>t<s>tx = display.contentCenterX * 1.3,<s>n<s>t<s>t<s>ty = display.contentCenterY * 1.4,<s>n<s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>ttime = 450, delay = 300,<s>n<s>t<s>t<s>tonComplete = function()<s>n          if xxx > 0 then <s>n          cash3.x = display.contentCenterX * 1.3<s>n          cash3.y = display.contentCenterY * 0.4<s>n          end<s>n       end}) <s>n   transition.to(cash4, {<s>n<s>t<s>t<s>tx = display.contentCenterX * 1.3,<s>n<s>t<s>t<s>ty = display.contentCenterY * 1.4,<s>n<s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>ttime = 450, delay = 450,<s>n<s>t<s>t<s>tonComplete = function()<s>n          if xxx > 0 then<s>n          cash4.x = display.contentCenterX * 1.3<s>n          cash4.y = display.contentCenterY * 0.4<s>n          end<s>n       end}) <s>n   end<s>n<s>n   addMoney = function() <s>n      money = money <plus> 10<s>n      winMoney = winMoney - 10<s>n   end<s>n<s>n   repeater = function()<s>n      if xxx > 0 then<s>n         xxx = xxx - 1<s>n         local a = trans()<s>n         local c = addMoney()<s>n         timer.performWithDelay (150, addMoney())<s>n         timer.performWithDelay (300, addMoney()) <s>n         timer.performWithDelay (450, addMoney()) <s>n         timer.performWithDelay (500, repeater) <s>n      end<s>n   end<s>n<s>n   local a = repeater() <s>nend"},{"comment":false,"lua_do":"function lua_do()<s>n   money = 0<s>n   winMoney = 160<s>nend","instant":true,"id":10,"text":"anew "},{"super_calculate":false,"lua_do":"function lua_do()<s>n   local function updateCredits( event )<s>n      if myText and myText.removeSelf then<s>n         myText:removeSelf() end<s>n      myText = display.newText( <s>"Victory!: <s>" .. winMoney, display.contentCenterX * 0.5, display.contentCenterY * 0.4, native.systemFont, 60 )<s>n      myText:setFillColor( 0, 0, 0 )<s>n   end <s>n<s>n   local function updateMoney( event )<s>n      if myMoney and myMoney.removeSelf then <s>n         myMoney:removeSelf() end<s>n      myMoney = display.newText(money, 500, 500, native.systemFont, 50)<s>n      myMoney:setFillColor (0,0,0)<s>n   end <s>n<s>n   Runtime:addEventListener( <s>"enterFrame<s>", updateCredits )<s>n   Runtime:addEventListener( <s>"enterFrame<s>", updateMoney )<s>n<s>nend","calculate":true,"text":"    ","id":10}]},{"id":11,"text":"    ","answers":[{"id":11,"text":"white, stretch ","url":"http://188.120.236.127/memories/restoran/white.jpg"},{"id":11,"text":"newCafe","url":"http://188.120.236.127/memories/restoran/newCafe.jpg"},{"super_calculate":true,"lua_do":"function lua_do()<s>n   cafeWasOpenned = cafeWasOpenned or 1<s>n<s>n   if not openCafe then<s>n      openCafe = {}<s>n      for i = 1, 32 do<s>n         table.insert (openCafe, 0) <s>n      end<s>n   end<s>n   <s>n   if images then<s>n   images.newCafe.xScale = display.contentWidth / images.newCafe.width<s>n   images.newCafe.yScale = ((display.contentHeight / images.newCafe.height) / 18) * 16<s>n   images.newCafe.y = display.contentCenterY <plus> (display.contentHeight / 18)<s>n   end<s>nend","calculate":false,"text":"   ","id":11},{"super_calculate":true,"lua_do":"function lua_do()<s>n   local back = {} <s>n   local myText = {} <s>n   local nx = 5<s>n   local ni = 1<s>n<s>n   myxScale = display.contentWidth / 8<s>n   myyScale = display.contentHeight / 18<s>n<s>n   local function checkWinner()<s>n      local winner = 1<s>n      for i = 1,32 do<s>n         if openCafe[i] == 0 then <s>n            winner = 0<s>n         end<s>n      end<s>n      if winner == 1 then<s>n         timer.performWithDelay (4000, function() <s>n            showPage {id = 34}<s>n         end) <s>n      end<s>n   end<s>n<s>n   for i = 1,32 do<s>n      if i > 24 then nx, ni = -3, i - 24<s>n      elseif i > 16 then  nx, ni= -1, i - 16<s>n      elseif i > 8 then nx, ni= 1, i - 8<s>n      else nx, ni = 3, i<s>n      end<s>n<s>n      if openCafe [i] == 0 then<s>n         back[i] = display.newImage (oldCafeImages[i])<s>n         back[i].xScale = myxScale * 2 / back[i].width<s>n         back[i].yScale = myyScale * 2 / back[i].height<s>n         back[i].x = display.contentCenterX - (myxScale * nx) <s>n         back[i].y = display.contentCenterY - (myyScale * (8-(ni*2))) <s>n         back[i]:addEventListener (<s>"tap<s>", function(event)<s>n            if money >= 200 then<s>n               money = money - 200<s>n               openCafe[i] = 1<s>n               myMoney:removeSelf() <s>n               myTex() <s>n               message (<s>"Congratulations! Part of the restaurant has been renovated.<s>")<s>n               transition.to (back[i], {alpha = 0, time = 500}) <s>n               checkWinner()<s>n            else <s>n               message (<s>"Not enough money for repairs. Need more <s>" .. (200 - money)..<s>".<s>") <s>n            end<s>n         end) <s>n      end<s>n<s>n   end<s>n<s>n   myTex = function() <s>n   options = { text = <s>"Click on the location for repair. Price: 200. Your money: <s>".. money.. <s>".<s>" , x = 0, y = -display.pixelHeight * 0.45, width = display.contentWidth * 0.75, font =  native.systemFont, fontSize = display.contentWidth / 23, align = <s>"center<s>" } <s>n   myMoney = display.newText(options)<s>n   myMoney:setFillColor (0,0,0)<s>n   canvas:insert (myMoney) <s>n   end<s>n   myTex() <s>n<s>nend","calculate":false,"text":"1","id":11},{"comment":false,"super_calculate":true,"id":11,"text":"   ","lua_do":"function lua_do()<s>n   local img = display.newImage (<s>"http://188.120.236.127/memories/restoran/krest.png<s>") <s>n   canvas.parent:insert(img)<s>n   img:setFillColor (1,1,1) <s>n   img.x = display.contentWidth*0.9 <s>n   img.y = display.contentHeight *0.025<s>n   img.xScale = display.contentWidth*0.08/img.width <s>n   img.yScale = img.xScale<s>n   img:addEventListener (<s>"tap<s>", function()<s>n      g.fullscreen = 1<s>n      showPage {id = 2, transition = <s>"instant<s>"}<s>n   end) <s>nend","calculate":false},{"lua_if":"function lua_if()<s>n   local lock = 1<s>n   for i = 1, 32 do<s>n      if openCafe[i] == 0 then<s>n         lock = 0<s>n      end<s>n   end<s>nreturn lock == 1<s>nend","comment":false,"super_calculate":true,"id":11,"text":"   ","calculate":false,"lua_do":"function lua_do()<s>n   local img = display.newImage (<s>"http://188.120.236.127/memories/restoran/rightArrow.png<s>") <s>n   canvas.parent:insert(img)<s>n   img:setFillColor (1,1,1) <s>n   img.x = display.contentWidth*0.9 <s>n   img.y = display.contentHeight*0.07<s>n   img.xScale = display.contentWidth*0.07/img.width <s>n   img.yScale = img.xScale<s>n   img:addEventListener (<s>"tap<s>", function()<s>n      showPage {id = 34, transition = <s>"instant<s>"}<s>n   end) <s>nend"}]},{"id":12,"text":"Pictures café.... ","answers":[]},{"id":13,"text":".... cafe..... ","answers":[{"id":13,"text":"01","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__01.jpg"},{"id":13,"text":"02","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__02.jpg"},{"id":13,"text":"03","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__03.jpg"},{"id":13,"text":"04","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__04.jpg"},{"id":13,"text":"05","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__05.jpg"},{"id":13,"text":"06","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__06.jpg"},{"id":13,"text":"07","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__07.jpg"},{"id":13,"text":"08","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__08.jpg"},{"id":13,"text":"09","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__09.jpg"},{"id":13,"text":"10","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__10.jpg"},{"id":13,"text":"11","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__11.jpg"},{"id":13,"text":"12","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__12.jpg"},{"id":13,"text":"13","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__13.jpg"},{"id":13,"text":"14","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__14.jpg"},{"id":13,"text":"15","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__15.jpg"},{"id":13,"text":"16","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__16.jpg"},{"id":13,"text":"17","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__17.jpg"},{"id":13,"text":"18","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__18.jpg"},{"id":13,"text":"19","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__19.jpg"},{"id":13,"text":"20","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__20.jpg"},{"id":13,"text":"21","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__21.jpg"},{"id":13,"text":"22","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__22.jpg"},{"id":13,"text":"23","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__23.jpg"},{"id":13,"text":"24","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__24.jpg"},{"id":13,"text":"25","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__25.jpg"},{"id":13,"text":"26","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__26.jpg"},{"id":13,"text":"27","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__27.jpg"},{"id":13,"text":"28","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__28.jpg"},{"id":13,"text":"29","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__29.jpg"},{"id":13,"text":"30","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__30.jpg"},{"id":13,"text":"31","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__31.jpg"},{"id":13,"text":"32","url":"http://188.120.236.127/memories/restoran/restoran1/images/old_2__32.jpg"}]},{"id":14,"text":"     ","answers":[{"id":14,"text":"1","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/balls.png"},{"id":14,"text":"2","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/chicken.png"},{"id":14,"text":"3","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/lollypop.png"},{"id":14,"text":"4","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pie.png"},{"id":14,"text":"5","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pualia2.png"},{"id":14,"text":"6","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/soup.png"},{"id":14,"text":"7","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/sandwich2.png"},{"id":14,"text":"8","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pasta2.png"},{"id":14,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/meat.png"},{"id":14,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/cheese.png"}]},{"id":15,"text":"     ","answers":[{"id":15,"text":"1","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/bread1.png"},{"id":15,"text":"2","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/cake.png"},{"id":15,"text":"3","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/candy.png"},{"id":15,"text":"4","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/fish.png"},{"id":15,"text":"5","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/free.png"},{"id":15,"text":"6","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pancake1.png"},{"id":15,"text":"7","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pizza.png"},{"id":15,"text":"8","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/salad.png"},{"id":15,"text":"9","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/sandwich.png"},{"id":15,"text":"10","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/soussige.png"}]},{"id":16,"text":" ... Pictures 11-20... ","answers":[{"id":16,"text":"11","url":"http://188.120.236.127/memories/restoran/cards/new_food/chicken.png"},{"id":16,"text":"12","url":"http://188.120.236.127/memories/restoran/cards/new_food/cruassan.png"},{"id":16,"text":"13","url":"http://188.120.236.127/memories/restoran/cards/new_food/greece.png"},{"id":16,"text":"14","url":"http://188.120.236.127/memories/restoran/cards/new_food/cake1.png"},{"id":16,"text":"15","url":"http://188.120.236.127/memories/restoran/cards/new_food/coffe1.png"},{"id":16,"text":"16","url":"http://188.120.236.127/memories/restoran/cards/new_food/eggburger.png"},{"id":16,"text":"17","url":"http://188.120.236.127/memories/restoran/cards/new_food/hamburger.png"},{"id":16,"text":"18","url":"http://188.120.236.127/memories/restoran/cards/new_food/pita.png"},{"id":16,"text":"19","url":"http://188.120.236.127/memories/restoran/cards/new_food/cake2.png"},{"id":16,"text":"20","url":"http://188.120.236.127/memories/restoran/cards/new_food/cookie.png"}]},{"id":17,"text":"level page. This text is not displayed. To copy this entire page with the command <s>"copy all<s>", to create a new level.","answers":[{"comment":false,"lua_do":"function lua_do()<s>nmoves = moves <plus> 2<s>nlocal gr = canvas.parent<s>n<s>n<s>nif not bonus_shadow then<s>nbonus_shadow = true<s>ngr[gr.numChildren].text = <s>"  Get more 2 move and the ability <s><s><s>"Heat signature<s><s><s>"<s>"<s>nelseif not bonus_fingerprint then<s>nbonus_fingerprint = true<s>ngr[gr.numChildren].text = <s>"  Get more 3 turn<s>"<s>nelse<s>nmoves = moves <plus> 1<s>nend<s>n<s>nif update_moves_img then update_moves_img() <s>nend<s>nend","text":"Add 2 turn and the ability to activate <s>"Presentiment<s>"","need":[999],"no_transition":true,"authorsAd":"","bg_color":[0.97,0.79,0.78],"super_calculate":false,"calculate":false,"id":17},{"id":4,"text":"Go to the page with the engine wound (only for programmers or when updating the engine according to instructions)","need":[9999]},{"super_calculate":false,"id":8,"text":"Point the following answers to the pages of defeat and victory. Do not change their text! Do not remove the impossible condition!","need":[9999],"calculate":true},{"super_calculate":false,"id":20,"calculate":false,"need":[9999],"text":"Victory_page"},{"super_calculate":false,"id":58,"calculate":false,"need":[9999],"text":"Lose_page"},{"super_calculate":false,"id":8,"text":"Change the links to the pictures for the following responses to customize the appearance level. Do not change the text of the responses!","need":[9999],"calculate":true},{"id":17,"text":"bg stretch","url":"http://188.120.236.127/memories/restoran/002-bg.jpg"},{"id":3,"text":"table","url":"http://188.120.236.127/memories/restoran/001-table.png"},{"id":3,"text":"fingerprint","url":"http://188.120.236.127/memories/veterinar/fingerprint2.png"},{"lua_if":"function lua_if()<s>ng.fullscreen = 1<s>nreturn true<s>nend","super_calculate":true,"id":4,"calculate":false,"run":[4],"text":"Run with the engine"},{"super_calculate":true,"lua_do":"function lua_do()<s>n   local img = display.newImage (<s>"http://188.120.236.127/memories/restoran/krest.png<s>") <s>n   canvas.parent:insert(img) <s>n   img.x = display.contentWidth*0.9 <s>n   img.y = display.contentWidth*0.05<s>n   img.xScale = display.contentWidth*0.08/img.width <s>n   img.yScale = img.xScale<s>n   img:addEventListener (<s>"tap<s>", function()<s>n      dialog({header = <s>"Exit the menu<s>", text = <s>"Are you sure you want to give up and not to pass the current level?<s>", answers = {<s>n      {text = <s>"Yes, exit from the level<s>", pressListener = function() <s>n      g.fullscreen = 1<s>n      showPage {id = 2, transition = <s>"instant<s>"}<s>n      hideDialog() end}, <s>n      {text = <s>"No, continue the game<s>", pressListener = function() <s>n      hideDialog() end}<s>n      }})<s>n   end) <s>nend","text":"   ","id":17,"calculate":false},{"id":32,"text":"Vin","need":[999]}]},{"id":18,"text":"   level page. This text is not displayed. To copy this entire page with the command <s>"copy all<s>", to create a new level.","answers":[{"comment":false,"lua_do":"function lua_do()<s>nmoves = moves <plus> 2<s>nlocal gr = canvas.parent<s>n<s>n<s>nif not bonus_shadow then<s>nbonus_shadow = true<s>ngr[gr.numChildren].text = <s>"  Get more 2 move and the ability <s><s><s>"Heat signature<s><s><s>"<s>"<s>nelseif not bonus_fingerprint then<s>nbonus_fingerprint = true<s>ngr[gr.numChildren].text = <s>"  Get more 3 turn<s>"<s>nelse<s>nmoves = moves <plus> 1<s>nend<s>n<s>nif update_moves_img then update_moves_img() <s>nend<s>nend","text":"Add 2 turn and the ability to activate <s>"Presentiment<s>"","need":[9999],"no_transition":true,"authorsAd":"","bg_color":[0.97,0.79,0.78],"super_calculate":false,"calculate":false,"id":18},{"id":4,"text":"Go to the page with the engine wound (only for programmers or when updating the engine according to instructions)","need":[9999]},{"super_calculate":false,"id":8,"text":"Point the following answers to the pages of defeat and victory. Do not change their text! Do not remove the impossible condition!","need":[9999],"calculate":true},{"super_calculate":false,"id":20,"calculate":false,"need":[9999],"text":"Victory_page"},{"super_calculate":false,"id":58,"calculate":false,"need":[9999],"text":"Lose_page"},{"super_calculate":false,"id":8,"text":"Change the links to the pictures for the following responses to customize the appearance level. Do not change the text of the responses!","need":[9999],"calculate":true},{"id":17,"text":"bg stretch","url":"http://188.120.236.127/memories/restoran/002-bg.jpg"},{"id":3,"text":"table","url":"http://188.120.236.127/memories/restoran/001-table.png"},{"id":3,"text":"fingerprint","url":"http://188.120.236.127/memories/veterinar/fingerprint2.png"},{"super_calculate":true,"id":4,"calculate":false,"run":[4],"text":"Run with the engine"},{"comment":false,"super_calculate":true,"id":18,"text":"   ","lua_do":"function lua_do()<s>n   local img = display.newImage (<s>"http://188.120.236.127/memories/restoran/krest.png<s>") <s>n   canvas.parent:insert(img) <s>n   img.x = display.contentWidth*0.9 <s>n   img.y = display.contentWidth*0.05<s>n   img.xScale = display.contentWidth*0.08/img.width <s>n   img.yScale = img.xScale<s>n   img:addEventListener (<s>"tap<s>", function()<s>n      dialog({header = <s>"Exit the menu<s>", text = <s>"Are you sure you want to give up and not to pass the current level?<s>", answers = {<s>n      {text = <s>"Yes, exit from the level<s>", pressListener = function() <s>n      g.fullscreen = 1<s>n      showPage {id = 2, transition = <s>"instant<s>"}<s>n      hideDialog() end}, <s>n      {text = <s>"No, continue the game<s>", pressListener = function() <s>n      hideDialog() end}<s>n      }})<s>n   end) <s>nend","calculate":false}]},{"id":19,"text":"level page. This text is not displayed. To copy this entire page with the command <s>"copy all<s>", to create a new level.","answers":[{"comment":false,"lua_do":"function lua_do()<s>nmoves = moves <plus> 2<s>nlocal gr = canvas.parent<s>n<s>n<s>nif not bonus_shadow then<s>nbonus_shadow = true<s>ngr[gr.numChildren].text = <s>"  Get more 2 move and the ability <s><s><s>"Heat signature<s><s><s>"<s>"<s>nelseif not bonus_fingerprint then<s>nbonus_fingerprint = true<s>ngr[gr.numChildren].text = <s>"  Get more 3 turn<s>"<s>nelse<s>nmoves = moves <plus> 1<s>nend<s>n<s>nif update_moves_img then update_moves_img() <s>nend<s>nend","text":"Add 2 turn and the ability to activate <s>"Presentiment<s>"","need":[999],"no_transition":true,"authorsAd":"","bg_color":[0.97,0.79,0.78],"super_calculate":false,"calculate":false,"id":19},{"id":4,"text":"Go to the page with the engine wound (only for programmers or when updating the engine according to instructions)","need":[9999]},{"super_calculate":false,"id":8,"text":"Point the following answers to the pages of defeat and victory. Do not change their text! Do not remove the impossible condition!","need":[9999],"calculate":true},{"super_calculate":false,"id":45,"calculate":false,"need":[9999],"text":"Victory_page"},{"super_calculate":false,"id":58,"calculate":false,"need":[9999],"text":"Lose_page"},{"super_calculate":false,"id":8,"text":"Change the links to the pictures for the following responses to customize the appearance level. Do not change the text of the responses!","need":[9999],"calculate":true},{"id":17,"text":"bg stretch","url":"http://188.120.236.127/memories/restoran/002-bg.jpg"},{"id":3,"text":"table","url":"http://188.120.236.127/memories/restoran/001-table.png"},{"id":3,"text":"fingerprint","url":"http://188.120.236.127/memories/veterinar/fingerprint2.png"},{"super_calculate":true,"id":4,"calculate":false,"run":[4],"text":"Run with the engine"},{"comment":false,"super_calculate":true,"id":19,"text":"   ","lua_do":"function lua_do()<s>n   local img = display.newImage (<s>"http://188.120.236.127/memories/restoran/krest.png<s>") <s>n   canvas.parent:insert(img) <s>n   img.x = display.contentWidth*0.9 <s>n   img.y = display.contentWidth*0.05<s>n   img.xScale = display.contentWidth*0.08/img.width <s>n   img.yScale = img.xScale<s>n   img:addEventListener (<s>"tap<s>", function()<s>n      dialog({header = <s>"Exit the menu<s>", text = <s>"Are you sure you want to give up and not to pass the current level?<s>", answers = {<s>n      {text = <s>"Yes, exit from the level<s>", pressListener = function() <s>n      g.fullscreen = 1<s>n      showPage {id = 2, transition = <s>"instant<s>"}<s>n      hideDialog() end}, <s>n      {text = <s>"No, continue the game<s>", pressListener = function() <s>n      hideDialog() end}<s>n      }})<s>n   end) <s>nend","calculate":false}]},{"id":20,"text":"       ","answers":[{"lua_do":"function lua_do()<s>n   g.fullscreen = 1<s>n<s>n nextNext = function() <s>n   local n = 2<s>n   local prev = g.previous_id<s>n   stepLevel = stepLevel <plus> 1<s>n   hard = hard <plus> 0.04<s>n   if hard > 1 then hard = 1 end<s>n<s>n   chains = {} <s>n   timer.performWithDelay (1000, function()<s>n   if prev == 17 then<s>n      if lvl == 1 then chains = {} <s>n      elseif lvl == 2 then chains = {1}<s>n      else<s>n         if pick2 > 0 then<s>n            chains = chainTab[pick2] <s>n         end<s>n      end<s>n      showPage {id = 18} <s>n   elseif prev == 18 then<s>n      if lvl == 1 then chains = {} <s>n      elseif lvl == 2 then chains = {1}<s>n      else<s>n         if pick3 > 0 then<s>n            chains = chainTab[pick3] <s>n         end<s>n      end<s>n      showPage {id = 19}<s>n   else <s>n      if showAd then<s>n         showAd(<s>"interstitial<s>", <s>n         function() <s>n            showPage({id = 45}) end, <s>n         function() <s>n            showPage({id = 45}) end)<s>n      else<s>n         showPage({id = 45})<s>n      end<s>n   end<s>n   end) <s>n end<s>nend","comment":false,"super_calculate":false,"id":20,"calculate":true,"text":"   ","no_transition":false},{"lua_if":"function lua_if()<s>nreturn pullWin1<s>nend","super_calculate":false,"lua_do":"function lua_do()<s>n   local cardSize = display.contentWidth/2.2<s>n<s>n   card11 = display.newImage (imageTab [pullWin1[1]])<s>n      card11.xScale = (cardSize) / math.max (card11.height, card11.width) / 1.8<s>n<s>t    card11.yScale = (cardSize) / math.max (card11.height, card11.width) / 1.8<s>n      card11.alpha = 0.75<s>n      card11.x = display.contentWidth / 5<s>n      card11.y = display.contentHeight / 2.35<s>n<s>n      card12 = display.newImage (imageTab [pullWin1[2]])<s>n      card12.xScale = (cardSize) / math.max (card12.height, card12.width) / 1.8<s>n<s>t    card12.yScale = (cardSize) / math.max (card12.height, card12.width) / 1.8<s>n      card12.alpha = 0.75<s>n      card12.x = display.contentCenterX <s>n      card12.y = display.contentHeight / 2.35<s>n<s>n      card13 = display.newImage (imageTab [pullWin1[3]])<s>n      card13.xScale = (cardSize) / math.max (card13.height, card13.width) / 1.8<s>n<s>t    card13.yScale = (cardSize) / math.max (card13.height, card13.width) /1.8<s>n      card13.alpha = 0.75<s>n      card13.x = display.contentWidth - (display.contentWidth / 5)<s>n      card13.y = display.contentHeight / 2.35<s>nend","calculate":true,"id":20,"text":"    a shelf 2"},{"lua_if":"function lua_if()<s>nreturn pullWin2<s>nend","super_calculate":false,"lua_do":"function lua_do()<s>n   local cardSize = display.contentWidth/2.2<s>n<s>n   card21 = display.newImage (imageTab [pullWin2[1]])<s>n      card21.xScale = (cardSize) / math.max (card21.height, card21.width) / 1.8<s>n<s>t    card21.yScale = (cardSize) / math.max (card21.height, card21.width) / 1.8<s>n      card21.alpha = 0.75<s>n      card21.x = display.contentWidth / 5<s>n      card21.y = display.contentHeight / 1.55<s>n<s>n      card22 = display.newImage (imageTab [pullWin2[2]])<s>n      card22.xScale = (cardSize) / math.max (card22.height, card22.width) / 1.8<s>n<s>t    card22.yScale = (cardSize) / math.max (card22.height, card22.width) / 1.8<s>n      card22.alpha = 0.75<s>n      card22.x = display.contentCenterX <s>n      card22.y = display.contentHeight / 1.55<s>n<s>n      card23 = display.newImage (imageTab [pullWin2[3]])<s>n      card23.xScale = (cardSize) / math.max (card23.height, card23.width) / 1.8<s>n<s>t    card23.yScale = (cardSize) / math.max (card23.height, card23.width) /1.8<s>n      card23.alpha = 0.75<s>n      card23.x = display.contentWidth - (display.contentWidth / 5)<s>n      card23.y = display.contentHeight / 1.55<s>nend","calculate":true,"text":"    a shelf 3","id":20},{"lua_if":"function lua_if()<s>nreturn pullWin3<s>nend","super_calculate":false,"lua_do":"function lua_do()<s>n   local cardSize = display.contentWidth/2.2<s>n<s>n   card31 = display.newImage (imageTab [pullWin3[1]])<s>n      card31.xScale = (cardSize) / math.max (card31.height, card31.width) / 1.8<s>n<s>t    card31.yScale = (cardSize) / math.max (card31.height, card31.width) / 1.8<s>n      card31.alpha = 0.75<s>n      card31.x = display.contentWidth / 5<s>n      card31.y = display.contentHeight / 1.15<s>n<s>n      card32 = display.newImage (imageTab [pullWin3[2]])<s>n      card32.xScale = (cardSize) / math.max (card32.height, card32.width) / 1.8<s>n<s>t    card32.yScale = (cardSize) / math.max (card32.height, card32.width) / 1.8<s>n      card32.alpha = 0.75<s>n      card32.x = display.contentCenterX <s>n      card32.y = display.contentHeight / 1.15<s>n<s>n      card33 = display.newImage (imageTab [pullWin3[3]])<s>n      card33.xScale = (cardSize) / math.max (card33.height, card33.width) / 1.8<s>n<s>t    card33.yScale = (cardSize) / math.max (card33.height, card33.width) /1.8<s>n      card33.alpha = 0.75<s>n      card33.x = display.contentWidth - (display.contentWidth / 5)<s>n      card33.y = display.contentHeight / 1.15<s>nend","calculate":true,"text":"    a shelf 4","id":20},{"id":20,"text":"fridge stretch ","comment":false,"url":"http://188.120.236.127/memories/restoran/fridge11.jpg"},{"comment":false,"super_calculate":false,"id":20,"calculate":true,"lua_do":"function lua_do()<s>n   g.fullscreen = 1<s>n   local cardSize = display.contentWidth/2.2<s>n   local n = stepLevel<s>n<s>n   if n == 1 then<s>n      card1 = display.newImage (imageTab [cardTab[5]])<s>n      card1.xScale = (cardSize) / math.max(card1.height, card1.width)<s>n<s>t    card1.yScale = (cardSize) / math.max(card1.height, card1.width)<s>n      card1.alpha = 1<s>n      card1.x = display.contentCenterX<s>n      card1.y = display.contentCenterY<s>n<s>n      transition.to(card1, {<s>n<s>t<s>t<s>tx = display.contentWidth / 5,<s>n<s>t<s>t<s>ty = display.contentHeight / 4.6,<s>n<s>t<s>t<s>txScale = (cardSize) / math.max (card1.height, card1.width) / 1.8,<s>n<s>t<s>t<s>tyScale = (cardSize) / math.max (card1.height, card1.width) / 1.8,<s>n<s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>ttime = 2500,<s>n<s>t<s>t<s>tonComplete = function()<s>n          timer.performWithDelay (2500, nextNext()) <s>n       end}) <s>n<s>n<s>n   elseif n == 2 then<s>n      card1 = display.newImage (imageTab [cardTab[5]])<s>n      card1.xScale = (cardSize) / math.max (card1.height, card1.width) / 1.8<s>n<s>t    card1.yScale = (cardSize) / math.max (card1.height, card1.width) / 1.8<s>n      card1.alpha = 1<s>n      card1.x = display.contentWidth / 5<s>n      card1.y = display.contentHeight / 4.6<s>n<s>n      card2 = display.newImage (imageTab [cardTab[6]])<s>n      card2.xScale = (cardSize) / math.max(card2.height, card2.width)<s>n<s>t    card2.yScale = (cardSize) / math.max(card2.height, card2.width)<s>n      card2.alpha = 1<s>n      card2.x = display.contentCenterX<s>n      card2.y = display.contentCenterY <s>n<s>n      transition.to(card2, {<s>n<s>t<s>t<s>tx = display.contentCenterX,<s>n<s>t<s>t<s>ty = display.contentHeight / 4.6,<s>n<s>t<s>t  xScale = (cardSize) / math.max (card2.height, card2.width) / 1.8,<s>n<s>t<s>t<s>tyScale = (cardSize) / math.max (card2.height, card2.width) / 1.8,<s>n<s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>ttime = 2500,<s>n<s>t<s>t<s>tonComplete = function()<s>n          timer.performWithDelay (2500, nextNext()) <s>n       end}) <s>n<s>n<s>n   elseif n == 3 then<s>n      card1 = display.newImage (imageTab [cardTab[5]])<s>n      card1.xScale = (cardSize) / math.max (card1.height, card1.width) / 1.8<s>n<s>t    card1.yScale = (cardSize) / math.max (card1.height, card1.width) / 1.8<s>n      card1.alpha = 1<s>n      card1.x = display.contentWidth / 5<s>n      card1.y = display.contentHeight / 4.6<s>n<s>n      card2 = display.newImage (imageTab [cardTab[6]])<s>n      card2.xScale = (cardSize) / math.max (card2.height, card2.width) / 1.8<s>n<s>t    card2.yScale = (cardSize) / math.max (card2.height, card2.width) / 1.8<s>n      card2.alpha = 1<s>n      card2.x = display.contentCenterX <s>n      card2.y = display.contentHeight / 4.6<s>n<s>n      card3 = display.newImage (imageTab [cardTab[7]])<s>n      card3.xScale = (cardSize) / math.max(card3.height, card3.width)<s>n<s>t    card3.yScale = (cardSize) / math.max(card3.height, card3.width)<s>n      card3.alpha = 1<s>n      card3.x = display.contentCenterX<s>n      card3.y = display.contentCenterY <s>n<s>n      transition.to(card3, {<s>n<s>t<s>t<s>tx = display.contentWidth - (display.contentWidth / 5),<s>n<s>t<s>t<s>ty = display.contentHeight / 4.6,<s>n<s>t<s>t  xScale = (cardSize) / math.max (card3.height, card3.width) / 1.8,<s>n<s>t<s>t<s>tyScale = (cardSize) / math.max (card3.height, card3.width) / 1.8,<s>n<s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>ttime = 2500,<s>n<s>t<s>t<s>tonComplete = function()<s>n          timer.performWithDelay (2500, nextNext()) <s>n       end}) <s>n<s>n<s>n   end<s>n<s>nend","text":"   "}]},{"id":21,"text":" ... Pictures 21-30... ","answers":[{"id":21,"text":"21","url":"http://188.120.236.127/memories/restoran/cards/new_food/eggs.png"},{"id":21,"text":"22","url":"http://188.120.236.127/memories/restoran/cards/new_food/hotdog.png"},{"id":21,"text":"23","url":"http://188.120.236.127/memories/restoran/cards/new_food/ponchik.png"},{"id":21,"text":"24","url":"http://188.120.236.127/memories/restoran/cards/victory_cards/apple-pie.png"},{"id":21,"text":"25","url":"http://188.120.236.127/memories/restoran/cards/victory_cards/cofee-with-milk.png"},{"id":21,"text":"26","url":"http://188.120.236.127/memories/restoran/cards/victory_cards/summer-salad.png"},{"id":21,"text":"27","url":"http://188.120.236.127/memories/restoran/cards/victory_cards/buterbrod.png"},{"id":21,"text":"28","url":"http://188.120.236.127/memories/restoran/cards/victory_cards/egg-bacon.png"},{"id":21,"text":"29","url":"http://188.120.236.127/memories/restoran/cards/victory_cards/viennese-waffles.png"},{"id":21,"text":"30","url":"http://188.120.236.127/memories/restoran/cards/victory_cards/wafer-rolls-cream.png"}]},{"id":22,"text":"  ... Pictures 31-40... ","answers":[{"id":22,"text":"31","url":"http://188.120.236.127/memories/restoran/cards/victory_cards/cofee3-1.png"},{"id":22,"text":"32","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/bbq.png"},{"id":22,"text":"33","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake3.png"},{"id":22,"text":"34","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake10.png"},{"id":22,"text":"35","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cheese1.png"},{"id":22,"text":"36","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/crepes.png"},{"id":22,"text":"37","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/eggs.png"},{"id":22,"text":"38","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/hamb2.png"},{"id":22,"text":"39","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/pie.png"},{"id":22,"text":"40","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/ribs.png"}]},{"id":23,"text":"    ","answers":[{"id":23,"text":"1","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/ice.png"},{"id":23,"text":"2","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/macaroon.png"},{"id":23,"text":"3","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pasta1.png"},{"id":23,"text":"4","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pie1.png"},{"id":23,"text":"5","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/puding.png"},{"id":23,"text":"6","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pualia.png"},{"id":23,"text":"7","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/ratatui.png"},{"id":23,"text":"8","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/choco.png"},{"id":23,"text":"9","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/chicken1.png"},{"id":23,"text":"10","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/butterbroad.png"}]},{"id":24,"text":"... Cover chains... ","answers":[{"id":24,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/equip/microwave.png"},{"id":24,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/equip/mini-fridge.png"},{"id":24,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/equip/cooking-stove.png"},{"id":24,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/equip/dishwasher.png"},{"id":24,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/equip/cabinet.png"}]},{"id":25,"text":"Pictures 41-50  ","answers":[{"id":25,"text":"41","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/taco.png"},{"id":25,"text":"42","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/blin.png"},{"id":25,"text":"43","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake4.png"},{"id":25,"text":"44","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake11.png"},{"id":25,"text":"45","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/chicken.png"},{"id":25,"text":"46","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/croissant.png"},{"id":25,"text":"47","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/eggs1.png"},{"id":25,"text":"48","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/hotdog.png"},{"id":25,"text":"49","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/pizza.png"},{"id":25,"text":"50","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/salmon.png"}]},{"id":26,"text":"Pictures 51-60","answers":[{"id":26,"text":"51","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/toast.png"},{"id":26,"text":"52","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/bread.png"},{"id":26,"text":"53","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake5.png"},{"id":26,"text":"54","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake12.png"},{"id":26,"text":"55","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cookie.png"},{"id":26,"text":"56","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cupcake.png"},{"id":26,"text":"57","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/food.png"},{"id":26,"text":"58","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/hotdog2.png"},{"id":26,"text":"59","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/pizza1.png"},{"id":26,"text":"60","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/sandwich.png"}]},{"id":27,"text":"Pictures 61-70","answers":[{"id":27,"text":"61","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/waffle.png"},{"id":27,"text":"62","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/bread1.png"},{"id":27,"text":"63","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake6.png"},{"id":27,"text":"64","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake13.png"},{"id":27,"text":"65","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cookie1.png"},{"id":27,"text":"66","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/curry.png"},{"id":27,"text":"67","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/food1.png"},{"id":27,"text":"68","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/ice.png"},{"id":27,"text":"69","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/platter.png"},{"id":27,"text":"70","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/sandwich1.png"}]},{"id":28,"text":"Pictures 71-80 ","answers":[{"id":28,"text":"71","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/bread2.png"},{"id":28,"text":"72","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake7.png"},{"id":28,"text":"73","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake14.png"},{"id":28,"text":"74","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cookie2.png"},{"id":28,"text":"75","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/desserts.png"},{"id":28,"text":"76","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/food2.png"},{"id":28,"text":"77","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/jam.png"},{"id":28,"text":"78","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/quesadilla.png"},{"id":28,"text":"79","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/sandwich2.png"},{"id":28,"text":"80","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake.png"}]},{"id":29,"text":"Pictures 81-90  ","answers":[{"id":29,"text":"81","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake8.png"},{"id":29,"text":"82","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/candy.png"},{"id":29,"text":"83","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cream-horn.png"},{"id":29,"text":"84","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/dish.png"},{"id":29,"text":"85","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/hamb.png"},{"id":29,"text":"86","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/pancakes.png"},{"id":29,"text":"87","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/ramen.png"},{"id":29,"text":"88","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/strawberry.png"},{"id":29,"text":"89","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake2.png"},{"id":29,"text":"90","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake9.png"}]},{"id":30,"text":"Pictures 91-100","answers":[{"id":30,"text":"91","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cheese.png"},{"id":30,"text":"92","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cream-horn1.png"},{"id":30,"text":"93","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/donut1.png"},{"id":30,"text":"94","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/hamb1.png"},{"id":30,"text":"95","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/peanut.png"},{"id":30,"text":"96","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/ramen1.png"},{"id":30,"text":"97","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack2/sushi.png"}]},{"id":31,"text":".. System images... ","answers":[{"id":31,"text":"krest","comment":false,"url":"http://188.120.236.127/memories/restoran/krest.png"},{"id":31,"text":"card_inside","comment":false,"url":"http://188.120.236.127/memories/restoran/001-card-inside.png"},{"id":31,"text":"full_move","comment":false,"url":"http://188.120.236.127/memories/restoran/full_move.png"},{"id":31,"text":"empty_move","comment":false,"url":"http://188.120.236.127/memories/restoran/empty_move.png"},{"id":31,"text":"rubashka","comment":false,"url":"http://188.120.236.127/memories/restoran/001-rubashka.png"},{"id":31,"text":"cash","comment":false,"url":"http://188.120.236.127/memories/restoran/cash.png"},{"id":31,"text":"cash","url":"http://188.120.236.127/memories/restoran/money.png"},{"id":31,"text":"victory","url":"http://188.120.236.127/memories/restoran/victory.jpg"},{"id":31,"text":"Specify commands for pictures","right_answer":true,"url":"http://188.120.236.127/memories/restoran/rightArrow.png"},{"id":31,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/leftArrow.png","left_answer":true}]},{"id":32,"text":"   ","answers":[{"super_calculate":false,"id":32,"calculate":true,"lua_do":"function lua_do()<s>n   g.fullscreen = 1<s>n   local cardSize = display.contentWidth/2.2<s>n   local n = #cardTo<s>n<s>n   if n == 1 then<s>n      card1 = display.newImage (imageTab [cardTo[1]])<s>n      card1.xScale = (cardSize) / math.max(card1.height, card1.width)<s>n<s>t    card1.yScale = (cardSize) / math.max(card1.height, card1.width)<s>n      card1.alpha = 1<s>n      card1.x = display.contentCenterX<s>n      card1.y = display.contentCenterY<s>n<s>n      transition.to(card1, {<s>n<s>t<s>t<s>tx = display.contentWidth / 5,<s>n<s>t<s>t<s>ty = display.contentHeight / 4.2,<s>n<s>t<s>t<s>txScale = (cardSize) / math.max (card1.height, card1.width) / 1.8,<s>n<s>t<s>t<s>tyScale = (cardSize) / math.max (card1.height, card1.width) / 1.8,<s>n<s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>ttime = 2500,<s>n<s>t<s>t<s>tonComplete = function() <s>n       end}) <s>n<s>n<s>n   elseif n == 2 then<s>n      card1 = display.newImage (imageTab [cardTo[1]])<s>n      card1.xScale = (cardSize) / math.max (card1.height, card1.width) / 1.8<s>n<s>t    card1.yScale = (cardSize) / math.max (card1.height, card1.width) / 1.8<s>n      card1.alpha = 1<s>n      card1.x = display.contentWidth / 5<s>n      card1.y = display.contentHeight / 4.2<s>n<s>n      card2 = display.newImage (imageTab [cardTo[2]])<s>n      card2.xScale = (cardSize) / math.max(card2.height, card2.width)<s>n<s>t    card2.yScale = (cardSize) / math.max(card2.height, card2.width)<s>n      card2.alpha = 1<s>n      card2.x = display.contentCenterX<s>n      card2.y = display.contentCenterY <s>n<s>n      transition.to(card2, {<s>n<s>t<s>t<s>tx = display.contentCenterX,<s>n<s>t<s>t<s>ty = display.contentHeight / 4.2,<s>n<s>t<s>t  xScale = (cardSize) / math.max (card2.height, card2.width) / 1.8,<s>n<s>t<s>t<s>tyScale = (cardSize) / math.max (card2.height, card2.width) / 1.8,<s>n<s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>ttime = 2500,<s>n<s>t<s>t<s>tonComplete = function() <s>n       end}) <s>n<s>n<s>n   elseif n == 3 then<s>n      card1 = display.newImage (imageTab [cardTo[1]])<s>n      card1.xScale = (cardSize) / math.max (card1.height, card1.width) / 1.8<s>n<s>t    card1.yScale = (cardSize) / math.max (card1.height, card1.width) / 1.8<s>n      card1.alpha = 1<s>n      card1.x = display.contentWidth / 5<s>n      card1.y = display.contentHeight / 4.2<s>n<s>n      card2 = display.newImage (imageTab [cardTo[2]])<s>n      card2.xScale = (cardSize) / math.max (card2.height, card2.width) / 1.8<s>n<s>t    card2.yScale = (cardSize) / math.max (card2.height, card2.width) / 1.8<s>n      card2.alpha = 1<s>n      card2.x = display.contentCenterX <s>n      card2.y = display.contentHeight / 4.2<s>n<s>n      card3 = display.newImage (imageTab [cardTo[3]])<s>n      card3.xScale = (cardSize) / math.max(card3.height, card3.width)<s>n<s>t    card3.yScale = (cardSize) / math.max(card3.height, card3.width)<s>n      card3.alpha = 1<s>n      card3.x = display.contentCenterX<s>n      card3.y = display.contentCenterY <s>n<s>n      transition.to(card3, {<s>n<s>t<s>t<s>tx = display.contentWidth - (display.contentWidth / 5),<s>n<s>t<s>t<s>ty = display.contentHeight / 4.2,<s>n<s>t<s>t  xScale = (cardSize) / math.max (card3.height, card3.width) / 1.8,<s>n<s>t<s>t<s>tyScale = (cardSize) / math.max (card3.height, card3.width) / 1.8,<s>n<s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>ttime = 2500,<s>n<s>t<s>t<s>tonComplete = function() <s>n       end}) <s>n<s>n<s>n   end<s>n<s>nend","text":"   "},{"id":32,"text":"fridge","url":"http://188.120.236.127/memories/restoran/fridge11.jpg"}]},{"id":33,"text":"     ","answers":[{"id":33,"text":"1","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/cake1.png"},{"id":33,"text":"2","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/cookie.png"},{"id":33,"text":"3","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pasta.png"},{"id":33,"text":"4","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pie2.png"},{"id":33,"text":"5","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pizza1.png"},{"id":33,"text":"6","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pualia1.png"},{"id":33,"text":"7","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/sandwich1.png"},{"id":33,"text":"8","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack3/tefftels.png"}]},{"id":34,"text":"    ","answers":[{"id":34,"text":"white, stretch ","comment":false,"url":"http://188.120.236.127/memories/restoran/white.jpg"},{"id":34,"text":"newCafe2","url":"http://188.120.236.127/memories/restoran/newCafe2.jpg"},{"comment":false,"super_calculate":true,"lua_do":"function lua_do()<s>n   cafeWasOpenned = cafeWasOpenned or 2<s>n   if cafeWasOpenned < 2 then <s>n      cafeWasOpenned = 2<s>n   end<s>n<s>n   if not openCafe2 then<s>n      openCafe2 = {}<s>n      for i = 1, 32 do<s>n         table.insert (openCafe2, 0) <s>n      end<s>n   end<s>n   <s>n   if images then<s>n   images.newCafe2.xScale = display.contentWidth / images.newCafe2.width<s>n   images.newCafe2.yScale = ((display.contentHeight / images.newCafe2.height) / 18) * 16<s>n   images.newCafe2.y = display.contentCenterY <plus> (display.contentHeight / 18)<s>n   end<s>nend","text":"   ","id":34,"calculate":false},{"comment":false,"super_calculate":true,"lua_do":"function lua_do()<s>n   local back = {} <s>n   local myText = {} <s>n   local nx = 5<s>n   local ni = 1<s>n<s>n   myxScale = display.contentWidth / 8<s>n   myyScale = display.contentHeight / 18<s>n<s>n   for i = 1,32 do<s>n      if i > 24 then nx, ni = -3, i - 24<s>n      elseif i > 16 then  nx, ni= -1, i - 16<s>n      elseif i > 8 then nx, ni= 1, i - 8<s>n      else nx, ni = 3, i<s>n      end<s>n<s>n      if openCafe2[i] == 0 then<s>n         back[i] = display.newImage (oldCafeImages2[i])<s>n         back[i].xScale = myxScale * 2 / back[i].width<s>n         back[i].yScale = myyScale * 2 / back[i].height<s>n         back[i].x = display.contentCenterX - (myxScale * nx) <s>n         back[i].y = display.contentCenterY - (myyScale * (8-(ni*2))) <s>n<s>n         back[i]:addEventListener (<s>"tap<s>", function(event)<s>n            if money >= 200 then<s>n               money = money - 200<s>n               openCafe2[i] = 1<s>n               myMoney:removeSelf() <s>n               myTex() <s>n               message (<s>"Congratulations! Part of the restaurant has been renovated.<s>") <s>n               transition.to (back[i], {alpha = 0, time = 500}) <s>n            else message (<s>"Not enough money for repairs. Need more <s>" .. (200 - money)..<s>".<s>") <s>n            end<s>n         end) <s>n      end<s>n<s>n   end<s>n<s>n   myTex = function() <s>n   options = { text = <s>"Click on the location for repair. Price: 200. Your money: <s>".. money.. <s>".<s>" , x = 0, y = -display.pixelHeight * 0.45, width = display.contentWidth * 0.75, font =  native.systemFont, fontSize = display.contentWidth / 23, align = <s>"center<s>" } <s>n   myMoney = display.newText(options)<s>n   myMoney:setFillColor (0,0,0)<s>n   canvas:insert (myMoney) <s>n   end<s>n   myTex() <s>n<s>nend","text":"1","id":34,"calculate":false},{"comment":false,"super_calculate":true,"id":34,"text":"   ","calculate":false,"lua_do":"function lua_do()<s>n   local img = display.newImage (<s>"http://188.120.236.127/memories/restoran/krest.png<s>") <s>n   canvas.parent:insert(img)<s>n   img:setFillColor (1,1,1) <s>n   img.x = display.contentWidth*0.9 <s>n   img.y = display.contentWidth*0.04<s>n   img.xScale = display.contentWidth*0.08/img.width <s>n   img.yScale = img.xScale<s>n   img:addEventListener (<s>"tap<s>", function()<s>n      g.fullscreen = 1<s>n      showPage {id = 2, transition = <s>"instant<s>"}<s>n   end) <s>nend"},{"comment":false,"super_calculate":true,"id":34,"text":"   ","calculate":false,"lua_do":"function lua_do()<s>n   local img = display.newImage (<s>"http://188.120.236.127/memories/restoran/leftArrow.png<s>") <s>n   canvas.parent:insert(img)<s>n   img:setFillColor (1,1,1) <s>n   img.x = display.contentWidth*0.05<s>n   img.y = display.contentHeight*0.07<s>n   img.xScale = display.contentWidth*0.07/img.width <s>n   img.yScale = img.xScale<s>n   img:addEventListener (<s>"tap<s>", function()<s>n      showPage {id = 11, transition = <s>"instant<s>"}<s>n   end) <s>nend"}]},{"id":35,"text":"... oldCafe2...  ","answers":[{"id":35,"text":"1","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_01.jpg"},{"id":35,"text":"2","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_02.jpg"},{"id":35,"text":"3","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_03.jpg"},{"id":35,"text":"4","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_04.jpg"},{"id":35,"text":"5","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_05.jpg"},{"id":35,"text":"6","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_06.jpg"},{"id":35,"text":"7","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_07.jpg"},{"id":35,"text":"8","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_08.jpg"},{"id":35,"text":"9","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_09.jpg"},{"id":35,"text":"10","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_10.jpg"},{"id":35,"text":"11","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_11.jpg"},{"id":35,"text":"12","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_12.jpg"},{"id":35,"text":"13","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_13.jpg"},{"id":35,"text":"14","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_14.jpg"},{"id":35,"text":"15","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_15.jpg"},{"id":35,"text":"16","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_16.jpg"},{"id":35,"text":"17","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_17.jpg"},{"id":35,"text":"18","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_18.jpg"},{"id":35,"text":"19","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_19.jpg"},{"id":35,"text":"20","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_20.jpg"},{"id":35,"text":"21","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_21.jpg"},{"id":35,"text":"22","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_22.jpg"},{"id":35,"text":"23","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_23.jpg"},{"id":35,"text":"24","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_24.jpg"},{"id":35,"text":"25","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_25.jpg"},{"id":35,"text":"26","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_26.jpg"},{"id":35,"text":"27","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_27.jpg"},{"id":35,"text":"28","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_28.jpg"},{"id":35,"text":"29","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_29.jpg"},{"id":35,"text":"30","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_30.jpg"},{"id":35,"text":"31","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_31.jpg"},{"id":35,"text":"32","url":"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_32.jpg"}]},{"id":36,"text":"     ","answers":[{"id":36,"text":"1","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/biscuit.png"},{"id":36,"text":"2","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/breakfast.png"},{"id":36,"text":"3","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake10.png"},{"id":36,"text":"4","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cheese.png"},{"id":36,"text":"5","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/choco.png"},{"id":36,"text":"6","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cream.png"},{"id":36,"text":"7","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/fruit.png"},{"id":36,"text":"8","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/ice.png"},{"id":36,"text":"9","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/rice.png"},{"id":36,"text":"10","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/watermellow.png"},{"id":36,"text":"11","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/breakfast1.png"},{"id":36,"text":"12","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake1.png"},{"id":36,"text":"13","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake7.png"},{"id":36,"text":"14","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cheese1.png"},{"id":36,"text":"15","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/combo.png"},{"id":36,"text":"16","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/ice1.png"},{"id":36,"text":"17","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/meat.png"},{"id":36,"text":"18","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/pizza1.png"},{"id":36,"text":"19","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/rolls.png"},{"id":36,"text":"20","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/soup.png"}]},{"id":37,"text":"   ","answers":[{"id":37,"text":"1","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/blackberry.png"},{"id":37,"text":"2","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake.png"},{"id":37,"text":"3","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake5.png"},{"id":37,"text":"4","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake12.png"},{"id":37,"text":"5","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/chips.png"},{"id":37,"text":"6","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/choco1.png"},{"id":37,"text":"7","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/fish.png"},{"id":37,"text":"8","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/hamb.png"},{"id":37,"text":"9","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/jam1.png"},{"id":37,"text":"10","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/soup2.png"},{"id":37,"text":"11","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/breakfast2.png"},{"id":37,"text":"12","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake2.png"},{"id":37,"text":"13","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake9.png"},{"id":37,"text":"14","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/chicken.png"},{"id":37,"text":"15","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/free.png"},{"id":37,"text":"16","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/ice2.png"},{"id":37,"text":"17","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/jelly.png"},{"id":37,"text":"18","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/potato.png"},{"id":37,"text":"19","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/soup3.png"},{"id":37,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/tako.png"}]},{"id":38,"text":"     ","answers":[{"id":38,"text":"1","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/breakfast3.png"},{"id":38,"text":"2","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake3.png"},{"id":38,"text":"3","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake11.png"},{"id":38,"text":"4","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/eggs.png"},{"id":38,"text":"5","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/honey.png"},{"id":38,"text":"6","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/ice3.png"},{"id":38,"text":"7","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/meat1.png"},{"id":38,"text":"8","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/pizza.png"},{"id":38,"text":"9","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/rice1.png"},{"id":38,"text":"10","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/soup6.png"},{"id":38,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake4.png"},{"id":38,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake6.png"},{"id":38,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/candy1.png"},{"id":38,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/fistashki.png"},{"id":38,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/ice5.png"},{"id":38,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/jam.png"},{"id":38,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/meat2.png"},{"id":38,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/potato1.png"},{"id":38,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/soup7.png"},{"id":38,"text":"Specify commands for pictures","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/waffles.png"}]},{"id":39,"text":"    ","answers":[{"id":39,"text":"1","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/breakfast4.png"},{"id":39,"text":"2","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake8.png"},{"id":39,"text":"3","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake13.png"},{"id":39,"text":"4","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/candy.png"},{"id":39,"text":"5","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cockie.png"},{"id":39,"text":"6","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/free1.png"},{"id":39,"text":"7","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/ice4.png"},{"id":39,"text":"8","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/jelly1.png"},{"id":39,"text":"9","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/meat3.png"},{"id":39,"text":"10","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/second.png"},{"id":39,"text":"11","url":"http://188.120.236.127/memories/restoran/cards/new_food/pack4/soup8.png"}]},{"id":40,"text":"","answers":[]},{"id":41,"text":"","answers":[]},{"id":42,"text":"","answers":[]},{"id":43,"text":"","answers":[]},{"id":44,"text":"","answers":[]},{"id":45,"text":"   Congratulations! You have passed the level.","answers":[{"id":45,"text":"   ","comment":true},{"bgAnswerImage":["http://188.120.236.127/memories/restoran/button2.jpg"],"middle_answer":true,"text":"Continue","id":2,"lua_do":"function lua_do()<s>n   g.fullscreen = 1<s>n   lvl = (lvl <plus> 1) or 1<s>n   if moves > 3 and max_moves > 13 then <s>n      max_moves = max_moves - 1<s>n   end<s>n   if pullWin2 then pullWin3 = pullWin2 end<s>n   if pullWin1 then pullWin2 = pullWin1 end<s>n   pullWin1 = { cardTab[5], cardTab[6], cardTab[7] } <s>n<s>n   randCard = randCard or 0<s>n   for i = 1,3 do<s>n      table.remove (cardTab, 1)<s>n      num = cardTab[6] <plus> 1<s>n      if num > (#imageTab) then<s>n         randCard = 1 end<s>n      if randCard == 1 then<s>n         local a1 = 0<s>n<s>t          while a1 < 6 do<s>n            a1 = 0<s>n<s>t<s>t        num = math.random(#imageTab)<s>n            for i = 1, 6 do<s>n               if cardTab[i] ~= num then<s>n               a1 = a1 <plus> 1 end<s>n            end<s>n         table.insert(cardTab, num) <s>n         end<s>n      else<s>n         table.insert (cardTab, num) <s>n      end<s>n   end<s>n<s>n   if math.random (100) < 70 then<s>n      pick1 = math.random (#chainTab)<s>n      else pick1 = 0 end<s>n   if math.random (100) < 70 then<s>n      pick2 = math.random (#chainTab)<s>n      else pick2 = 0 end<s>n   if math.random (100) < 70 then<s>n      pick3 = math.random (#chainTab)<s>n      else pick3 = 0 end<s>n   chainLvl = math.random (#randomChainTab)<s>n   <s>n   winMoney = 100 <plus> (moves * 10)<s>n   money = money or 0<s>n   money = money <plus> winMoney <s>nend"},{"bgAnswerImage":["http://188.120.236.127/memories/restoran/redbutton.png"],"lua_text":"function lua_text()<s>nwinMoney = 100 <plus> (moves * 10)<s>nreturn winMoney<s>nend","middle_answer":true,"id":45,"text":"100","comment":true,"no_transition":true},{"super_calculate":false,"id":45,"calculate":true,"text":"A new response. enter the text","var_set":["global fullscreen",1]},{"id":45,"text":"victory stretch ","url":"http://188.120.236.127/memories/restoran/victory.jpg"},{"super_calculate":false,"lua_do":"function lua_do()<s>n   winMoney = winMoney or 100<s>n   local cashSize = display.contentWidth / 3<s>n<s>n   local cash = display.newImage (<s>"http://188.120.236.127/memories/restoran/money.png<s>")<s>n   local cash1 = display.newImage (<s>"http://188.120.236.127/memories/restoran/money.png<s>")<s>n   local cash2 = display.newImage (<s>"http://188.120.236.127/memories/restoran/money.png<s>")<s>n   local cash3 = display.newImage (<s>"http://188.120.236.127/memories/restoran/money.png<s>")<s>n   local cash4 = display.newImage (<s>"http://188.120.236.127/memories/restoran/money.png<s>")<s>n<s>n   cash.xScale = cashSize / math.max (cash.width, cash.height) <s>n   cash.yScale = cash.xScale <s>n   cash1.xScale = cash.xScale<s>n   cash1.yScale = cash.xScale <s>n   cash2.xScale = cash.xScale<s>n   cash2.yScale = cash.xScale <s>n   cash3.xScale = cash.xScale<s>n   cash3.yScale = cash.xScale <s>n   cash4.xScale = cash.xScale<s>n   cash4.yScale = cash.xScale <s>n<s>n   cash.x = display.contentCenterX<s>n   cash.y = display.contentCenterY * 1.28<s>n   cash1.x = display.contentCenterX<s>n   cash1.y = display.contentCenterY * 1.27<s>n   cash2.x = display.contentCenterX<s>n   cash2.y = display.contentCenterY * 1.26<s>n   cash3.x = display.contentCenterX<s>n   cash3.y = display.contentCenterY * 1.25<s>n   cash4.x = display.contentCenterX<s>n   cash4.y = display.contentCenterY * 1.24<s>n<s>n   tapMoney = function() <s>n         transition.to(cash4, {<s>n<s>t<s>t<s>t  x = display.contentCenterX,<s>n<s>t      <s>ty = display.contentCenterY * 1.07,<s>n   <s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n   <s>t<s>t<s>ttime = 300, delay = 0,<s>n<s>t   <s>t<s>tonComplete = function()<s>n         end})<s>n            transition.to(cash4, {<s>n            x = display.contentCenterX, <s>n            y = display.contentCenterY * 1.24, <s>n<s>t<s>t<s>t     transition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>t     time = 400, delay = 300, <s>n            onComplete = function()<s>n            end}) <s>n<s>n         transition.to(cash3, {<s>n<s>t<s>t<s>t  x = display.contentCenterX,<s>n<s>t      <s>ty = display.contentCenterY * 1.09,<s>n   <s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n   <s>t<s>t<s>ttime = 300, delay = 0,<s>n<s>t   <s>t<s>tonComplete = function()<s>n         end})<s>n            transition.to(cash3, {<s>n            x = display.contentCenterX, <s>n            y = display.contentCenterY * 1.25, <s>n<s>t<s>t<s>t     transition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>t     time = 400, delay = 300, <s>n            onComplete = function()<s>n            end}) <s>n<s>n         transition.to(cash2, {<s>n<s>t<s>t<s>t  x = display.contentCenterX,<s>n<s>t      <s>ty = display.contentCenterY * 1.11,<s>n   <s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n   <s>t<s>t<s>ttime = 300, delay = 0,<s>n<s>t   <s>t<s>tonComplete = function()<s>n         end})<s>n            transition.to(cash2, {<s>n            x = display.contentCenterX, <s>n            y = display.contentCenterY * 1.26, <s>n<s>t<s>t<s>t     transition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>t     time = 400, delay = 300, <s>n            onComplete = function()<s>n            end}) <s>n<s>n         transition.to(cash1, {<s>n<s>t<s>t<s>t  x = display.contentCenterX,<s>n<s>t      <s>ty = display.contentCenterY * 1.13,<s>n   <s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n   <s>t<s>t<s>ttime = 300, delay = 0,<s>n<s>t   <s>t<s>tonComplete = function()<s>n         end})<s>n            transition.to(cash1, {<s>n            x = display.contentCenterX, <s>n            y = display.contentCenterY * 1.27, <s>n<s>t<s>t<s>t     transition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>t     time = 400, delay = 300, <s>n            onComplete = function()<s>n            end}) <s>n<s>n         transition.to(cash, {<s>n<s>t<s>t<s>t  x = display.contentCenterX,<s>n<s>t      <s>ty = display.contentCenterY * 1.15,<s>n   <s>t<s>t<s>ttransition = easing.inOutQuad,<s>t   <s>n   <s>t<s>t<s>ttime = 300, delay = 0,<s>n<s>t   <s>t<s>tonComplete = function()<s>n         end})<s>n            transition.to(cash, {<s>n            x = display.contentCenterX, <s>n            y = display.contentCenterY * 1.28, <s>n<s>t<s>t<s>t     transition = easing.inOutQuad,<s>t   <s>n<s>t<s>t<s>t     time = 400, delay = 300, <s>n            onComplete = function()<s>n            end}) <s>n   end<s>n<s>n   timer.performWithDelay (2000, function (event)<s>n      if (g.userInQuest == 1)<s>n      then<s>n         tapMoney()<s>n      else<s>n          timer.cancel(event.source)<s>n      end<s>n  end, 0)<s>nend","text":"   ","id":45,"calculate":true}]},{"id":46,"text":"","answers":[]},{"id":47,"text":"","answers":[]},{"id":48,"text":"","answers":[]},{"id":49,"text":"","answers":[]},{"id":50,"text":"","answers":[]},{"id":51,"text":"","answers":[]},{"id":52,"text":"","answers":[]},{"id":53,"text":"","answers":[]},{"id":54,"text":"","answers":[]},{"id":55,"text":"","answers":[]},{"id":56,"text":"","answers":[]},{"id":57,"text":"","answers":[]},{"id":58,"text":"   Unfortunately, you did not have the moves. In next time you sure will!","answers":[{"id":58,"text":"   ","comment":true},{"comment":false,"lua_do":"function lua_do()<s>n   chainTab = chainTab or {{}} <s>n   cardTo = {} <s>n   hard = hard or 0<s>n   hard = hard <plus> 0.04<s>n   if hard > 1 then hard = 1 end<s>n   max_moves = max_moves or 18<s>n   max_moves = max_moves <plus> 3<s>n   moves = max_moves<s>n   stepLevel = 1<s>n   <s>n   chains = {} <s>n   if lvl == 1 then chains = { } <s>n   elseif lvl == 2 then chains = {1}<s>n   else<s>n      if pick1 > 0 then<s>n         chains = chainTab[pick1]<s>n      end<s>n   end<s>n<s>n   if hard > 0.4 then<s>n      hard = hard - 0.4<s>n   else<s>n      hard = 0<s>n   end<s>n   g.fullscreen = 1<s>nend","text":"Try again ","middle_answer":true,"id":17},{"text":"To menu","id":2,"instant":true,"middle_answer":true,"lua_do":"function lua_do()<s>n  max_moves = max_moves or 18<s>n  max_moves = max_moves <plus> 3<s>n   if hard > 0.4 then<s>n      hard = hard - 0.4<s>n   else<s>n      hard = 0<s>n   end<s>ng.fullscreen = 1<s>nend"}]},{"id":59,"text":"... Pictures... ","answers":[{"id":59,"text":"1","url":"http://188.120.236.127/memories/restoran/cards/new_food/1cake.png"},{"id":59,"text":"2","url":"http://188.120.236.127/memories/restoran/cards/new_food/1cheesecake.png"},{"id":59,"text":"4","url":"http://188.120.236.127/memories/restoran/cards/new_food/1fish.png"},{"id":59,"text":"5","url":"http://188.120.236.127/memories/restoran/cards/new_food/1pasta.png"},{"id":59,"text":"6","url":"http://188.120.236.127/memories/restoran/cards/new_food/1pancake.png"},{"id":59,"text":"9","url":"http://188.120.236.127/memories/restoran/cards/new_food/1roll.png"},{"id":59,"text":"10","url":"http://188.120.236.127/memories/restoran/cards/new_food/bread.png"}]},{"id":60,"text":" ... catalog... ","answers":[{"super_calculate":false,"id":60,"text":"   ","calculate":true,"lua_do":"function lua_do()<s>n   imageTab = { <s>"http://188.120.236.127/memories/restoran/cards/new_food/1cake.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/1cheesecake.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/1fish.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/1pancake.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/1pasta.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/1roll.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/bread.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/chicken.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/cruassan.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/greece.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/eggburger.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/hamburger.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pita.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/cake2.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/cookie.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/eggs.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/hotdog.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/ponchik.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/victory_cards/apple-pie.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/victory_cards/cofee-with-milk.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/victory_cards/viennese-waffles.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/victory_cards/buterbrod.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/victory_cards/egg-bacon.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/victory_cards/wafer-rolls-cream.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/victory_cards/summer-salad.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/victory_cards/cofee3-1.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/bbq.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake3.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake10.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cheese1.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/crepes.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/eggs.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/hamb2.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/pie.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/ribs.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/taco.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/blin.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake4.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/cake1.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/coffe1.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake11.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/chicken.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/croissant.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/eggs1.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/hotdog.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/pizza.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/salmon.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/toast.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/bread.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake5.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake12.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cookie.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cupcake.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/food.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/hotdog2.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/pizza1.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/sandwich.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/waffle.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/bread1.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake6.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake13.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cookie1.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/curry.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/food1.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/ice.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/platter.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/sandwich1.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/bread2.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake7.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake14.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cookie2.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/desserts.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/food2.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/jam.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/quesadilla.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/sandwich2.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake8.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/candy.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cream-horn.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/dish.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/hamb.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/pancakes.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/ramen.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/strawberry.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake2.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cake9.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cheese.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/cream-horn1.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/donut1.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/hamb1.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/peanut.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/ramen1.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack2/sushi.png<s>" } <s>nend"},{"id":59,"text":"Pictures 1-10","need":[9999]},{"id":16,"text":"Pictures 11-20","need":[9999]},{"id":21,"text":"Pictures 21-30","need":[9999]},{"id":22,"text":"Pictures 31-40","need":[9999]},{"id":25,"text":"Pictures 41-50","need":[9999]},{"id":26,"text":"Pictures 51-60","need":[9999]},{"id":27,"text":"Pictures 61-70","need":[9999]},{"id":28,"text":"Pictures 71-80","need":[9999]},{"id":29,"text":"Pictures 81-90","need":[9999]},{"id":30,"text":"Pictures 91-100","need":[9999]},{"super_calculate":false,"lua_do":"function lua_do()<s>n   randomChainTab = { <s>"http://188.120.236.127/memories/restoran/cards/equip/microwave.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/equip/mini-fridge.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/equip/cooking-stove.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/equip/dishwasher.png<s>", <s>"http://188.120.236.127/memories/restoran/cards/equip/cabinet.png<s>" } <s>nend","calculate":true,"text":"    ","id":60},{"id":24,"text":"... Cover chains... ","need":[9999]},{"id":31,"text":"... System images... ","need":[9999]},{"super_calculate":false,"lua_do":"function lua_do()<s>n   sysImage = { <s>"http://188.120.236.127/memories/restoran/001-card-inside.png<s>", <s>"http://188.120.236.127/memories/restoran/empty_move.png<s>", <s>"http://188.120.236.127/memories/restoran/full_move.png<s>", <s>"http://188.120.236.127/memories/restoran/001-rubashka.png<s>", <s>"http://188.120.236.127/memories/restoran/money.png<s>", <s>"http://188.120.236.127/memories/restoran/victory.jpg<s>" } <s>nend","text":"   ","id":60,"calculate":true},{"id":13,"text":".... cafe","need":[9999]},{"super_calculate":false,"id":60,"calculate":true,"lua_do":"function lua_do()<s>n   oldCafeImages = { <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__01.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__05.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__09.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__13.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__17.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__21.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__25.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__29.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__02.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__06.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__10.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__14.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__18.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__22.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__26.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__30.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__03.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__07.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__11.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__15.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__19.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__23.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__27.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__31.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__04.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__08.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__12.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__16.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__20.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__24.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__28.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images/old_2__32.jpg<s>" } <s>nend","text":"   "},{"id":14,"text":"... pack3 - 1... ","need":[9999]},{"id":15,"text":".... pack3 - 2","need":[9999]},{"id":23,"text":".... pack3 - 3","need":[999]},{"id":33,"text":".... pack3 - 4","need":[9999]},{"super_calculate":false,"id":60,"calculate":true,"text":"   pack3-1","lua_do":"function lua_do()<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/balls.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/chicken.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/lollypop.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pie.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pualia2.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/soup.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/sandwich2.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pasta2.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/meat.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/cheese.png<s>") <s>nend"},{"super_calculate":false,"id":60,"calculate":true,"text":"   pack3-2","lua_do":"function lua_do()<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/bread1.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/cake.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/candy.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/fish.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/free.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pancake1.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pizza.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/salad.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/sandwich.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/soussige.png<s>") <s>nend"},{"super_calculate":false,"id":60,"calculate":true,"lua_do":"function lua_do()<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/ice.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/macaroon.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pasta1.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pie1.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/puding.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pualia.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/ratatui.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/choco.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/chicken1.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/butterbroad.png<s>") <s>nend","text":"   pack3-3"},{"super_calculate":false,"id":60,"calculate":true,"text":"   pack3-4","lua_do":"function lua_do()<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/cake1.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/tefftels.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pizza1.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/cookie.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/sandwich1.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pie2.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pasta.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack3/pualia1.png<s>") <s>nend"},{"id":35,"text":"... oldCafe2... ","need":[9999]},{"super_calculate":false,"id":60,"text":"   cafe2","calculate":true,"lua_do":"function lua_do()<s>n   oldCafeImages2 = { <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_01.jpg<s>", <s>n<s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_05.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_09.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_13.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_17.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_21.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_25.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_29.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_02.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_06.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_10.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_14.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_18.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_22.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_26.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_30.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_03.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_07.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_11.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_15.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_19.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_23.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_27.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_31.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_04.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_08.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_12.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_16.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_20.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_24.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_28.jpg<s>", <s>"http://188.120.236.127/memories/restoran/restoran1/images2/cafe_32.jpg<s>" } <s>nend"},{"id":36,"text":"...pack 4-1...","need":[9999]},{"id":37,"text":"...pack 4-2...","need":[9999]},{"id":38,"text":"...pack 4-3...","need":[9999]},{"id":39,"text":"...pack 4-4...","need":[9999]},{"super_calculate":false,"id":60,"calculate":true,"lua_do":"function lua_do()<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/biscuit.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/breakfast.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake10.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cheese.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/choco.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cream.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/fruit.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/ice.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/rice.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/watermellow.png<s>") <s>nend","text":"4-1"},{"super_calculate":false,"lua_do":"function lua_do()<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/breakfast1.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake1.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake7.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cheese1.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/combo.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/ice1.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/meat.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/pizza1.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/rolls.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/soup.png<s>") <s>nend","calculate":true,"text":"4-2","id":60},{"super_calculate":false,"lua_do":"function lua_do()<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/blackberry.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake5.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake12.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/chips.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/choco1.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/fish.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/hamb.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/jam1.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/soup2.png<s>") <s>nend","calculate":true,"text":"4-3","id":60},{"super_calculate":false,"lua_do":"function lua_do()<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/breakfast2.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake2.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake9.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/chicken.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/free.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/ice2.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/jelly.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/potato.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/soup3.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/tako.png<s>") <s>nend","calculate":true,"text":"4-4","id":60},{"super_calculate":false,"lua_do":"function lua_do()<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/breakfast3.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake3.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake11.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/eggs.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/honey.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/ice3.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/meat1.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/pizza.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/rice1.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/soup6.png<s>") <s>nend","calculate":true,"text":"4-5","id":60},{"super_calculate":false,"lua_do":"function lua_do()<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake4.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake6.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/candy1.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/fistashki.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/ice5.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/jam.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/meat2.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/potato1.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/soup7.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/waffles.png<s>") <s>nend","calculate":true,"text":"4-6","id":60},{"super_calculate":false,"lua_do":"function lua_do()<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/breakfast4.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake8.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cake13.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/candy.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/cockie.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/free1.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/ice4.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/jelly1.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/meat3.png<s>") <s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/second.png<s>")<s>n   table.insert (imageTab, <s>"http://188.120.236.127/memories/restoran/cards/new_food/pack4/soup8.png<s>") <s>nend","calculate":true,"text":"4-7","id":60}]},{"id":61,"text":"","answers":[]}]