by @DAVID ENRIQUE GAVILANES SANCHEZ Fork
{"functions":[],"name":"Bucle de adivinanza-David","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_ba0ec464_ed72_4d67_bf83_4558068c3646"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"secreto","lengthValue2":"5","id":"id_5ae14623_2260_4b43_b9cb_96584c51c9e8","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"intento","lengthValue2":"5","id":"id_043d6b27_a102_443f_b499_b64963fdcd2f","initValue":null},{"@type":"Assign","name":"secreto","id":"id_fd7adc5c_807a_4764_b93a_a3a9ac1fa74d","value":"randomInt(20)"},{"@type":"Assign","name":"intento","id":"id_48d21a8b_3cc3_4013_b8d2_a8063d22988d","value":"-1"},{"newline":true,"@type":"Output","id":"id_1d2ffce9_08bd_4242_bdef_31840b72b8a5","value":"\"Bienvenido al juego. He pensado un número del 0 al 20.\""},{"newline":true,"@type":"Output","id":"id_99f27f58_9c47_42dc_8715_59ea0d90f719","value":"\"Cual crees que es el numero?\""},{"condition":"intento != secreto","@type":"While","id":"id_eef9102b_7684_4242_927e_8bbc52c6aac8","body":{"statements":[{"@type":"Input","name":"intento","id":"id_65da8900_4dcd_4221_a54a_46e897891ddd","prompt":null},{"falseBlock":{"statements":[],"id":"id_ecf79f64_159b_4a80_b97b_8eeaa0cd79b2"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3f9029c8_649e_45c7_8eb2_39851ea7b23c","value":"\"El número es mayor que \" + intento"}],"id":"id_c815ee11_0679_4978_b7ee_41e6effffd05"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_a764a20d_4a24_49f9_bbab_6c117dcb4cf8","value":"\"El número es menor que \" + intento"}],"id":"id_b8243a22_7d42_4905_b216_c0f061b6e373"},"condition":"secreto < intento","@type":"If","id":"id_e7a1634f_379c_4754_8b0c_35f9860ac0c1"}],"id":"id_4159c023_9cc1_4eb2_b1e1_8a66b77dbf19"},"condition":"intento != secreto","@type":"If","id":"id_f76d8eb4_5d8e_474e_8fc2_75fa71b00dda"}],"id":"id_321e776e_5180_46ac_958c_f95569d6899d"}},{"newline":true,"@type":"Output","id":"id_0b22bc08_ed5b_4c97_8ac8_1a75c5735982","value":"\"¡Felicidades! Acertaste. El numero era \" + intento"},{"newline":true,"@type":"Output","id":"id_a550baaa_bbae_482f_9c25_b929fa2d45e0","value":"\"Gracias por jugar\""},{"@type":"Return","id":"id_25661307_0043_4e75_a22b_5398d15c5091","maybeValue":null}],"parameters":[]},"id":"id_497b9c72_c74b_4199_99b1_c254b4dbd68e","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":279}