Вверх ↑
Этот топик читают: Гость
Ответов: 875
Рейтинг: 322
#1: 2022-11-13 12:09:11 ЛС | профиль | цитата
Что-то типа пятнашек. Щелкая правой или левой клавишей мыши, вы вращаете цифры по или против часовой стрелки. Задача расположить все цифры по порядку. Правильно стоящая цифра выделяется цветом. Код обновлен, теперь Иван Васильевича не должны терзать смутные сомнения. Поправил - при одновременном нажатии клавиш записывались нули.
 Add(MainForm,2565746,413,175)
{
Width=625
Height=710
Color=-16777215
Caption="Перевертыши"
Position=1
}
Add(PaintBox,3865073,679,329)
{
Left=10
Top=10
Width=600
Height=600
Color=-16777215
Cursor=2
Point(MouseX)
Point(MouseY)
Point(onMouseDown)
Point(onMouseMove)
link(onMouseDown,15575012:doWork1,[(723,342)])
link(onMouseMove,3007892:doWork1,[(781,349)])
}
Add(MultiElement,1696789,595,433)
{
link(onEvent1,3865073:doRefresh,[(657,439)(657,335)])
link(Data1,14554093:Var2,[])
link(Data2,11058741:Var2,[(608,403)(685,403)])
link(Data3,11980970:Var3,[(615,292)])
}
BEGIN_SDK
Add(EditMulti,2936430,14,21)
{
EventCount=1
WorkCount=1
DataCount=3
Width=881
Height=406
VOffset=100
HOffset=200
link(doWork1,16164817:doFor,[])
}
Add(MatrixRW,8423561,214,121)
{
link(onRead,15188099:doValue,[])
link(Matrix,2936430:Data1,[])
link(X,12223891:Var2,[])
link(Y,12968182:Var2,[])
}
Add(For,16164817,64,121)
{
link(onEvent,13885777:doFor,[])
link(onStop,8333575:doClear,[(109,134)(109,197)])
link(End,695662:Var2,[])
}
Add(For,13885777,141,121)
{
link(onEvent,8423561:doRead,[])
link(End,695662:Var3,[(154,103)])
}
Add(GlobalVar,854521,71,65)
{
Name="Max"
}
Add(Img_Text,6913255,741,331)
{
X=10
Y=10
Font=[Times New Roman,36,1,16777215,204]
Point(X)
Point(Y)
Point(doFont)
link(onDraw,2936430:onEvent1,[(834,337)(834,127)])
link(Bitmap,2936430:Data2,[(747,57)(227,57)])
link(Text,121481:Var3,[(754,262)])
link(X,8459393:Part1,[])
link(Y,8459393:Part2,[])
}
Add(StrList,6607401,636,156)
{
Strings=#5:25,15|6:290,15|6:540,15|6:25,275|7:290,275|7:540,275|6:25,535|7:290,535|7:540,535|0:|
Point(onGetString)
Point(doGetString)
link(onGetString,6959566:doWork2,[])
}
Add(MultiStrPart,8459393,755,163)
{
Char=","
link(onSplit,6913255:doDraw,[(800,169)(800,227)(729,227)(729,337)])
}
Add(Math,8333575,367,184)
{
Op2=1
Default=-1
Point(doClear)
link(onResult,4442027:doEvent,[])
link(Op1,8333575:Result,[(373,166)(357,166)(357,228)(373,228)])
}
Add(Memory,15188099,272,121)
{
link(onData,15772378:doEvent1,[])
}
Add(StrList,14146251,636,212)
{
Strings=#5:25,15|6:185,15|6:360,15|6:540,15|6:25,190|7:185,190|7:360,190|7:540,190|6:25,360|7:185,360|7:360,360|7:540,360|6:25,540|7:185,540|7:360,540|7:540,540|0:|
Point(onGetString)
Point(doGetString)
link(onGetString,13431522:doWork2,[])
}
Add(IndexToChanel,4442027,538,184)
{
Count=3
Point(Index)
link(onEvent1,6607401:doGetString,[])
link(onEvent2,14146251:doGetString,[(616,197)(616,246)])
link(onEvent3,8926195:doGetString,[(603,204)(603,316)])
link(Index,542542:Var,[])
}
Add(GlobalVar,542542,538,142)
{
Name="Index"
}
Add(HubEx,6959566,706,163)
{
link(onEvent,8459393:doSplit,[])
}
Add(StrList,8926195,636,282)
{
Strings=#5:10,10|6:145,10|6:280,10|6:410,10|6:540,10|6:10,145|7:145,145|7:280,145|7:410,145|7:540,145|6:10,275|7:145,275|7:280,275|7:410,275|7:540,275|6:10,410|7:145,410|7:280,410|7:410,410|7:540,410|6:10,540|7:150,540|7:280,540|7:410,540|7:540,540|0:|
Point(onGetString)
Point(doGetString)
link(onGetString,13431522:doWork3,[(710,295)])
}
Add(HubEx,13431522,706,219)
{
Angle=3
link(onEvent,6959566:doWork3,[])
}
Add(MatrixRW,725452,368,121)
{
link(onRead,14296759:doValue,[])
link(Matrix,2936430:Data3,[(374,71)(234,71)])
link(X,12223891:Var3,[(388,107)])
link(Y,12968182:Var3,[(395,93)])
}
Add(If_else,3422457,416,338)
{
link(onTrue,9463091:doFont,[])
link(onFalse,8097146:doFont,[])
link(Op1,121481:Var2,[])
link(Op2,14296759:Value,[])
}
Add(GetDataEx,121481,416,257)
{
Angle=3
link(Data,15188099:Value,[(278,262)])
}
Add(Hub,15772378,321,121)
{
link(onEvent1,725452:doRead,[])
link(onEvent2,8333575:doOperation,[(346,134)(346,190)])
}
Add(GetDataEx,12223891,228,102)
{
Angle=3
link(Data,13885777:Position,[(193,107)(193,164)(147,164)])
}
Add(GetDataEx,12968182,235,88)
{
Angle=3
link(Data,16164817:Position,[(203,93)(203,174)(70,174)])
}
Add(Memory,14296759,423,121)
{
link(onData,3422457:doCompare,[(471,127)(471,229)(404,229)(404,344)])
}
Add(Font,9463091,521,338)
{
Font=[Times New Roman,36,1,16711935,204]
link(onFont,4418095:doWork2,[])
}
Add(Font,8097146,472,345)
{
Font=[Times New Roman,36,1,16777215,204]
link(onFont,4418095:doWork3,[(577,351)])
}
Add(HubEx,4418095,573,338)
{
link(onEvent,6913255:doFont,[(659,344)(659,344)])
}
Add(GetDataEx,695662,71,98)
{
link(Data,854521:Var,[])
}
Add(VisualStrings,502545,98,343)
{
Lines=#18: отрисовка массива|24: и проверка правильности|
Width=151
Height=39
}
END_SDK
Add(MultiElementEx,16081415,532,350)
{
link(onEvent1,4125956:doWork2,[])
link(onEvent2,15575012:doWork2,[(644,363)(644,425)])
link(Data,5030253:Var2,[])
link(Matrix,11980970:Var2,[(545,334)(580,334)])
}
BEGIN_SDK
Add(EditMultiEx,11402398,22,21)
{
WorkCount=#8:doEvent1|
EventCount=#8:onEvent1|8:onEvent2|
DataCount=#4:Data|6:Matrix|
Width=797
Height=662
VOffset=80
HOffset=650
link(doEvent1,4961936:doEvent1,[])
}
Add(Hub,4961936,56,101)
{
OutCount=3
link(onEvent1,13317502:doEvent1,[(106,107)(106,181)])
link(onEvent2,3543420:doEvent1,[(95,114)(95,405)])
link(onEvent3,11402398:onEvent1,[(444,121)(444,107)])
}
Add(GlobalVar,11808569,399,302)
{
Name="Rnd"
Data=Integer(1)
}
Add(MatrixRW,16552076,672,217)
{
link(Matrix,16726084:Var,[])
link(Value,3025543:Item,[(685,205)(649,205)(649,268)(580,268)])
link(X,3167064:Position,[(692,195)(623,195)(623,288)(468,288)])
link(Y,5965632:Position,[(699,190)(614,190)(614,279)(412,279)])
}
Add(For,5965632,406,224)
{
link(onEvent,3167064:doFor,[])
link(onStop,803849:doClear,[])
link(End,4219711:Var2,[])
}
Add(For,3167064,462,224)
{
link(onEvent,803849:doOperation,[])
link(End,4219711:Var3,[(475,213)])
}
Add(GlobalVar,2098356,413,186)
{
Name="Max"
}
Add(ArrayRW,3025543,574,224)
{
link(onRead,16552076:doWrite,[])
link(Array,5627295:Array,[])
}
Add(Math,803849,525,224)
{
Op2=1
Default=-1
Point(doClear)
link(onResult,3025543:doRead,[])
link(Op1,803849:Result,[(531,209)(519,209)(519,263)(531,263)])
}
Add(StrList,5627295,560,168)
{
Strings=#1:1|1:2|1:3|1:4|1:5|1:6|1:7|1:8|1:9|2:10|2:11|2:12|2:13|2:14|2:15|2:16|2:17|2:18|2:19|2:20|2:21|2:22|2:23|2:24|2:25|
}
Add(GetDataEx,4219711,413,208)
{
link(Data,2098356:Var,[])
}
Add(VisualStrings,9310659,168,518)
{
Lines=#35:1. Заполняем два массива по порядку|0:|53:2. Первый массив перемешиваем, что позволяет избежать|27: не рещаемых комбинаций |
Width=347
Height=67
}
Add(Hub,13317502,142,175)
{
link(onEvent1,9794747:doData,[])
link(onEvent2,3982989:doData,[])
}
Add(GetIndexData,16726084,672,140)
{
link(Data1,11402398:Data,[])
link(Data2,11402398:Matrix,[])
}
Add(Hub,3015794,338,175)
{
InCount=2
link(onEvent1,16726084:doIndex,[(439,181)(439,146)])
link(onEvent2,5965632:doFor,[(373,188)(373,230)])
}
Add(Random,1474742,399,365)
{
Max=0
Point(Max)
Point(doMax)
link(onRandom,3309269:doEvent1,[])
link(Max,7674253:Var2,[])
}
Add(Random,6435138,511,378)
{
Max=0
Point(Max)
Point(doMax)
link(onRandom,7911310:doEvent1,[])
link(Max,7674253:Var3,[(517,334)])
}
Add(GlobalVar,13251393,476,344)
{
Name="x"
}
Add(GetDataEx,7674253,399,329)
{
link(Data,11808569:Var,[])
}
Add(Hub,7236745,336,385)
{
OutCount=4
link(onEvent1,1474742:doRandomize,[(363,391)(363,378)])
link(onEvent2,1474742:doMax,[(371,398)(371,392)])
link(onEvent3,6435138:doMax,[])
link(onEvent4,1474742:doRandom,[(379,412)(379,371)])
}
Add(Hub,3309269,448,365)
{
link(onEvent1,13251393:doValue,[(469,371)(469,350)])
link(onEvent2,6435138:doRandom,[(486,378)(486,384)])
}
Add(GlobalVar,16450403,609,344)
{
Name="y"
}
Add(DoData,9794747,192,175)
{
Data=Integer(0)
link(onEventData,3015794:doEvent1,[])
}
Add(DoData,3982989,266,182)
{
Data=Integer(1)
link(onEventData,3015794:doEvent2,[])
}
Add(Timer,4749618,273,385)
{
Interval=20
Enable=1
AutoStop=1
Point(doAutoStop)
link(onTimer,7236745:doEvent1,[])
}
Add(DoData,5504040,637,385)
{
Data=Integer(0)
link(onEventData,11402398:onEvent2,[(744,391)(744,114)])
}
Add(GlobalVar,12792724,210,351)
{
Name="rol"
}
Add(DoData,386724,210,399)
{
link(onEventData,4749618:doAutoStop,[])
link(Data,12792724:Var,[])
}
Add(Hub,3543420,154,399)
{
link(onEvent1,386724:doData,[])
link(onEvent2,4749618:doTimer,[(196,412)(196,391)])
}
Add(Hub,7911310,567,378)
{
link(onEvent1,16450403:doValue,[(595,384)(595,350)])
link(onEvent2,5504040:doData,[])
}
END_SDK
Add(GetDataEx,11980970,574,287)
{
link(Data,15474371:Matrix,[])
}
Add(Matrix,10427673,532,266)
{
Col=2
Row=2
Point(Size)
link(Size,13168492:Var1,[(538,214)])
}
Add(MultiElement,11296608,735,433)
{
link(onEvent1,3007892:doWork2,[])
link(Data1,14554093:Var3,[(741,412)])
}
BEGIN_SDK
Add(EditMulti,13424974,21,21)
{
EventCount=1
WorkCount=1
DataCount=1
Width=580
Height=741
VOffset=500
HOffset=80
link(doWork1,1617316:doCompare,[(31,527)(31,527)])
}
Add(MatrixRW,14864457,119,280)
{
link(onRead,4607735:doValue,[])
link(Matrix,6853857:Var2,[])
link(X,15474174:Var2,[])
link(Y,11130251:Var2,[])
}
Add(MatrixRW,14679569,133,322)
{
link(onRead,16242601:doValue,[])
link(Matrix,8318642:Var2,[])
link(X,1298976:Var2,[])
link(Y,5641007:Var2,[])
}
Add(MatrixRW,14040589,147,364)
{
link(onRead,2498297:doValue,[])
link(Matrix,12610013:Var2,[])
link(X,885551:Var2,[])
link(Y,6576303:Var2,[])
}
Add(MatrixRW,5346657,161,406)
{
link(onRead,9952939:doValue,[])
link(Matrix,15864918:Var2,[])
link(X,5689284:Var2,[])
link(Y,15527187:Var2,[])
}
Add(Memory,4607735,222,280)
{
}
Add(Memory,16242601,300,322)
{
}
Add(Memory,2498297,383,364)
{
}
Add(Memory,9952939,520,406)
{
}
Add(Hub,10679515,63,280)
{
OutCount=9
link(onEvent1,14864457:doRead,[])
link(onEvent2,14679569:doRead,[(105,293)(105,328)])
link(onEvent3,14040589:doRead,[(105,300)(105,370)])
link(onEvent4,5346657:doRead,[(105,307)(105,412)])
link(onEvent5,13560396:doWrite,[(93,314)(93,599)])
link(onEvent6,15558168:doWrite,[(93,321)(93,634)])
link(onEvent7,8360950:doWrite,[(93,328)(93,669)])
link(onEvent8,14211008:doWrite,[(93,335)(93,711)])
link(onEvent9,13424974:onEvent1,[(584,342)(584,527)])
}
Add(MatrixRW,13560396,215,586)
{
link(Matrix,6476534:Var2,[])
link(Value,1706935:Var,[(228,573)(481,573)])
link(X,15474174:Var3,[(235,264)])
link(Y,11130251:Var3,[(242,254)])
}
Add(MatrixRW,15558168,293,621)
{
link(Matrix,3477820:Var2,[])
link(Value,5636369:Var,[(306,591)(259,591)])
link(X,1298976:Var3,[(313,243)])
link(Y,5641007:Var3,[(320,232)])
}
Add(MatrixRW,8360950,376,656)
{
link(Matrix,4729312:Var2,[])
link(Value,8264827:Var,[(389,608)(342,608)])
link(X,885551:Var3,[(396,221)])
link(Y,6576303:Var3,[(403,209)])
}
Add(MatrixRW,14211008,513,698)
{
link(Matrix,4729312:Var3,[(519,82)])
link(Value,6752272:Var,[(526,629)(427,629)])
link(X,5689284:Var3,[(533,197)])
link(Y,15527187:Var3,[(540,186)])
}
Add(GetDataEx,6476534,215,77)
{
Angle=3
link(Data,15864918:Var3,[])
}
Add(GetDataEx,15864918,161,77)
{
Angle=3
link(Data,12610013:Var3,[])
}
Add(GetDataEx,12610013,147,77)
{
Angle=3
link(Data,8318642:Var3,[])
}
Add(GetDataEx,8318642,133,77)
{
Angle=3
link(Data,6853857:Var3,[])
}
Add(GetDataEx,6853857,119,77)
{
Angle=3
link(Data,13424974:Data1,[(107,82)])
}
Add(GetDataEx,4729312,376,77)
{
Angle=3
link(Data,3477820:Var3,[])
}
Add(GetDataEx,3477820,293,77)
{
Angle=3
link(Data,6476534:Var3,[])
}
Add(GetDataEx,15474174,133,259)
{
link(Data,10122272:Var1,[])
}
Add(GetDataEx,11130251,140,249)
{
link(Data,10122272:Var2,[])
}
Add(GetDataEx,1298976,147,238)
{
link(Data,10122272:Var3,[])
}
Add(GetDataEx,5641007,154,227)
{
link(Data,10122272:Var4,[])
}
Add(GetDataEx,885551,161,216)
{
link(Data,10122272:Var5,[])
}
Add(GetDataEx,6576303,168,204)
{
link(Data,10122272:Var6,[])
}
Add(GetDataEx,5689284,175,192)
{
link(Data,10122272:Var7,[])
}
Add(GetDataEx,15527187,182,181)
{
link(Data,10122272:Var8,[])
}
Add(GetIndexData,5636369,253,528)
{
link(onIndex,8264827:doIndex,[])
link(Data1,6573703:Var2,[])
link(Data2,4338350:Var1,[(266,454)])
}
Add(GetIndexData,6752272,421,528)
{
link(onIndex,1706935:doIndex,[])
link(Data1,4338350:Var2,[(427,489)(389,489)])
link(Data2,6573703:Var3,[(434,425)])
}
Add(GetIndexData,8264827,336,528)
{
link(onIndex,6752272:doIndex,[])
link(Data1,13163380:Var2,[])
link(Data2,6434924:Var1,[(349,478)])
}
Add(GetIndexData,1706935,475,528)
{
link(onIndex,10122272:doWork1,[(562,534)(562,109)(110,109)(110,125)])
link(Data1,6434924:Var2,[])
link(Data2,13163380:Var3,[(488,439)])
}
Add(GetDataEx,6573703,253,420)
{
link(Data,4607735:Value,[(259,397)(228,397)])
}
Add(GetDataEx,13163380,336,434)
{
link(Data,16242601:Value,[(342,402)(306,402)])
}
Add(GetDataEx,4338350,383,449)
{
link(Data,2498297:Value,[])
}
Add(MultiElement,10122272,133,119)
{
link(onEvent1,10679515:doEvent1,[(206,125)(206,168)(51,168)(51,286)])
}
BEGIN_SDK
Add(EditMulti,8038771,21,21)
{
EventCount=1
WorkCount=1
VarCount=8
Width=244
Height=290
VOffset=150
HOffset=80
link(doWork1,15332388:doOperation,[])
link(Var1,16273737:Var2,[])
link(Var2,5599295:Var2,[])
link(Var3,11738117:Var3,[(121,96)])
link(Var4,10867766:Var1,[(128,227)])
link(Var5,8832231:Var2,[])
link(Var6,10867766:Var2,[])
link(Var7,8832231:Var3,[(149,250)])
link(Var8,5599295:Var3,[(156,271)])
}
Add(GlobalVar,2725252,101,31)
{
Name="x"
}
Add(GlobalVar,7874702,108,55)
{
Name="y"
}
Add(Math,15332388,129,171)
{
Op2=1
link(onResult,10266585:doOperation,[])
link(Op1,16273737:Var3,[(135,117)])
}
Add(GetDataEx,11738117,101,91)
{
link(Data,2725252:Var,[])
}
Add(GetDataEx,12818736,108,77)
{
link(Data,7874702:Var,[])
}
Add(Math,10266585,189,171)
{
Op2=1
link(onResult,8038771:onEvent1,[])
link(Op1,12818736:Var3,[(195,82)])
}
Add(GetDataEx,16273737,101,112)
{
link(Data,11738117:Var2,[])
}
Add(GetDataEx,10867766,136,222)
{
Angle=1
link(Data,10266585:Result,[(195,227)])
}
Add(GetDataEx,8832231,129,245)
{
link(Data,15332388:Result,[])
}
Add(GetDataEx,5599295,108,266)
{
link(Data,12818736:Var2,[])
}
END_SDK
Add(GetDataEx,6434924,475,473)
{
Angle=1
link(Data,9952939:Value,[(526,478)])
}
Add(VisualStrings,15600413,182,721)
{
Lines=#27:крутим цифры вправо и влево|
Width=172
Height=25
}
Add(If_else,1617316,42,521)
{
Op2=Integer(2)
link(onFalse,5636369:doIndex,[(164,534)(164,534)])
}
END_SDK
Add(GlobalVar,10933276,574,181)
{
Name="Size"
}
Add(MultiElement,12321972,798,433)
{
@Hint=#10:переменные|
link(onEvent1,4125956:doWork3,[(849,439)(849,380)(667,380)])
link(onEvent2,1696789:doWork1,[(851,446)(851,478)(583,478)(583,439)])
link(Data1,3865073:MouseX,[(804,389)(692,389)])
link(Data2,3865073:MouseY,[(811,372)(699,372)])
link(Data3,11058741:Var3,[(818,395)])
}
BEGIN_SDK
Add(EditMulti,135593,7,14)
{
EventCount=2
WorkCount=1
DataCount=3
Width=734
Height=235
VOffset=100
HOffset=80
link(doWork1,10175526:doOperation,[(47,120)(47,106)])
}
Add(Math,10175526,87,100)
{
OpType=7
Op2=64
link(onResult,5269626:doEvent1,[])
link(Op1,135593:Data1,[])
link(Op2,5423398:Var2,[])
}
Add(Hub,5269626,131,100)
{
link(onEvent1,2061715:doValue,[(153,106)(153,70)])
link(onEvent2,378995:doOperation,[])
}
Add(GlobalVar,2061715,160,64)
{
Name="x"
}
Add(Math,378995,195,107)
{
OpType=7
Op2=64
link(onResult,6695084:doEvent1,[])
link(Op1,135593:Data2,[(201,51)(100,51)])
link(Op2,5423398:Var3,[(208,89)])
}
Add(Hub,6695084,238,107)
{
link(onEvent1,1362940:doValue,[(263,113)(263,63)])
link(onEvent2,6622359:doOperation,[])
}
Add(GlobalVar,1362940,288,57)
{
Name="y"
}
Add(GlobalVar,4233107,94,63)
{
Name="Div"
}
Add(GetDataEx,5423398,94,84)
{
link(Data,4233107:Var,[])
}
Add(Img_Rectangle,236751,507,159)
{
Point2AsOffset=0
Style=1
LineStyle=1
Size=4
Color=32768
BgColor=32768
Point(Point1)
Point(Point2)
link(onDraw,4669955:doEvent1,[(560,165)(557,165)])
link(Bitmap,135593:Data3,[(513,42)(107,42)])
link(Point1,11128174:Point,[(527,147)(435,147)(435,221)(343,221)])
link(Point2,15164628:Var,[])
}
Add(Hub,9149408,463,114)
{
link(onEvent1,135593:onEvent1,[])
link(onEvent2,236751:doDraw,[(492,127)(492,165)])
}
Add(Math,6622359,337,114)
{
OpType=2
ResultType=0
link(onResult,11808759:doOperation,[])
link(Op1,10175526:Result,[(343,91)(284,91)(284,146)(93,146)])
link(Op2,3740960:Var2,[])
}
Add(Math,11808759,386,114)
{
OpType=2
ResultType=0
link(onResult,9149408:doEvent1,[])
link(Op1,378995:Result,[(392,100)(300,100)(300,160)(201,160)])
link(Op2,3740960:Var3,[(399,77)])
}
Add(PointXY,11128174,337,177)
{
link(X,6622359:Result,[])
link(Y,11808759:Result,[(350,161)(392,161)])
}
Add(GlobalVar,2346915,344,49)
{
Name="Rect"
}
Add(GetDataEx,3740960,344,72)
{
link(Data,2346915:Var,[])
}
Add(GlobalVar,15164628,528,73)
{
Name="Point"
}
Add(ChangeMon,9260992,660,159)
{
link(onData,135593:onEvent2,[(716,165)(716,127)])
}
Add(DoData,4347595,602,175)
{
Data=Integer(1)
link(onEventData,9630878:doWork3,[(647,181)])
}
Add(HubEx,9630878,643,159)
{
link(onEvent,9260992:doData,[])
}
Add(Hub,4669955,560,159)
{
link(onEvent1,9630878:doWork2,[(631,165)(631,165)])
link(onEvent2,4347595:doData,[(588,172)(588,181)])
}
END_SDK
Add(Matrix,15474371,574,230)
{
Col=2
Row=2
Point(Size)
link(Size,13168492:Var2,[])
}
Add(ChildPanel,1952994,406,336)
{
link(onEvent1,4061033:doEvent1,[])
}
BEGIN_SDK
Add(EditMulti,4804632,21,21)
{
EventCount=1
Width=993
Height=347
VOffset=85
}
Add(Panel,16321913,854,294)
{
Left=5
Top=625
Width=607
Height=55
Color=-16777215
BevelOuter=2
}
Add(Label,16242819,42,50)
{
Left=20
Top=10
Width=110
Height=35
Color=-16777215
Font=[Times New Roman,20,1,65535,204]
Cursor=2
Caption="новичок"
link(onClick,10760774:doEvent1,[])
}
Add(Label,650124,42,136)
{
Left=250
Top=10
Width=121
Height=35
Color=-16777215
Font=[Times New Roman,20,1,65535,204]
Cursor=2
Caption="опытный"
link(onClick,7609522:doEvent1,[])
}
Add(Label,6887216,42,223)
{
Left=500
Top=10
Width=88
Height=35
Color=-16777215
Font=[Times New Roman,20,1,65535,204]
Cursor=2
Caption="мастер"
link(onClick,4558478:doEvent1,[])
}
Add(DoData,6864805,133,50)
{
Data=Integer(196611)
link(onEventData,10308362:doWork2,[])
}
Add(DoData,9773379,133,136)
{
Data=Integer(262148)
link(onEventData,8916526:doWork2,[])
}
Add(DoData,52733,133,223)
{
Data=Integer(327685)
link(onEventData,8916526:doWork3,[(431,229)])
}
Add(GlobalVar,6591700,448,50)
{
Name="Size"
}
Add(HubEx,10308362,427,50)
{
link(onEvent,6591700:doValue,[])
}
Add(HubEx,8916526,427,136)
{
Angle=3
link(onEvent,10308362:doWork3,[])
}
Add(Hub,10760774,91,50)
{
OutCount=9
link(onEvent1,6864805:doData,[])
link(onEvent2,10431665:doData,[])
link(onEvent3,2862728:doData,[])
link(onEvent4,16088253:doData,[])
link(onEvent5,3775835:doData,[])
link(onEvent6,6762003:doData,[])
link(onEvent7,4843003:doData,[])
link(onEvent8,1263258:doData,[])
link(onEvent9,3895620:doEvent1,[])
}
Add(Hub,7609522,91,136)
{
OutCount=9
link(onEvent1,9773379:doData,[])
link(onEvent2,4754308:doData,[])
link(onEvent3,8711968:doData,[])
link(onEvent4,12200909:doData,[])
link(onEvent5,13123167:doData,[])
link(onEvent6,4402579:doData,[])
link(onEvent7,2223727:doData,[])
link(onEvent8,4735830:doData,[])
link(onEvent9,3895620:doEvent2,[(119,198)(119,119)])
}
Add(Hub,4558478,91,223)
{
OutCount=9
link(onEvent1,52733:doData,[])
link(onEvent2,7888468:doData,[])
link(onEvent3,16331884:doData,[])
link(onEvent4,4395028:doData,[])
link(onEvent5,8686170:doData,[])
link(onEvent6,16461931:doData,[])
link(onEvent7,11585351:doData,[])
link(onEvent8,800766:doData,[])
link(onEvent9,3895620:doEvent3,[(119,285)(119,126)])
}
Add(DoData,10431665,175,57)
{
Data=Integer(300)
link(onEventData,7700855:doWork2,[])
}
Add(DoData,4754308,175,143)
{
Data=Integer(200)
link(onEventData,12427537:doWork2,[])
}
Add(DoData,7888468,175,230)
{
Data=Integer(150)
link(onEventData,12427537:doWork3,[(507,236)])
}
Add(GlobalVar,11085804,524,57)
{
Name="Div"
}
Add(HubEx,7700855,503,57)
{
link(onEvent,11085804:doValue,[])
}
Add(HubEx,12427537,503,143)
{
Angle=3
link(onEvent,7700855:doWork3,[])
}
Add(DoData,2862728,217,64)
{
Data=Integer(2)
link(onEventData,2675546:doWork2,[])
}
Add(DoData,8711968,217,150)
{
Data=Integer(3)
link(onEventData,6091367:doWork2,[])
}
Add(DoData,16331884,217,237)
{
Data=Integer(4)
link(onEventData,6091367:doWork3,[(577,243)])
}
Add(GlobalVar,10480267,589,64)
{
Name="Max"
}
Add(HubEx,2675546,573,64)
{
link(onEvent,10480267:doValue,[])
}
Add(HubEx,6091367,573,150)
{
Angle=3
link(onEvent,2675546:doWork3,[])
}
Add(DoData,16088253,259,71)
{
Data=Integer(0)
link(onEventData,9161940:doWork2,[])
}
Add(DoData,12200909,259,157)
{
Data=Integer(1)
link(onEventData,1265908:doWork2,[])
}
Add(DoData,4395028,259,244)
{
Data=Integer(2)
link(onEventData,1265908:doWork3,[(650,250)])
}
Add(GlobalVar,6599228,660,71)
{
Name="Index"
}
Add(HubEx,9161940,646,71)
{
link(onEvent,6599228:doValue,[])
}
Add(HubEx,1265908,646,157)
{
Angle=3
link(onEvent,9161940:doWork3,[])
}
Add(Hub,3895620,133,106)
{
InCount=3
OutCount=1
link(onEvent1,4804632:onEvent1,[(553,112)(553,112)])
}
Add(DoData,3775835,301,78)
{
Data=Integer(1)
link(onEventData,15453376:doWork2,[])
}
Add(DoData,13123167,301,164)
{
Data=Integer(2)
link(onEventData,12402249:doWork2,[])
}
Add(DoData,8686170,301,251)
{
Data=Integer(3)
link(onEventData,12402249:doWork3,[(724,257)])
}
Add(GlobalVar,2054325,737,78)
{
Name="Rnd"
}
Add(HubEx,15453376,720,78)
{
link(onEvent,2054325:doValue,[])
}
Add(HubEx,12402249,720,164)
{
Angle=3
link(onEvent,15453376:doWork3,[])
}
Add(DoData,6762003,343,85)
{
Data=Integer(270)
link(onEventData,16100025:doWork2,[])
}
Add(DoData,4402579,343,171)
{
Data=Integer(175)
link(onEventData,14924803:doWork2,[])
}
Add(DoData,16461931,343,258)
{
Data=Integer(133)
link(onEventData,14924803:doWork3,[(790,264)])
}
Add(GlobalVar,960837,800,85)
{
Name="Rect"
}
Add(HubEx,16100025,786,85)
{
link(onEvent,960837:doValue,[])
}
Add(HubEx,14924803,786,171)
{
Angle=3
link(onEvent,16100025:doWork3,[])
}
Add(DoData,4843003,385,92)
{
Data=Integer(21627210)
link(onEventData,6248095:doWork2,[])
}
Add(GlobalVar,10168839,870,92)
{
Name="Point"
}
Add(DoData,11585351,385,265)
{
Data=Integer(13107400)
link(onEventData,3335351:doWork3,[(860,271)])
}
Add(HubEx,6248095,856,92)
{
link(onEvent,10168839:doValue,[])
}
Add(HubEx,3335351,856,178)
{
Angle=3
link(onEvent,6248095:doWork3,[])
}
Add(DoData,2223727,385,178)
{
Data=Integer(16384250)
link(onEventData,3335351:doWork2,[])
}
Add(VisualStrings,5497969,497,294)
{
Lines=#30:начальные установки переменных|
Width=186
Height=25
}
Add(DoData,1263258,441,99)
{
Data=Integer(10)
link(onEventData,4569374:doWork2,[])
}
Add(DoData,800766,441,272)
{
Data=Integer(30)
link(onEventData,1196417:doWork3,[(928,278)])
}
Add(DoData,4735830,441,185)
{
Data=Integer(18)
link(onEventData,1196417:doWork2,[])
}
Add(GlobalVar,16036354,945,99)
{
Name="rol"
}
Add(HubEx,4569374,924,99)
{
link(onEvent,16036354:doValue,[])
}
Add(HubEx,1196417,924,185)
{
Angle=3
link(onEvent,4569374:doWork3,[])
}
END_SDK
Add(Hub,4061033,455,336)
{
OutCount=3
link(onEvent1,15474371:doSize,[(496,342)(496,236)])
link(onEvent2,10427673:doSize,[(507,349)(507,272)])
link(onEvent3,16081415:doEvent1,[])
}
Add(GetDataEx,5030253,532,315)
{
link(Data,10427673:Matrix,[])
}
Add(GetDataEx,13168492,574,209)
{
link(Data,10933276:Var,[])
}
Add(GetDataEx,14554093,595,407)
{
link(Data,5030253:Var3,[(601,320)])
}
Add(GetDataEx,11058741,679,390)
{
link(Data,3865073:Bitmap,[])
}
Add(HubEx,15575012,719,419)
{
Angle=1
link(onEvent,11296608:doWork1,[(723,439)])
}
Add(HubEx,4125956,663,350)
{
Angle=3
link(onEvent,3865073:doClear,[(667,342)])
}
Add(HubEx,3007892,777,433)
{
link(onEvent,12321972:doWork1,[])
}


Редактировалось 2 раз(а), последний 2022-11-15 16:18:27
карма: 1

3
Голосовали:tig-rrr, Flapiotun, sla8a
Ответов: 8926
Рейтинг: 823
#2: 2022-11-13 15:58:32 ЛС | профиль | цитата
kamakama, внуков развлекаете?
Похожая развлекуха: 9 лампочек, при нажатии на лампочку она меняет своё состояние, так же меняют перпендикулярные соседи при зажигании нажатой лампочки. Надо зажечь все лампочки за минимальное число ходов
9 экранов

Add(MainForm,2953706,35,105)
{
link(onCreate,609728:doRandomize,[])
}
Add(LED,15598717,245,105)
{
Left=105
Top=45
Point(onMouseDown)
link(onMouseDown,7060572:doEvent1,[])
}
Add(LED,8913800,518,112)
{
Left=160
Top=45
Point(onMouseDown)
link(onMouseDown,13412892:doEvent1,[])
}
Add(LED,531345,798,105)
{
Left=215
Top=45
Point(onMouseDown)
link(onMouseDown,1246653:doEvent1,[(837,118)(837,111)])
}
Add(LED,8156129,245,203)
{
Left=105
Top=95
Point(onMouseDown)
link(onMouseDown,829737:doEvent1,[])
}
Add(LED,3677736,518,210)
{
Left=160
Top=95
Point(onMouseDown)
link(onMouseDown,14251498:doEvent1,[])
}
Add(LED,15529230,798,203)
{
Left=215
Top=95
Point(onMouseDown)
link(onMouseDown,2331953:doEvent1,[])
}
Add(LED,10078495,245,308)
{
Left=105
Top=150
Point(onMouseDown)
link(onMouseDown,16086132:doEvent1,[])
}
Add(LED,10577239,518,315)
{
Left=160
Top=150
Point(onMouseDown)
link(onMouseDown,3186787:doEvent1,[])
}
Add(LED,16669156,798,308)
{
Left=215
Top=150
Point(onMouseDown)
link(onMouseDown,474200:doEvent1,[(837,321)(837,314)])
}
Add(Hub,14251498,560,217)
{
link(onEvent1,11610643:doWork3,[(585,223)])
link(onEvent2,8191981:doCompare,[])
}
Add(Hub,7060572,287,112)
{
link(onEvent1,13202231:doWork3,[(312,118)])
link(onEvent2,8658465:doCompare,[])
}
Add(Hub,1246653,847,105)
{
link(onEvent1,13535077:doWork3,[(868,111)])
link(onEvent2,3746539:doCompare,[])
}
Add(Hub,474200,847,308)
{
link(onEvent1,3728478:doWork3,[(867,314)])
link(onEvent2,9371909:doCompare,[])
}
Add(Hub,16086132,287,315)
{
link(onEvent1,2722010:doWork3,[(312,321)])
link(onEvent2,1759613:doCompare,[])
}
Add(Hub,3186787,560,322)
{
link(onEvent1,2939639:doWork3,[(585,328)])
link(onEvent2,1333645:doCompare,[])
}
Add(Hub,13412892,560,119)
{
link(onEvent1,10832531:doWork3,[(585,125)(585,104)])
link(onEvent2,7452815:doCompare,[])
}
Add(Hub,2331953,847,210)
{
link(onEvent1,11089949:doWork3,[(868,216)(868,194)])
link(onEvent2,7305159:doCompare,[])
}
Add(Hub,829737,287,210)
{
link(onEvent1,2742342:doWork3,[(312,216)])
link(onEvent2,2372349:doCompare,[])
}
Add(If_else,3746539,882,112)
{
Op2=Integer(1)
link(onTrue,14056919:doEvent1,[])
link(Op1,531345:Value,[(888,103)(874,103)(874,145)(804,145)])
}
Add(Hub,14056919,931,112)
{
link(onEvent1,10832531:doWork1,[(956,118)(956,83)(508,83)])
link(onEvent2,11089949:doWork1,[(956,125)(956,188)(788,188)])
}
Add(If_else,7305159,882,217)
{
Op2=Integer(1)
link(onTrue,7654475:doEvent1,[])
link(Op1,15529230:Value,[(888,201)(874,201)(874,243)(804,243)])
}
Add(Hub,7654475,931,217)
{
OutCount=3
link(onEvent1,4549744:doWork3,[(879,223)(879,188)])
link(onEvent2,13535077:doWork2,[(963,230)(963,96)])
link(onEvent3,3728478:doWork2,[(963,237)(963,300)])
}
Add(If_else,9371909,889,315)
{
Op2=Integer(1)
link(onTrue,8019803:doEvent1,[])
link(Op1,16669156:Value,[(895,306)(874,306)(874,348)(804,348)])
}
Add(Hub,8019803,931,315)
{
link(onEvent1,11136860:doWork3,[(956,321)(956,293)(788,293)])
link(onEvent2,13061235:doWork1,[(956,328)(956,370)])
}
Add(If_else,7452815,602,126)
{
Op2=Integer(1)
link(onTrue,462371:doEvent1,[])
link(Op1,8913800:Value,[(608,117)(594,117)(594,152)(524,152)])
}
Add(Hub,462371,644,126)
{
OutCount=3
link(onEvent1,1334438:doWork2,[(669,132)(669,111)])
link(onEvent2,13202231:doWork1,[(676,139)(676,90)(312,90)])
link(onEvent3,4549744:doWork1,[(669,146)(669,181)(585,181)])
}
Add(If_else,8191981,602,224)
{
Op2=Integer(1)
link(onTrue,11314769:doEvent1,[])
link(Op1,3677736:Value,[(608,215)(594,215)(594,250)(524,250)])
}
Add(Hub,11314769,644,224)
{
OutCount=4
link(onEvent1,14779520:doWork3,[(669,230)(669,195)(508,195)])
link(onEvent2,11136860:doWork2,[(676,237)(676,209)])
link(onEvent3,2939639:doWork2,[(667,244)(667,307)])
link(onEvent4,6352533:doWork1,[(585,251)(585,258)])
}
Add(If_else,1333645,602,329)
{
Op2=Integer(1)
link(onTrue,600586:doEvent1,[])
link(Op1,10577239:Value,[(608,320)(594,320)(594,355)(524,355)])
}
Add(Hub,600586,651,329)
{
OutCount=3
link(onEvent1,769439:doWork3,[(676,335)(676,300)(508,300)])
link(onEvent2,3711199:doWork3,[(685,342)(685,363)(788,363)])
link(onEvent3,13782585:doWork3,[(676,349)(676,377)(235,377)])
}
Add(If_else,8658465,329,119)
{
Op2=Integer(1)
link(onTrue,14801605:doEvent1,[])
link(Op1,15598717:Value,[(335,110)(321,110)(321,145)(251,145)])
}
Add(Hub,14801605,371,119)
{
link(onEvent1,10832531:doWork2,[(396,125)(396,104)])
link(onEvent2,2742342:doWork2,[(396,132)(396,195)])
}
Add(If_else,2372349,329,217)
{
Op2=Integer(1)
link(onTrue,14305581:doEvent1,[])
link(Op1,8156129:Value,[(335,208)(321,208)(321,243)(251,243)])
}
Add(Hub,14305581,371,217)
{
OutCount=3
link(onEvent1,7208468:doWork3,[(403,223)(403,188)(235,188)])
link(onEvent2,769439:doWork2,[(403,230)(403,272)])
link(onEvent3,2722010:doWork2,[(396,237)(396,300)])
}
Add(If_else,1759613,329,322)
{
Op2=Integer(1)
link(onTrue,3138049:doEvent1,[])
link(Op1,10078495:Value,[(335,313)(321,313)(321,348)(251,348)])
}
Add(Hub,3138049,371,322)
{
link(onEvent1,6352533:doWork3,[(403,328)(403,293)(235,293)])
link(onEvent2,13061235:doWork2,[(407,335)(407,370)])
}
Add(HubEx,11136860,784,203)
{
link(onEvent,15529230:doChangeValue,[])
}
Add(HubEx,7188470,504,315)
{
link(onEvent,10577239:doChangeValue,[])
}
Add(HubEx,11089949,784,188)
{
Angle=1
link(onEvent,11136860:doWork1,[])
}
Add(HubEx,10832531,504,98)
{
Angle=1
link(onEvent,14779520:doWork1,[])
}
Add(HubEx,13535077,864,90)
{
Angle=2
link(onEvent,1334438:doWork1,[(788,96)])
}
Add(HubEx,11610643,581,196)
{
Angle=2
link(onEvent,5944943:doWork1,[(508,202)])
}
Add(HubEx,3728478,863,294)
{
Angle=2
link(onEvent,3711199:doWork1,[(788,300)])
}
Add(HubEx,2742342,308,189)
{
Angle=2
link(onEvent,7622694:doWork1,[(235,195)])
}
Add(HubEx,7208468,231,105)
{
link(onEvent,15598717:doChangeValue,[])
}
Add(HubEx,5944943,504,210)
{
link(onEvent,3677736:doChangeValue,[])
}
Add(HubEx,2722010,308,294)
{
Angle=2
link(onEvent,13782585:doWork1,[(235,300)])
}
Add(HubEx,7622694,231,203)
{
link(onEvent,8156129:doChangeValue,[])
}
Add(HubEx,1334438,784,105)
{
link(onEvent,531345:doChangeValue,[])
}
Add(HubEx,13202231,308,91)
{
Angle=2
link(onEvent,7208468:doWork1,[(235,97)])
}
Add(HubEx,4549744,581,182)
{
Angle=1
link(onEvent,11610643:doWork1,[])
}
Add(HubEx,14779520,504,112)
{
link(onEvent,8913800:doChangeValue,[])
}
Add(HubEx,6352533,231,252)
{
Angle=3
link(onEvent,7622694:doWork3,[])
}
Add(HubEx,13782585,231,308)
{
link(onEvent,10078495:doChangeValue,[])
}
Add(HubEx,3711199,784,308)
{
link(onEvent,16669156:doChangeValue,[])
}
Add(HubEx,769439,504,266)
{
Angle=3
link(onEvent,5944943:doWork3,[])
}
Add(HubEx,2939639,581,301)
{
Angle=2
link(onEvent,7188470:doWork1,[(508,307)])
}
Add(Button,8028563,35,49)
{
Left=185
Top=220
Caption="New"
link(onClick,11056655:doEvent1,[])
}
Add(Hub,11056655,91,49)
{
OutCount=9
link(onEvent1,10527695:doRandom,[(683,55)(683,118)])
link(onEvent2,4028327:doRandom,[(403,62)(403,125)])
link(onEvent3,609728:doRandom,[(144,69)(144,118)])
link(onEvent4,6556331:doRandom,[(690,76)(690,216)])
link(onEvent5,12012777:doRandom,[(410,83)(410,223)])
link(onEvent6,2771480:doRandom,[(136,90)(136,216)])
link(onEvent7,6838614:doRandom,[(127,97)(127,275)(683,275)(683,321)])
link(onEvent8,8084798:doRandom,[(121,104)(121,286)(410,286)(410,328)])
link(onEvent9,8952114:doRandom,[(116,111)(116,321)])
}
Add(Random,609728,147,112)
{
Max=1
link(onRandom,10635164:doWork2,[])
}
Add(IndexToChanel,5450376,196,112)
{
link(onEvent1,15598717:doOff,[])
link(onEvent2,15598717:doOn,[])
}
Add(Random,2771480,147,210)
{
Max=1
link(onRandom,1921917:doWork2,[])
}
Add(IndexToChanel,9143836,196,210)
{
link(onEvent1,8156129:doOff,[])
link(onEvent2,8156129:doOn,[])
}
Add(Random,8952114,147,315)
{
Max=1
link(onRandom,9138297:doWork2,[])
}
Add(IndexToChanel,2788277,196,315)
{
link(onEvent1,10078495:doOff,[])
link(onEvent2,10078495:doOn,[])
}
Add(Random,4028327,420,119)
{
Max=1
link(onRandom,7945280:doWork2,[])
}
Add(IndexToChanel,12161107,469,119)
{
link(onEvent1,8913800:doOff,[])
link(onEvent2,8913800:doOn,[])
}
Add(HubEx,13061235,504,364)
{
Angle=3
link(onEvent,7188470:doWork3,[])
}
Add(Random,12012777,420,217)
{
Max=1
link(onRandom,4172848:doWork2,[])
}
Add(IndexToChanel,10043993,469,217)
{
link(onEvent1,3677736:doOff,[])
link(onEvent2,3677736:doOn,[])
}
Add(Random,8084798,420,322)
{
Max=1
link(onRandom,8890913:doWork2,[])
}
Add(IndexToChanel,16269886,469,322)
{
link(onEvent1,10577239:doOff,[])
link(onEvent2,10577239:doOn,[])
}
Add(Random,10527695,700,112)
{
Max=1
link(onRandom,8764082:doWork2,[])
}
Add(IndexToChanel,9332363,749,112)
{
link(onEvent1,531345:doOff,[])
link(onEvent2,531345:doOn,[])
}
Add(Random,6556331,700,210)
{
Max=1
link(onRandom,2760692:doWork2,[])
}
Add(IndexToChanel,12074895,749,210)
{
link(onEvent1,15529230:doOff,[])
link(onEvent2,15529230:doOn,[])
}
Add(Random,6838614,700,315)
{
Max=1
link(onRandom,1422759:doWork2,[])
}
Add(IndexToChanel,10453210,749,315)
{
link(onEvent1,16669156:doOff,[])
link(onEvent2,16669156:doOn,[])
}
Add(Button,10557350,28,357)
{
Left=100
Top=220
Caption="XX"
Data=Integer(0)
link(onClick,13430691:doEvent1,[])
}
Add(Hub,13430691,70,357)
{
OutCount=9
link(onEvent1,10635164:doWork3,[(95,363)(95,160)(186,160)])
link(onEvent2,7945280:doWork3,[(104,370)(104,167)(459,167)])
link(onEvent3,8764082:doWork3,[(111,377)(111,174)(739,174)])
link(onEvent4,1921917:doWork3,[(132,384)(132,258)(186,258)])
link(onEvent5,4172848:doWork3,[(137,391)(137,265)(459,265)])
link(onEvent6,2760692:doWork3,[(690,398)(690,307)(739,307)])
link(onEvent7,9138297:doWork3,[(186,405)])
link(onEvent8,8890913:doWork3,[(459,412)])
link(onEvent9,1422759:doWork3,[(739,419)])
}
Add(HubEx,1422759,735,315)
{
link(onEvent,10453210:doEvent,[])
}
Add(HubEx,8890913,455,322)
{
link(onEvent,16269886:doEvent,[])
}
Add(HubEx,9138297,182,315)
{
link(onEvent,2788277:doEvent,[])
}
Add(HubEx,2760692,735,210)
{
link(onEvent,12074895:doEvent,[])
}
Add(HubEx,4172848,455,217)
{
link(onEvent,10043993:doEvent,[])
}
Add(HubEx,1921917,182,210)
{
link(onEvent,9143836:doEvent,[])
}
Add(HubEx,8764082,735,112)
{
link(onEvent,9332363:doEvent,[])
}
Add(HubEx,7945280,455,119)
{
link(onEvent,12161107:doEvent,[])
}
Add(HubEx,10635164,182,112)
{
link(onEvent,5450376:doEvent,[])
}


Редактировалось 1 раз(а), последний 2022-11-13 16:00:52
карма: 19

0
Ответов: 875
Рейтинг: 322
#3: 2022-11-13 18:32:04 ЛС | профиль | цитата
Леонид, так точно. Пусть соображалку разминают...
карма: 1

0
Ответов: 8926
Рейтинг: 823
#4: 2022-11-13 23:54:55 ЛС | профиль | цитата
kamakama, посмотрел схему -- терзают смутные сомнения о чисто случайном начальном расположении цифр Могут получиться не решаемые комбинации, ребёнок разозлится и разобьёт монитор
Когда делал кубик Рубика, то из правильного начала делал некоторое количество шагов и был уверен, что обратная комбинация шагов приведёт к решению, оно (решение) обязательно есть!
карма: 19

0
Ответов: 875
Рейтинг: 322
#5: 2022-11-14 06:26:46 ЛС | профиль | цитата
Леонид, действительно, нужно исключить режим новичка. Так как в некоторых позициях невозможно разогнать цифры по сторонам...
карма: 1

0
Ответов: 19
Рейтинг: 21
#6: 2022-11-14 20:27:37 ЛС | профиль | цитата
Моя попытка, что-то переворачивать.


Add(MainForm,2953706,49,154)
{
Width=418
Height=473
Caption="переверни"
BorderStyle=1
Icon=[ZIP7E03000078DA63606004420101062029C190C1CCC020C6C0C0A001C440210605068838083830330C149874078190404303020D6AF5431C34202154F01F090D5EF5B403FF81F6343662C7203942F200B4725451]
Position=1
link(onCreate,2671369:doEvent2,[(90,174)(90,118)])
}
Add(PaintBox,12793008,497,119)
{
Left=5
Top=35
Width=400
Height=400
Point(MouseX)
Point(MouseY)
Point(onMouseDown)
link(onMouseDown,15215645:In,[])
}
Add(Button,7183788,49,105)
{
Left=5
Top=5
Caption="старт"
link(onClick,2671369:doEvent1,[])
}
Add(Img_Rectangle,8715256,434,119)
{
Point2=6488163
Point2AsOffset=0
Style=1
BgColor=255
Point(Point1)
Point(BgColor)
link(onDraw,7153133:doWork2,[])
link(Bitmap,4785343:getVar,[(440,103)(412,103)])
link(Point1,4532741:Point,[])
link(BgColor,5555738:Value,[(461,104)(503,104)])
}
Add(For,14809704,182,119)
{
End=4
link(onEvent,3470752:doOperation,[])
link(onStop,4584992:doTimer,[(228,132)(228,419)])
link(End,3530530:Var2,[])
}
Add(PointXY,4532741,448,56)
{
link(X,3470752:Result,[(454,47)(337,47)(337,161)(251,161)])
link(Y,15681026:Result,[(461,40)(394,40)(394,163)(356,163)])
}
Add(For,7943352,294,119)
{
End=4
link(onEvent,15681026:doOperation,[])
link(End,3530530:Var3,[(307,96)])
}
Add(LineBreakEx,2586683,497,203)
{
Caption="col"
Type=3
link(_Data,12793008:Bitmap,[])
}
Add(LineBreakEx,4785343,406,63)
{
Caption="col"
Type=2
}
Add(LineBreakEx,10665607,504,182)
{
Caption="x"
Type=3
link(_Data,12793008:MouseX,[])
}
Add(LineBreakEx,1487647,511,161)
{
Caption="y"
Type=3
link(_Data,12793008:MouseY,[])
}
Add(LineBreak,3392312,427,161)
{
Caption="draw"
link(Out,7153133:doWork3,[(480,167)])
Primary=[12762313,161,203]
}
Add(HubEx,7153133,476,119)
{
link(onEvent,12793008:doRefresh,[])
}
Add(Math,3470752,245,119)
{
OpType=2
Op2=100
link(onResult,7943352:doFor,[])
}
Add(Math,15681026,350,119)
{
OpType=2
Op2=100
link(onResult,8715256:doDraw,[])
}
Add(Memory,6331324,189,42)
{
Default=Integer(3)
}
Add(GetDataEx,3530530,189,91)
{
link(Data,6331324:Value,[])
}
Add(LineBreak,1773745,182,350)
{
Caption="ход"
link(Out,7926583:doEvent1,[])
Primary=[15215645,371,-224]
}
Add(Hub,2671369,126,105)
{
InCount=3
OutCount=4
link(onEvent2,12793008:doClear,[(158,118)(158,181)(487,181)(487,132)])
link(onEvent3,14809704:doFor,[])
link(onEvent4,15928427:doData,[(151,132)(151,272)])
}
Add(MultiElementEx,3102215,483,364)
{
link(onTrue,12762313:In,[])
link(onResult,14341963:doEvent1,[])
link(Data,10325535:getVar,[])
}
BEGIN_SDK
Add(EditMultiEx,8714516,28,28)
{
WorkCount=#7:doValue|10:перемешать|
EventCount=#6:onTrue|0:|8:onResult|
DataCount=#4:Data|3:Op1|
Width=608
Height=480
HOffset=140
link(doValue,14726963:doEvent1,[(58,34)(58,83)])
link(перемешать,15930955:doEvent1,[(46,41)(46,181)])
}
Add(MultiElementEx,9293959,413,210)
{
link(onTrue,2410358:doWork2,[])
link(Bitmap,13167067:getVar,[])
link(X,11063132:Result,[(426,201)(405,201)(405,250)(335,250)])
link(Y,11063132:y,[(433,194)(398,194)(398,257)(342,257)])
}
BEGIN_SDK
Add(EditMultiEx,14963320,63,63)
{
WorkCount=#10:doGetPixel|7:doClear|
EventCount=#6:onTrue|7:onFalse|11:onEventData|
VarCount=#22:цвет совпал=да или нет|
DataCount=#6:Bitmap|1:X|1:Y|3:Op1|
Width=874
Height=536
link(doGetPixel,298814:doGetPixel,[(95,69)(95,237)])
}
Add(Img_GetPoint,298814,119,231)
{
X=10
Y=10
link(onGetPixel,5714738:doCompare,[])
link(Bitmap,1291384:getVar,[])
link(X,6430913:getVar,[])
link(Y,9138145:getVar,[])
}
Add(If_else,5714738,189,231)
{
link(onTrue,9199099:doEvent1,[])
link(onFalse,11063613:doEvent1,[(360,244)(360,447)])
link(Op2,8714697:Value,[])
}
Add(Hub,9199099,455,231)
{
link(onEvent1,8243184:doOperation,[(480,237)(480,139)])
link(onEvent2,15718252:doDraw,[])
}
Add(Img_Rectangle,15718252,532,238)
{
Point2=6488163
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(BgColor)
link(onDraw,3459204:doWork2,[])
link(Bitmap,8201743:getVar,[(538,229)(489,229)])
link(Point1,9390996:Point,[])
link(BgColor,7055805:Value,[(559,222)(594,222)])
}
Add(PointXY,9390996,546,182)
{
link(X,8243184:Result,[(552,173)(503,173)])
link(Y,10356539:Result,[])
}
Add(LineBreakEx,7918256,70,126)
{
Caption="x"
Type=3
link(_Data,14963320:X,[])
}
Add(LineBreakEx,14225887,77,112)
{
Caption="y"
Type=3
link(_Data,14963320:Y,[])
}
Add(LineBreakEx,3008510,63,140)
{
Caption="bmap"
Type=3
link(_Data,14963320:Bitmap,[])
}
Add(LineBreakEx,6430913,126,182)
{
Caption="x"
Type=2
}
Add(LineBreakEx,9138145,133,196)
{
Caption="y"
Type=2
}
Add(LineBreakEx,1291384,119,168)
{
Caption="bmap"
Type=2
}
Add(LineBreakEx,8201743,483,196)
{
Caption="bmap"
Type=2
}
Add(Hub,11063613,448,441)
{
link(onEvent1,5394876:doOperation,[(473,447)(473,335)])
link(onEvent2,883104:doDraw,[])
}
Add(Memory,7055805,588,182)
{
Default=Integer(2048)
}
Add(Memory,8714697,196,175)
{
Default=Integer(1134844)
}
Add(LineBreakEx,1838346,497,98)
{
Caption="x"
Type=2
}
Add(LineBreakEx,5034576,553,105)
{
Caption="y"
Type=2
}
Add(Img_Rectangle,883104,518,448)
{
Point2=6488163
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(BgColor)
link(onDraw,3459204:doWork3,[(887,454)])
link(Bitmap,12459374:getVar,[(524,439)(489,439)])
link(Point1,8256083:Point,[])
link(BgColor,6809842:Value,[(545,432)(573,432)])
}
Add(LineBreakEx,12459374,483,406)
{
Caption="bmap"
Type=2
}
Add(Memory,6809842,567,392)
{
Default=Integer(1134844)
}
Add(HubEx,3459204,883,238)
{
Angle=3
link(onEvent,14963320:onTrue,[(887,69)])
}
Add(Math,8243184,497,133)
{
OpType=1
Op2=50
link(onResult,10356539:doOperation,[])
link(Op1,1838346:getVar,[])
}
Add(Math,10356539,553,133)
{
OpType=1
Op2=50
link(Op1,5034576:getVar,[])
}
Add(PointXY,8256083,532,378)
{
link(X,5394876:Result,[(538,369)(489,369)])
link(Y,14256778:Result,[])
}
Add(LineBreakEx,6544131,483,294)
{
Caption="x"
Type=2
}
Add(LineBreakEx,4109428,539,301)
{
Caption="y"
Type=2
}
Add(Math,5394876,483,329)
{
OpType=1
Op2=50
link(onResult,14256778:doOperation,[])
link(Op1,6544131:getVar,[])
}
Add(Math,14256778,539,329)
{
OpType=1
Op2=50
link(Op1,4109428:getVar,[])
}
END_SDK
Add(LineBreakEx,5770125,168,49)
{
Type=3
link(_Data,8714516:Data,[])
}
Add(LineBreakEx,13167067,413,161)
{
Type=2
}
Add(Hub,14726963,112,77)
{
OutCount=6
link(onEvent1,690803:doEvent1,[(214,83)(214,216)])
link(onEvent2,10260624:doClear,[(298,90)(298,125)])
link(onEvent3,7091103:doEvent1,[(137,97)(137,321)])
link(onEvent5,16582081:doEvent1,[(144,111)(144,426)])
link(onEvent6,13428030:doFor,[])
}
Add(MultiElementEx,13428030,322,112)
{
link(onResult,10260624:doGetPixel,[])
link(onStop,10260624:doData,[(382,125)(382,132)])
}
BEGIN_SDK
Add(EditMultiEx,16282250,21,21)
{
WorkCount=#5:doFor|
EventCount=#8:onResult|6:onStop|
VarCount=#6:Result|1:y|
Width=314
Height=130
link(doFor,16514404:doFor,[(59,27)(59,76)])
link(Result,9206071:Result,[(27,128)(272,128)])
link(y,7392010:Result,[(34,117)(153,117)])
}
Add(For,16514404,84,70)
{
Start=1
End=4
link(onEvent,7392010:doCalc,[])
link(onStop,16282250:onStop,[(123,83)(123,34)])
}
Add(MathParse,7392010,147,70)
{
MathStr="%1*100 - 50"
link(onResult,10763179:doFor,[])
link(X1,16514404:Position,[(153,61)(139,61)(139,110)(90,110)])
}
Add(For,10763179,203,70)
{
Start=1
End=4
link(onEvent,9206071:doCalc,[])
}
Add(MathParse,9206071,266,70)
{
MathStr="%1*100-50"
link(onResult,16282250:onResult,[(305,76)(305,27)])
link(X1,10763179:Position,[(272,61)(258,61)(258,110)(209,110)])
}
END_SDK
Add(MultiElementEx,10260624,420,112)
{
link(onTrue,8714516:onResult,[(592,118)(592,48)])
link(Bitmap,16292762:getVar,[])
link(X,13428030:Result,[(433,103)(412,103)(412,152)(328,152)])
link(Y,13428030:y,[(440,103)(461,103)(461,159)(335,159)])
}
BEGIN_SDK
Add(EditMultiEx,4215320,63,63)
{
WorkCount=#10:doGetPixel|7:doClear|6:doData|
EventCount=#6:onTrue|
VarCount=#22:цвет совпал=да или нет|
DataCount=#6:Bitmap|1:X|1:Y|3:Op1|
Width=594
Height=445
link(doGetPixel,2141213:doEvent1,[(95,69)(95,230)])
link(doClear,7956332:doEvent1,[])
link(doData,2829206:doEvent1,[])
}
Add(Img_GetPoint,6351424,168,231)
{
X=10
Y=10
link(onGetPixel,14305944:doCompare,[])
link(Bitmap,10682830:getVar,[])
link(X,10323202:getVar,[])
link(Y,7133350:getVar,[])
}
Add(If_else,14305944,224,231)
{
link(onTrue,8518418:doData,[])
link(onFalse,9364764:doData,[(266,244)(266,279)])
link(Op2,15151446:Value,[])
}
Add(LineBreakEx,10125914,70,112)
{
Caption="x"
Type=3
link(_Data,4215320:X,[])
}
Add(LineBreakEx,13054946,77,91)
{
Caption="y"
Type=3
link(_Data,4215320:Y,[])
}
Add(LineBreakEx,7988366,63,133)
{
Caption="bmap"
Type=3
link(_Data,4215320:Bitmap,[])
}
Add(LineBreakEx,10323202,175,182)
{
Caption="x"
Type=2
}
Add(LineBreakEx,7133350,182,196)
{
Caption="y"
Type=2
}
Add(LineBreakEx,10682830,168,168)
{
Caption="bmap"
Type=2
}
Add(Memory,15151446,231,175)
{
Default=Integer(2048)
}
Add(DoData,8518418,287,231)
{
Data=Integer(1)
link(onEventData,7524622:doEvent1,[])
}
Add(DoData,9364764,287,273)
{
Data=Integer(0)
link(onEventData,6351228:doEvent1,[])
}
Add(CounterEx,54257,413,231)
{
Point(doReset)
}
Add(Hub,2141213,105,224)
{
link(onEvent2,6351424:doGetPixel,[])
}
Add(HubEx,9356382,375,238)
{
link(onEvent,54257:doReset,[])
}
Add(DoData,15788691,413,294)
{
link(onEventData,2163985:doCompare,[])
link(Data,54257:Count,[])
}
Add(If_else,2163985,476,294)
{
Op2=Integer(16)
link(onTrue,15961331:doWork2,[])
}
Add(CounterEx,10279041,413,357)
{
Point(doReset)
}
Add(DoData,4075017,413,420)
{
link(onEventData,12763186:doCompare,[])
link(Data,10279041:Count,[])
}
Add(If_else,12763186,476,420)
{
Op2=Integer(16)
link(onTrue,15961331:doWork3,[(551,426)])
}
Add(Hub,2829206,203,77)
{
link(onEvent1,15788691:doData,[(281,83)(281,300)])
link(onEvent2,4075017:doData,[(270,90)(270,426)])
}
Add(Hub,7956332,308,70)
{
link(onEvent1,9356382:doWork1,[(379,76)])
link(onEvent2,11902196:doWork2,[(361,83)(361,370)])
}
Add(Hub,7524622,336,231)
{
link(onEvent1,54257:doNext,[])
link(onEvent2,11902196:doWork1,[(368,244)(368,251)(389,251)])
}
Add(Hub,6351228,336,273)
{
link(onEvent1,9356382:doWork3,[(379,279)])
link(onEvent2,10279041:doNext,[(368,286)(368,363)])
}
Add(HubEx,11902196,385,364)
{
link(onEvent,10279041:doReset,[])
}
Add(HubEx,15961331,547,294)
{
Angle=3
link(onEvent,4215320:onTrue,[(551,69)])
}
END_SDK
Add(LineBreakEx,16292762,420,63)
{
Type=2
}
Add(MultiElementEx,11063132,329,210)
{
link(onResult,9293959:doGetPixel,[])
}
BEGIN_SDK
Add(EditMultiEx,216673,21,21)
{
WorkCount=#5:doFor|
EventCount=#8:onResult|
VarCount=#6:Result|1:y|
Width=440
Height=284
link(doFor,553492:doSplit,[(31,27)(31,111)])
link(Result,3310033:Result,[(27,299)(195,299)])
link(y,59480:Result,[(34,152)(258,152)])
}
Add(For,9449901,126,105)
{
Start=1
End=4
link(onEvent,3310033:doCalc,[])
}
Add(MathParse,3310033,189,105)
{
MathStr="%1*100 - 50"
link(onResult,59480:doCalc,[])
link(X1,9449901:Position,[(195,96)(172,96)(172,148)(132,148)])
}
Add(StrPart,553492,63,105)
{
Char="-"
Point(Left)
Point(Right)
link(onSplit,9449901:doFor,[])
}
Add(MathParse,59480,252,105)
{
MathStr="%1*100 - 50"
link(onResult,216673:onResult,[(291,111)(291,27)])
link(X1,553492:Right,[(258,89)(118,89)(118,145)(76,145)])
}
END_SDK
Add(MultiElementEx,2291334,413,315)
{
link(onTrue,9442413:doWork2,[])
link(Bitmap,3480780:getVar,[])
link(X,6670672:Result,[(426,306)(405,306)(405,355)(328,355)])
link(Y,6670672:y,[(433,299)(398,299)(398,362)(335,362)])
}
BEGIN_SDK
Add(EditMultiEx,2018165,63,63)
{
WorkCount=#10:doGetPixel|7:doClear|
EventCount=#6:onTrue|7:onFalse|11:onEventData|
VarCount=#22:цвет совпал=да или нет|
DataCount=#6:Bitmap|1:X|1:Y|3:Op1|
Width=874
Height=536
link(doGetPixel,12616662:doGetPixel,[(95,69)(95,237)])
}
Add(Img_GetPoint,12616662,119,231)
{
X=10
Y=10
link(onGetPixel,7049327:doCompare,[])
link(Bitmap,10020744:getVar,[])
link(X,12769113:getVar,[])
link(Y,6470624:getVar,[])
}
Add(If_else,7049327,189,231)
{
link(onTrue,1301745:doEvent1,[])
link(onFalse,7596297:doEvent1,[(360,244)(360,447)])
link(Op2,5386779:Value,[])
}
Add(Hub,1301745,455,231)
{
link(onEvent1,13515662:doOperation,[(480,237)(480,139)])
link(onEvent2,700177:doDraw,[])
}
Add(Img_Rectangle,700177,532,238)
{
Point2=6488163
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(BgColor)
link(onDraw,15186642:doWork2,[])
link(Bitmap,9394914:getVar,[(538,229)(489,229)])
link(Point1,16235409:Point,[])
link(BgColor,5751489:Value,[(559,222)(594,222)])
}
Add(PointXY,16235409,546,182)
{
link(X,13515662:Result,[(552,173)(503,173)])
link(Y,1240443:Result,[])
}
Add(LineBreakEx,16335753,70,126)
{
Caption="x"
Type=3
link(_Data,2018165:X,[])
}
Add(LineBreakEx,6433444,77,112)
{
Caption="y"
Type=3
link(_Data,2018165:Y,[])
}
Add(LineBreakEx,1309308,63,140)
{
Caption="bmap"
Type=3
link(_Data,2018165:Bitmap,[])
}
Add(LineBreakEx,12769113,126,182)
{
Caption="x"
Type=2
}
Add(LineBreakEx,6470624,133,196)
{
Caption="y"
Type=2
}
Add(LineBreakEx,10020744,119,168)
{
Caption="bmap"
Type=2
}
Add(LineBreakEx,9394914,483,196)
{
Caption="bmap"
Type=2
}
Add(Hub,7596297,448,441)
{
link(onEvent1,2822784:doOperation,[(473,447)(473,335)])
link(onEvent2,14453431:doDraw,[])
}
Add(Memory,5751489,588,182)
{
Default=Integer(2048)
}
Add(Memory,5386779,196,175)
{
Default=Integer(1134844)
}
Add(LineBreakEx,1530032,497,98)
{
Caption="x"
Type=2
}
Add(LineBreakEx,13060798,553,105)
{
Caption="y"
Type=2
}
Add(Img_Rectangle,14453431,518,448)
{
Point2=6488163
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(BgColor)
link(onDraw,15186642:doWork3,[(887,454)])
link(Bitmap,1259288:getVar,[(524,439)(489,439)])
link(Point1,3825265:Point,[])
link(BgColor,3589009:Value,[(545,432)(573,432)])
}
Add(LineBreakEx,1259288,483,406)
{
Caption="bmap"
Type=2
}
Add(Memory,3589009,567,392)
{
Default=Integer(1134844)
}
Add(HubEx,15186642,883,238)
{
Angle=3
link(onEvent,2018165:onTrue,[(887,69)])
}
Add(Math,13515662,497,133)
{
OpType=1
Op2=50
link(onResult,1240443:doOperation,[])
link(Op1,1530032:getVar,[])
}
Add(Math,1240443,553,133)
{
OpType=1
Op2=50
link(Op1,13060798:getVar,[])
}
Add(PointXY,3825265,532,378)
{
link(X,2822784:Result,[(538,369)(489,369)])
link(Y,14011260:Result,[])
}
Add(LineBreakEx,3586019,483,294)
{
Caption="x"
Type=2
}
Add(LineBreakEx,3980882,539,301)
{
Caption="y"
Type=2
}
Add(Math,2822784,483,329)
{
OpType=1
Op2=50
link(onResult,14011260:doOperation,[])
link(Op1,3586019:getVar,[])
}
Add(Math,14011260,539,329)
{
OpType=1
Op2=50
link(Op1,3980882:getVar,[])
}
END_SDK
Add(LineBreakEx,3480780,413,266)
{
Type=2
}
Add(MultiElementEx,6670672,322,315)
{
link(onResult,2291334:doGetPixel,[])
}
BEGIN_SDK
Add(EditMultiEx,8894495,21,21)
{
WorkCount=#5:doFor|
EventCount=#8:onResult|
VarCount=#6:Result|1:y|
Height=193
link(doFor,5619415:doSplit,[(31,27)(31,111)])
link(Result,11426662:Result,[(27,175)(258,175)])
link(y,6106130:Result,[(34,152)(195,152)])
}
Add(For,2620586,126,105)
{
Start=1
End=4
link(onEvent,6106130:doCalc,[])
}
Add(MathParse,6106130,189,105)
{
MathStr="%1*100 - 50"
link(onResult,11426662:doCalc,[])
link(X1,2620586:Position,[(195,96)(172,96)(172,148)(132,148)])
}
Add(StrPart,5619415,63,105)
{
Char="-"
Point(Left)
Point(Right)
link(onSplit,2620586:doFor,[])
}
Add(MathParse,11426662,252,105)
{
MathStr="%1*100 - 50"
link(onResult,8894495:onResult,[(291,111)(291,27)])
link(X1,5619415:Left,[(258,89)(118,89)(118,145)(69,145)])
}
END_SDK
Add(HubEx,2410358,577,210)
{
Angle=3
link(onEvent,8714516:onTrue,[(581,34)])
}
Add(MultiElementEx,12431117,413,420)
{
link(onTrue,9442413:doWork3,[(581,426)])
link(Bitmap,4241738:getVar,[])
link(X,16428160:Result,[(426,404)(398,404)(398,467)(328,467)])
link(Y,16428160:y,[(433,411)(391,411)(391,460)(335,460)])
}
BEGIN_SDK
Add(EditMultiEx,1012073,63,63)
{
WorkCount=#10:doGetPixel|7:doClear|
EventCount=#6:onTrue|7:onFalse|11:onEventData|
VarCount=#22:цвет совпал=да или нет|
DataCount=#6:Bitmap|1:X|1:Y|3:Op1|
Width=636
Height=459
link(doGetPixel,12043171:doGetPixel,[(95,69)(95,237)])
}
Add(Img_GetPoint,12043171,119,231)
{
X=10
Y=10
link(onGetPixel,14678426:doCompare,[])
link(Bitmap,25753:getVar,[])
link(X,5889241:getVar,[])
link(Y,8137865:getVar,[])
}
Add(If_else,14678426,189,231)
{
link(onTrue,7822734:doEvent1,[])
link(onFalse,13920450:doEvent1,[(360,244)(360,447)])
link(Op2,4017581:Value,[])
}
Add(Hub,7822734,455,231)
{
link(onEvent1,2022682:doOperation,[(480,237)(480,139)])
link(onEvent2,16683014:doDraw,[])
}
Add(Img_Rectangle,16683014,532,238)
{
Point2=6488163
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(BgColor)
link(onDraw,10790810:doWork2,[])
link(Bitmap,6905119:getVar,[(538,229)(489,229)])
link(Point1,7509475:Point,[])
link(BgColor,2664451:Value,[(559,222)(594,222)])
}
Add(PointXY,7509475,546,182)
{
link(X,2022682:Result,[(552,173)(503,173)])
link(Y,14728574:Result,[])
}
Add(LineBreakEx,13562569,70,126)
{
Caption="x"
Type=3
link(_Data,1012073:X,[])
}
Add(LineBreakEx,8278317,77,112)
{
Caption="y"
Type=3
link(_Data,1012073:Y,[])
}
Add(LineBreakEx,10256020,63,140)
{
Caption="bmap"
Type=3
link(_Data,1012073:Bitmap,[])
}
Add(LineBreakEx,5889241,126,182)
{
Caption="x"
Type=2
}
Add(LineBreakEx,8137865,133,196)
{
Caption="y"
Type=2
}
Add(LineBreakEx,25753,119,168)
{
Caption="bmap"
Type=2
}
Add(LineBreakEx,6905119,483,196)
{
Caption="bmap"
Type=2
}
Add(Hub,13920450,448,441)
{
link(onEvent1,8227123:doOperation,[(473,447)(473,335)])
link(onEvent2,11010469:doDraw,[])
}
Add(Memory,2664451,588,182)
{
Default=Integer(2048)
}
Add(Memory,4017581,196,175)
{
Default=Integer(1134844)
}
Add(LineBreakEx,4794612,497,98)
{
Caption="x"
Type=2
}
Add(LineBreakEx,5331993,553,105)
{
Caption="y"
Type=2
}
Add(Img_Rectangle,11010469,518,448)
{
Point2=6488163
Point2AsOffset=0
Style=1
BgColor=0
Point(Point1)
Point(BgColor)
link(onDraw,10790810:doWork3,[(649,454)])
link(Bitmap,6212230:getVar,[(524,439)(489,439)])
link(Point1,6936553:Point,[])
link(BgColor,15927454:Value,[(545,432)(573,432)])
}
Add(LineBreakEx,6212230,483,406)
{
Caption="bmap"
Type=2
}
Add(Memory,15927454,567,392)
{
Default=Integer(1134844)
}
Add(HubEx,10790810,645,238)
{
Angle=3
link(onEvent,1012073:onTrue,[(649,69)])
}
Add(Math,2022682,497,133)
{
OpType=1
Op2=50
link(onResult,14728574:doOperation,[])
link(Op1,4794612:getVar,[])
}
Add(Math,14728574,553,133)
{
OpType=1
Op2=50
link(Op1,5331993:getVar,[])
}
Add(PointXY,6936553,532,378)
{
link(X,8227123:Result,[(538,369)(489,369)])
link(Y,652257:Result,[])
}
Add(LineBreakEx,9553473,483,294)
{
Caption="x"
Type=2
}
Add(LineBreakEx,11047246,539,301)
{
Caption="y"
Type=2
}
Add(Math,8227123,483,329)
{
OpType=1
Op2=50
link(onResult,652257:doOperation,[])
link(Op1,9553473:getVar,[])
}
Add(Math,652257,539,329)
{
OpType=1
Op2=50
link(Op1,11047246:getVar,[])
}
END_SDK
Add(LineBreakEx,4241738,413,364)
{
Type=2
}
Add(HubEx,9442413,577,315)
{
Angle=3
link(onEvent,2410358:doWork3,[])
}
Add(MultiElementEx,16428160,322,420)
{
link(onResult,12431117:doGetPixel,[])
}
BEGIN_SDK
Add(EditMultiEx,10044466,21,21)
{
WorkCount=#5:doFor|
EventCount=#8:onResult|
VarCount=#6:Result|1:y|
Width=328
Height=172
link(doFor,16684105:doSplit,[(31,27)(31,111)])
link(Result,7446145:Result,[(27,152)(139,152)])
link(y,12609716:Result,[(34,159)(216,159)])
}
Add(MathParse,7446145,133,105)
{
MathStr="%1*100 - 50"
link(onResult,12609716:doCalc,[])
link(X1,16684105:Left,[(139,89)(55,89)(55,145)(69,145)])
}
Add(StrPart,16684105,63,105)
{
Char="-"
Point(Left)
Point(Right)
link(onSplit,7446145:doCalc,[])
}
Add(MathParse,12609716,210,105)
{
MathStr="%1*100 - 50"
link(onResult,10044466:onResult,[(291,111)(291,27)])
link(X1,16684105:Right,[(216,96)(181,96)(181,145)(76,145)])
}
END_SDK
Add(Hub,15930955,63,175)
{
OutCount=3
link(onEvent1,690803:doEvent2,[(207,181)(207,223)])
link(onEvent2,7091103:doEvent2,[(130,188)(130,328)])
link(onEvent3,16582081:doEvent2,[(123,195)(123,433)])
}
Add(Hub,690803,245,210)
{
InCount=2
link(onEvent1,11063132:doFor,[])
}
Add(Hub,7091103,252,315)
{
InCount=2
link(onEvent1,6670672:doFor,[])
}
Add(Hub,16582081,252,420)
{
InCount=2
link(onEvent1,16428160:doFor,[])
}
END_SDK
Add(LineBreakEx,10325535,483,336)
{
Caption="col"
Type=2
}
Add(MultiElementEx,12636077,399,364)
{
link(onFString,3102215:doValue,[])
link(Op1,15333259:getVar,[])
link(Op2,10307713:getVar,[])
}
BEGIN_SDK
Add(EditMultiEx,8777461,21,21)
{
WorkCount=#9:doCompare|
EventCount=#9:onFString|
DataCount=#3:Op1|3:Op2|
Width=363
link(doCompare,1989664:doEvent1,[(48,27)(48,76)])
}
Add(Math,9951674,196,70)
{
OpType=3
Op2=100
link(onResult,851813:doOperation,[])
}
Add(Math,851813,259,70)
{
OpType=42
}
Add(Math,2150207,196,140)
{
OpType=3
Op2=100
link(onResult,10899476:doOperation,[])
}
Add(Math,10899476,259,140)
{
OpType=42
link(onResult,16175057:doString,[])
}
Add(Hub,1989664,56,70)
{
link(onEvent1,13820146:doOperation,[])
link(onEvent2,6847834:doOperation,[(81,83)(81,146)])
}
Add(FormatStr,16175057,322,140)
{
Mask="%1-%2"
link(onFString,8777461:onFString,[(375,146)(375,27)])
link(Str1,851813:Result,[(328,131)(265,131)])
}
Add(Math,13820146,133,70)
{
Op2=100
link(onResult,9951674:doOperation,[])
link(Op1,8777461:Op1,[(139,61)(27,61)])
}
Add(Math,6847834,133,140)
{
Op2=100
link(onResult,2150207:doOperation,[])
link(Op1,8777461:Op2,[(139,131)(34,131)])
}
END_SDK
Add(LineBreakEx,15333259,399,315)
{
Caption="x"
Type=2
}
Add(LineBreakEx,10307713,406,336)
{
Caption="y"
Type=2
}
Add(Memory,5555738,497,56)
{
Default=Integer(1134844)
}
Add(MultiElementEx,8600920,399,413)
{
link(onFString,3102215:перемешать,[(457,419)(457,377)])
}
BEGIN_SDK
Add(EditMultiEx,9406091,21,21)
{
WorkCount=#9:doCompare|11:doRandomize|
EventCount=#9:onFString|
DataCount=#3:Op1|3:Op2|
Width=342
Height=186
link(doCompare,15636634:doEvent1,[(40,27)(40,76)])
link(doRandomize,3798118:doEvent1,[])
}
Add(Math,1848626,231,70)
{
OpType=42
}
Add(Math,6495426,231,140)
{
OpType=42
link(onResult,10841986:doString,[])
}
Add(Hub,15636634,56,70)
{
OutCount=3
link(onEvent1,12277408:doRandom,[])
link(onEvent2,11890195:doRandom,[(88,83)(88,146)])
}
Add(FormatStr,10841986,287,140)
{
Mask="%1-%2"
link(onFString,9406091:onFString,[(346,146)(346,27)])
link(Str1,1848626:Result,[(293,131)(237,131)])
}
Add(Random,12277408,161,70)
{
Min=1
Max=4
link(onRandom,1848626:doOperation,[])
}
Add(Random,11890195,161,140)
{
Min=1
Max=4
link(onRandom,6495426:doOperation,[])
}
Add(Hub,3798118,77,28)
{
link(onEvent1,12277408:doRandomize,[(109,34)(109,83)])
link(onEvent2,11890195:doRandomize,[(102,41)(102,153)])
}
END_SDK
Add(Message,3416780,588,385)
{
Message="Вы победили."
Caption="Поздравляем"
}
Add(CounterEx,9538641,287,259)
{
Max=99999
Point(doValue)
link(onNext,6065047:doConvert,[])
}
Add(Hub,7926583,238,350)
{
OutCount=3
link(onEvent1,9538641:doNext,[(270,356)(270,265)])
link(onEvent3,12636077:doCompare,[])
}
Add(Label,4285623,399,259)
{
Left=65
Top=10
Caption="ход"
}
Add(Hub,14341963,539,378)
{
OutCount=3
link(onEvent2,3416780:doMessage,[])
link(onEvent3,2671369:doEvent3,[(564,398)(564,307)(116,307)(116,125)])
}
Add(ConvertorEx,6065047,343,259)
{
Mode=14
Word_1="ход"
Word_2="хода"
Word_5="ходов"
link(onResult,4285623:doText,[])
}
Add(Button,13652719,49,42)
{
Left=350
Top=5
Width=60
Caption="Справка"
link(onClick,2137943:doMessage,[])
}
Add(Message,2137943,105,42)
{
Message="О игре...\r\n\r\nНеобходимо нажимая на квадраты сделать все одного цвета, учитывая, что меняются квадраты которые стоят от места нажатия по вертикали и горизонтали на противоположный цвет.\r\n\r\n\r\n\r\nУдачи!\r\n\r\nAles (c)\r\n"
Caption="Справка"
}
Add(Timer,4584992,315,413)
{
Interval=50
Enable=1
AutoStop=9
link(onTimer,8600920:doCompare,[])
}
Add(DoData,15928427,175,266)
{
Data=Integer(0)
link(onEventData,9538641:doValue,[])
}

Редактировалось 1 раз(а), последний 2022-11-14 20:40:07
карма: 1

3
Голосовали:kamakama, sla8a, tig-rrr
6
Сообщение
...
Прикрепленные файлы
(файлы не залиты)