by @R Sharma Fork
{"functions":[{"rawId":"id_5bd81670_49db_4d97_8bcc_a8a817475948","tpe":"Void","name":"giusto","statements":[{"@type":"Begin","id":"id_0bec8e5e_f9a8_416b_a7a5_3cbd1ccee673"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_b4462963_6cf5_4818_8dca_6f6f916c38ff","value":"\"troppo basso\""}],"id":"id_0a415afd_be15_45b9_9f47_3c672d16e046"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_d6cef24a_0b13_456b_a505_2a586533673d","value":"\"troppo alto\""}],"id":"id_c04af8a7_e929_4791_9e09_ceaa4aef5837"},"condition":"x>nr","@type":"If","id":"id_aaffad3b_042f_409e_ae77_a7c20d4c8110"},{"@type":"Assign","name":"z","id":"id_7c7836ea_9a66_4806_803c_884464dc346b","value":"z+1"}],"id":"id_5523fff2_8227_4532_a811_eea092162544"},"trueBlock":{"statements":[{"@type":"Assign","name":"y","id":"id_8a286bc7_8a4c_49ad_80d9_d323e777770a","value":"1"}],"id":"id_997d173a_9cd3_4535_b421_3337a8a4f9b1"},"condition":"x==nr","@type":"If","id":"id_d742a8ef_f239_4d33_9813_ed6c990ff542"},{"@type":"Return","id":"id_10b6235b_7934_432e_9ad2_580563e192bc","maybeValue":null}],"parameters":[]}],"name":"Indovina il numero (casuale)","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_f29c29dd_9122_4f75_816a_770a00045d5f"},{"newline":true,"@type":"Output","id":"id_14dc549f_1c5b_4637_a73e_240932f4f148","value":"\"you have to guess a number\""},{"newline":true,"@type":"Output","id":"id_70de5cbe_cd80_4b87_aafa_9d6e89e42d16","value":"\"the max number is 2024\""},{"newline":true,"@type":"Output","id":"id_807e9cf6_af0b_4041_ab52_5c010cf7a52f","value":"\"good luck\""},{"@type":"Declare","tpe":"Integer","name":"n","id":"id_d66725d9_d51a_4e1c_af30_ea5ff02c3aa4","initValue":"randomInt(1001)"},{"@type":"Declare","tpe":"Integer","name":"nr","id":"id_9007a39b_bb7b_45f7_923e_757121c23b87","initValue":"343"},{"falseBlock":{"statements":[{"@type":"Assign","name":"nr","id":"id_aa0f0d53_a4f7_4415_a7f5_082f169e861d","value":"n+nr-321+n"}],"id":"id_67da1585_d851_40a2_bc47_c688269e1e60"},"trueBlock":{"statements":[{"@type":"Assign","name":"nr","id":"id_7f254844_f38e_4e7f_8f4f_65caedd71b47","value":"nr*2-n"}],"id":"id_ee4aaf8a_65be_4024_b5db_f08f489d03ac"},"condition":"n<nr*2","@type":"If","id":"id_ad65fba2_0e93_4536_9e01_722e992e4e8b"},{"@type":"Declare","tpe":"Integer","name":"x","id":"id_9229525a_06aa_4c00_befd_8a927acf76ef","initValue":null},{"@type":"Declare","tpe":"Integer","name":"y","id":"id_37970c05_8977_4869_bf86_5935c11c297a","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"z","id":"id_bac50a47_9a41_4f9f_8e4e_c131bffa25d5","initValue":"1"},{"condition":"y==1==false","@type":"DoWhile","id":"id_66ec981c_3800_474e_9748_07a2fbbefe05","body":{"statements":[{"@type":"Input","name":"x","id":"id_f9bef366_5364_43b8_9934_33ed1877fa5f","prompt":null},{"@type":"Call","id":"id_bb4544ae_dc64_4a8d_85ca_339f57a9dd02","value":"giusto()"}],"id":"id_8c79c184_394a_40bd_9f2a_b2979b2076f0"}},{"newline":true,"@type":"Output","id":"id_40bf6378_bece_48a0_81b5_b098f90c0d5d","value":"\"GIUSTO!!!\""},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_4721ec8a_d8e5_4712_ba02_3b431ea09867","value":"\"hai impiegato\""},{"newline":true,"@type":"Output","id":"id_53d354cf_059d_4634_956c_afc05495e672","value":"z"},{"newline":true,"@type":"Output","id":"id_68ae37a9_7212_4af6_ac17_58c54c3737a1","value":"\"tentativi\""}],"id":"id_0a9ebef2_cc74_4426_9942_a26b877dac3e"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3030c30b_5d8d_4aed_bc29_724e62355e11","value":"\"hai indovinato al primo colpo\""}],"id":"id_0ba6a512_e0a1_41ad_8108_2ae52bbffe8f"},"condition":"z==1","@type":"If","id":"id_f11e55b5_863e_47f3_83d7_23589705ff4f"},{"@type":"Return","id":"id_79d5ea5a_50ac_4626_acbd_cc2d59f0b84d","maybeValue":null}],"parameters":[]},"id":"id_184df7fb_1ecc_4ed2_bd76_ba87412e5aca","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"javascript","showGenCode":true},"version":"0.2","revision":2781}