// Coordinates System : var lastWindoww=1920; var lastWindowh=911; parent.$U.escala=Math.min(widthWindow()/lastWindoww,heightWindow()/lastWindowh); if (parent.$U.escala==0){parent.$U.escala=1}; SetCoords(parent.$U.escala*873.3954727030626,parent.$U.escala*454.89347536617845,parent.$U.escala*58.226364846870844,false,1920,911); // Geometry : P1=Point("P1",-3.3958333333333344,6.395833333333333); secuencia=Expression("secuencia","","","","0","-13.958333333333334","4.0625"); blk_btn=BlocklyButton("blk_btn","continuar","-2.500000000000001","-5.312500000000001"); blk_btn0=BlocklyButton("blk_btn0","reiniciar","-10.625","-5.312500000000001"); numSegmentos=Expression("numSegmentos","","","","0","-13.96953896816685","2.660194840834248"); P1Seg1=Expression("P1Seg1","","","","\"B\"","-13.797795462861325","1.4579903036955728"); P2Seg1=Expression("P2Seg1","","","","\"C\"","-13.797795462861325","0.9427597877789977"); P1Seg2=Expression("P1Seg2","","","","\"C\"","-13.797795462861325","0.42752927186242257"); P2Seg2=Expression("P2Seg2","","","","\"A\"","-13.797795462861325","-0.08770124405415258"); P1Seg3=Expression("P1Seg3","","","","\"B\"","-13.797795462861325","-0.6029317599707277"); P2Seg3=Expression("P2Seg3","","","","\"C\"","-13.797795462861325","-1.1181622758873029"); recuperaNombres=Expression("recuperaNombres","","","","segs=me.C.getObjectsFromType('segment');\nSetExpressionValue(\"numSegmentos\",segs.length);\nSetExpressionValue(\"P1Seg1\",segs[0].getParent()[0].getName());\nSetExpressionValue(\"P2Seg1\",segs[0].getParent()[1].getName());\nSetExpressionValue(\"P1Seg2\",segs[1].getParent()[0].getName());\nSetExpressionValue(\"P2Seg2\",segs[1].getParent()[1].getName());\nSetExpressionValue(\"P1Seg3\",segs[2].getParent()[0].getName());\nSetExpressionValue(\"P2Seg3\",segs[2].getParent()[1].getName());0","-13.282564946944749","-2.320366813025978"); blk_turtle_exp_P1=Expression("blk_turtle_exp_P1","","","","var bl_dgagijib=function(){\nTURTLE_INIT(\"P1\",P1);\nif ((secuencia) == 0) {\n TURTLE_PRINT(TURTLE_TEXT('1. construya dos puntos y llámelos A y B. Luego construya el segmento AB'));\n} else if ((secuencia) == 1) {\n TURTLE_PRINT(TURTLE_TEXT('2. construya un tercer punto y llámelo C. Luego construya el segmento AC'));\n} else if ((secuencia) == 2) {\n TURTLE_PRINT(TURTLE_TEXT('3. Construya el segmento BC'));\n}\nreturn TURTLE_RESULT()\n};\nbl_dgagijib()","-13.958333333333334","6.770833333333333"); blk_turtle_list_P1=List("blk_turtle_list_P1",blk_turtle_exp_P1); // Styles : STL(P1,"c:#0000b2;h:1;s:7.2782956058588555;f:36"); STL(secuencia,"c:#3a1c49;h:1;s:8.491344873501998;sn:true;f:29;p:2;cL:242;cPT:YzojNzgwMDEzO2g6MTtzOjEyLjEzMDQ5MjY3NjQzMTQyNztmOjM2"); STL(blk_btn,"c:#780013;o:0.1;s:3.6391478029294277;f:29;p:0"); STL(blk_btn0,"c:#780013;h:1;o:0.1;s:3.6391478029294277;f:29;p:0"); STL(numSegmentos,"c:#620659;h:1;s:8.491344873501998;sn:true;f:29;p:2;cL:200;cPT:YzojNzgwMDEzO2g6MTtzOjEyLjEzMDQ5MjY3NjQzMTQyNztmOjM2"); STL(P1Seg1,"c:#2c340b;h:1;s:8.491344873501998;sn:true;f:29;p:2;cL:200;cPT:YzojNzgwMDEzO2g6MTtzOjEyLjEzMDQ5MjY3NjQzMTQyNztmOjM2"); STL(P2Seg1,"c:#800442;h:1;s:8.491344873501998;sn:true;f:29;p:2;cL:200;cPT:YzojNzgwMDEzO2g6MTtzOjEyLjEzMDQ5MjY3NjQzMTQyNztmOjM2"); STL(P1Seg2,"c:#2f6954;h:1;s:8.491344873501998;sn:true;f:29;p:2;cL:200;cPT:YzojNzgwMDEzO2g6MTtzOjEyLjEzMDQ5MjY3NjQzMTQyNztmOjM2"); STL(P2Seg2,"c:#614866;h:1;s:8.491344873501998;sn:true;f:29;p:2;cL:200;cPT:YzojNzgwMDEzO2g6MTtzOjEyLjEzMDQ5MjY3NjQzMTQyNztmOjM2"); STL(P1Seg3,"c:#277728;h:1;s:8.491344873501998;sn:true;f:29;p:2;cL:200;cPT:YzojNzgwMDEzO2g6MTtzOjEyLjEzMDQ5MjY3NjQzMTQyNztmOjM2"); STL(P2Seg3,"c:#240440;h:1;s:8.491344873501998;sn:true;f:29;p:2;cL:200;cPT:YzojNzgwMDEzO2g6MTtzOjEyLjEzMDQ5MjY3NjQzMTQyNztmOjM2"); STL(recuperaNombres,"c:#614c23;h:1;s:7;sn:true;f:24;p:2;cL:200;cPT:YzojNzgwMDEzO2g6MTtzOjEwO2Y6MzA="); STL(blk_turtle_exp_P1,"c:#780013;h:2;s:8.491344873501998;f:29;p:2;cL:242;cPT:YzojNzgwMDEzO2g6MjtzOjEyLjEzMDQ5MjY3NjQzMTQyNztmOjM2"); STL(blk_turtle_list_P1,"c:#0000b2;s:0;f:36;p:0;nmi:true;sg:1"); SetCoordsStyle("isAxis:false;isGrid:true;isOx:true;isOy:true;isLockOx:false;isLockOy:false;centerZoom:false;onlyPositive:false;color:#111111;fontSize:21;axisWidth:1.2130492676431426;gridWidth:0.12130492676431426"); SetGeneralStyle("background-color:#F8F8F8;degree:true;dragmoveable:true;magniferOn:false"); // Blockly : BLK(P1,{"onlogo":{"xml":"EQsecuencia01. construya dos puntos y llámelos A y B. Luego construya el segmento ABEQsecuencia12. construya un tercer punto y llámelo C. Luego construya el segmento ACEQsecuencia23. Construya el segmento BC","sync":"if ((secuencia) == 0) {\n TURTLE_PRINT(TURTLE_TEXT('1. construya dos puntos y llámelos A y B. Luego construya el segmento AB'));\n} else if ((secuencia) == 1) {\n TURTLE_PRINT(TURTLE_TEXT('2. construya un tercer punto y llámelo C. Luego construya el segmento AC'));\n} else if ((secuencia) == 2) {\n TURTLE_PRINT(TURTLE_TEXT('3. Construya el segmento BC'));\n}\n","parents":["secuencia"]},"current":"onlogo"}); BLK(blk_btn,{"onprogram":{"xml":"EQsecuencia0EQnumSegmentos0No ha construido ningún segmentoGTnumSegmentos1Construyó más de un segmento. Borre todos los segmentos que no sean ABEQnumSegmentos1ORANDEQP1Seg1AEQP2Seg1BANDEQP1Seg1BEQP2Seg1AMuy Bien! Sigamos...expressionsecuencia1El segmento que construyó no tiene como extremos A y BEQsecuencia1EQnumSegmentos1No ha construido ningún segmento nuevoGTnumSegmentos2Construyó más de un segmento nuevo. Borre todos los segmentos que no sean AB o ACEQnumSegmentos2ORANDEQP1Seg2AEQP2Seg2CANDEQP1Seg2CEQP2Seg2AMuy Bien! Sigamos...expressionsecuencia2El segmento que construyó no tiene como extremos A y CEQsecuencia2EQnumSegmentos2No ha construido ningún segmento nuevoGTnumSegmentos3Construyó más de un segmento nuevo. Borre todos los segmentos que no sean AB o ACEQnumSegmentos3ORANDEQP1Seg3CEQP2Seg3BANDEQP1Seg3BEQP2Seg3CMuy Bien! Ha construido el triángulo ABCexpressionsecuencia2El segmento que construyó no tiene como extremos A y CcomandoP1Seg1.compute()comandoP2Seg1.compute()comandoP1Seg2.compute()comandoP2Seg2.compute()comandoP1Seg3.compute()comandoP2Seg3.compute()","sync":"if ((secuencia) == 0) {\n if ((numSegmentos) == 0) {\n ALERT(''+TURTLE_TEXT('No ha construido ningún segmento')+'');\n } else {\n if ((numSegmentos) > 1) {\n ALERT(''+TURTLE_TEXT('Construyó más de un segmento. Borre todos los segmentos que no sean AB')+'');\n }\n if ((numSegmentos) == 1) {\n if ((P1Seg1) == TURTLE_TEXT('A') && (P2Seg1) == TURTLE_TEXT('B') || (P1Seg1) == TURTLE_TEXT('B') && (P2Seg1) == TURTLE_TEXT('A')) {\n ALERT(''+TURTLE_TEXT('Muy Bien! Sigamos...')+'');\n var blockly_var_temp_var = 1 ;\n SET_EXP(\"secuencia\",blockly_var_temp_var);\n } else {\n ALERT(''+TURTLE_TEXT('El segmento que construyó no tiene como extremos A y B')+'');\n }\n }\n }\n} else if ((secuencia) == 1) {\n if ((numSegmentos) == 1) {\n ALERT(''+TURTLE_TEXT('No ha construido ningún segmento nuevo')+'');\n } else {\n if ((numSegmentos) > 2) {\n ALERT(''+TURTLE_TEXT('Construyó más de un segmento nuevo. Borre todos los segmentos que no sean AB o AC')+'');\n }\n if ((numSegmentos) == 2) {\n if ((P1Seg2) == TURTLE_TEXT('A') && (P2Seg2) == TURTLE_TEXT('C') || (P1Seg2) == TURTLE_TEXT('C') && (P2Seg2) == TURTLE_TEXT('A')) {\n ALERT(''+TURTLE_TEXT('Muy Bien! Sigamos...')+'');\n var blockly_var_temp_var2 = 2 ;\n SET_EXP(\"secuencia\",blockly_var_temp_var2);\n } else {\n ALERT(''+TURTLE_TEXT('El segmento que construyó no tiene como extremos A y C')+'');\n }\n }\n }\n} else if ((secuencia) == 2) {\n if ((numSegmentos) == 2) {\n ALERT(''+TURTLE_TEXT('No ha construido ningún segmento nuevo')+'');\n } else {\n if ((numSegmentos) > 3) {\n ALERT(''+TURTLE_TEXT('Construyó más de un segmento nuevo. Borre todos los segmentos que no sean AB o AC')+'');\n }\n if ((numSegmentos) == 3) {\n if ((P1Seg3) == TURTLE_TEXT('C') && (P2Seg3) == TURTLE_TEXT('B') || (P1Seg3) == TURTLE_TEXT('B') && (P2Seg3) == TURTLE_TEXT('C')) {\n ALERT(''+TURTLE_TEXT('Muy Bien! Ha construido el triángulo ABC')+'');\n var blockly_var_temp_var3 = 2 ;\n SET_EXP(\"secuencia\",blockly_var_temp_var3);\n } else {\n ALERT(''+TURTLE_TEXT('El segmento que construyó no tiene como extremos A y C')+'');\n }\n }\n }\n}\nblockly_var_comando = (P1Seg1.compute());\nblockly_var_comando = (P2Seg1.compute());\nblockly_var_comando = (P1Seg2.compute());\nblockly_var_comando = (P2Seg2.compute());\nblockly_var_comando = (P1Seg3.compute());\nblockly_var_comando = (P2Seg3.compute());\n","childs":["secuencia"],"parents":["secuencia","numSegmentos","P1Seg1","P2Seg1","P1Seg2","P2Seg2","P1Seg3","P2Seg3"]},"current":"onprogram"}); BLK(blk_btn0,{"onprogram":{"xml":"expressionsecuencia0","sync":"var blockly_var_temp_var = 0 ;\nSET_EXP(\"secuencia\",blockly_var_temp_var);\n","childs":["secuencia"]},"current":"onprogram"});