by @Luke O'Mara Fork
{"functions":[],"name":"guessing game","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_927f404e_eaa1_40e9_b832_8ebc99ef537f"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"num","lengthValue2":"5","id":"id_a5465838_c944_44bc_b350_970afa078ca6","initValue":"13"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"guess","lengthValue2":"5","id":"id_f4be4c2a_4423_4158_8501_4da16e03395f","initValue":null},{"newline":true,"@type":"Output","id":"id_0694323a_096c_4e41_be7e_d0e6acd4018b","value":"\"guess the numer\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"num1","lengthValue2":"5","id":"id_8beae5a6_20d0_4a19_a342_c19434ed805b","initValue":null},{"@type":"Input","name":"num1","id":"id_891e81b5_4143_4752_b7b4_ec520d9728c5","prompt":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"attempts","lengthValue2":"5","id":"id_3fd83e27_8b77_468e_874d_ec4303517cec","initValue":"1"},{"condition":"num1 != num || attempts <=5","@type":"While","id":"id_067d50d7_df2c_40db_a334_ab7446a3edbf","body":{"statements":[{"@type":"Assign","name":"attempts","id":"id_a86cb4fc_b546_4c74_a608_8fc0f1390ee2","value":"attempts + 1"},{"newline":true,"@type":"Output","id":"id_f9cc9176_af58_4ff3_afed_b5b4534dbec0","value":"\"guess again\""},{"@type":"Input","name":"num1","id":"id_51afb8ae_f044_45a2_8ab1_d83f29d2884a","prompt":null},{"falseBlock":{"statements":[],"id":"id_df6995a1_175d_4b9d_8449_df30479125eb"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_56fcc127_d01d_4223_a9b4_1cd3dc3e5b1e","value":"\"too many tries,your out\""}],"id":"id_cf224e3d_8253_44c5_9912_3aa6647c1a14"},"condition":"attempts >= 5","@type":"If","id":"id_c952691b_c4ce_4dcd_b5b6_683c147861ad"}],"id":"id_2ae228d3_bd71_47be_b063_ea7fad367076"}},{"newline":true,"@type":"Output","id":"id_0d7bc076_dd73_448d_90ad_9741917325ed","value":"\"good job you guessed right\""},{"@type":"Return","id":"id_cb291bf9_014a_4df9_8282_cd2bd03aac02","maybeValue":null}],"parameters":[]},"id":"id_ff224732_0ad9_438d_8c7b_fcfe1a43588e","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":289}