by @Ethan Malejki-Morris Fork
{"functions":[],"name":"secretNumberer","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_03320dfe_54ae_418c_ab23_a2625ff9bc98"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"secretNumber","lengthValue2":"5","id":"id_ed517959_8195_4f69_96a4_63c9ca826ff3","initValue":"72"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"attempts","lengthValue2":"5","id":"id_6a5ed328_d79d_441f_9ca7_a70f6b855d33","initValue":"1"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"userInput","lengthValue2":"5","id":"id_91749417_e32b_46d5_816b_1aad02e80b1b","initValue":"0"},{"newline":true,"@type":"Output","id":"id_ff8f21c1_4302_4360_af82_fcea073730cc","value":"\"You have to guess the secret number, somewhere from 1 to 100! You have 10 attempts! Enter your first number below!\""},{"@type":"Input","name":"userInput","id":"id_ea000cc7_5dfa_47b7_8df1_28cba22ef5c1","prompt":null},{"condition":"userInput != secretNumber && attempts < 10","@type":"While","id":"id_4251efd1_2364_4bd9_8a82_305ea9cd3e72","body":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_359bb848_85e4_4493_9557_d3cccb5c9798","value":"\"Not quite! \" + userInput + \" is too low! Try again!\""}],"id":"id_59fa6a84_b9f3_4ee6_aa74_419561208003"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_6b5baad4_f7fb_4ed1_9995_118552790824","value":"\"Not quite! \" + userInput + \" is too high! Try again!\""}],"id":"id_379b60d0_d2e5_41a1_b002_4cc1250df38e"},"condition":"userInput > secretNumber","@type":"If","id":"id_6e9886c2_f774_45f3_8ec8_818373c2df2b"},{"@type":"Input","name":"userInput","id":"id_5b2b3258_0e3d_48c5_8933_687665fcd620","prompt":null},{"@type":"Assign","name":"attempts","id":"id_ebf16822_0aae_4454_8b14_9ce5fa286867","value":"attempts + 1"}],"id":"id_5347c213_59cd_499a_a41d_eed39bef7b3e"}},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_afc96e03_6a73_40b5_8063_b2b977374138","value":"\"Sorry, you ran out of attempts!\""}],"id":"id_047a7d48_5182_491c_a835_aec6bc0635c1"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_4fa317d5_bec1_4334_a6a0_04d00a6779d6","value":"\"Great job! You guessed the number, \" + secretNumber + \" in \" + attempts + \" attempts!\""}],"id":"id_c7276728_d6c5_4142_8627_dbf750d90df1"},"condition":"attempts < 10","@type":"If","id":"id_ab0a92af_f15e_4ca1_9de2_39ae3a6702ec"},{"@type":"Return","id":"id_30335bf3_842a_41a7_a792_951acb29ebad","maybeValue":null}],"parameters":[]},"id":"id_27e7a5fa_05d0_4331_b7bd_da21194051fb","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":698}