by @Alfie Dickinson Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_8d1e83d9_3672_4419_8c4e_df302dfe8d81"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"secretnumber","lengthValue2":"5","id":"id_5a382866_c3c8_4d74_8314_5317855769c7","initValue":"24"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"userguess","lengthValue2":"5","id":"id_851b096d_8549_4fcc_adf4_8b316c352629","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"attempts","lengthValue2":"5","id":"id_43902040_30b3_4723_938a_8eca0f8bec5e","initValue":null},{"newline":true,"@type":"Output","id":"id_5dd38d1b_7a69_48df_8dc1_c54bfb64e6a4","value":"\"Guess my number (1-100) 3 attempts\""},{"@type":"Input","name":"attempts","id":"id_1b47b284_5fb0_403a_b4ab_a38dbdbfe8bf","prompt":null},{"condition":"userguess != secretnumber || attempts != 0","@type":"While","id":"id_2f654c93_d909_4f7d_bfb7_96db9b5dd5ea","body":{"statements":[{"newline":true,"@type":"Output","id":"id_cf285f97_0a90_49af_baa5_a3b5e9f73704","value":"\"wrong\""},{"@type":"Input","name":"attempts","id":"id_65126fa7_9bcd_4c79_aa52_8413e6f31963","prompt":null},{"@type":"Assign","name":"attempts","id":"id_5fbb5c21_7ae5_4f75_8a00_841697854551","value":"attempts - 1"}],"id":"id_ceb6f757_00cf_4d8f_a881_b1944400a4d2"}},{"newline":true,"@type":"Output","id":"id_b4488509_bf38_4424_8d5f_62806ca608e9","value":"\"wel don\""},{"@type":"Return","id":"id_d07e5fae_1736_43f2_8670_8a0e3e0df3c6","maybeValue":null}],"parameters":[]},"id":"id_1f3c94f9_30e9_49bc_8cc5_2075645b574c","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":292}