{"functions":[],"name":"Memory guessing game!","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_a6ab9457_bebb_40d6_accc_ee07a4e5d20e"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"secretnum","lengthValue2":"5","id":"id_a9fbe181_e816_42f7_be97_9957a0bd2aa9","initValue":"randomInt(10)"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"attempts","lengthValue2":"5","id":"id_b837a7da_eeca_433c_937d_13a6d66a2a86","initValue":"4"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"usernum","lengthValue2":"5","id":"id_0d264c51_3c12_417c_91cf_74cf2639689e","initValue":null},{"newline":true,"@type":"Output","id":"id_762f709d_85ef_46fb_b204_63764a5fd45d","value":"\"Try and guess my number! (Hint - it's between 0 and 10)\""},{"@type":"Input","name":"usernum","id":"id_53ba167c_d2de_4ddf_9130_26e56d8dbb9c","prompt":null},{"condition":"usernum != secretnum && attempts > 0","@type":"While","id":"id_dcb8227a_b7d0_4591_bbd4_8f5610453384","body":{"statements":[{"newline":true,"@type":"Output","id":"id_726c050c_0730_4dc6_811b_5ce730cead64","value":"\"It was not \" + usernum"},{"newline":true,"@type":"Output","id":"id_3f483c65_0d41_4de9_8f1a_9a17d7a8b6a6","value":"\"Guesa again!\""},{"newline":true,"@type":"Output","id":"id_ef085f15_6821_4c7b_9001_ceb556a2fb00","value":"\"You have \" + attempts + \" attempts remaining.\""},{"@type":"Input","name":"usernum","id":"id_9db07654_862a_4cac_b7df_c40b829fb733","prompt":null},{"@type":"Assign","name":"attempts","id":"id_9e6088c8_8c68_4281_9658_746959912373","value":"attempts - 1"},{"falseBlock":{"statements":[],"id":"id_42f6d9c8_6d71_4c4f_a10a_b14f68851171"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3dd12a64_32c3_4926_a64b_514f0b04de8f","value":"\"HINT: the number is more then 5\""}],"id":"id_80273f5f_2976_4c64_b8be_97595754ef7c"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_73b179ce_d9ad_46fd_9c9a_5e0be45a6fdd","value":"\"HINT: the number is less than 6\""}],"id":"id_8e133256_12f9_4eb7_9732_8af779b8a664"},"condition":"secretn <= 5","@type":"If","id":"id_39d5e62b_e417_4c1e_a325_8e3f4dfffe13"}],"id":"id_691d3baa_7c4f_409f_9beb_5e4be474eda8"},"condition":"attempts < 2","@type":"If","id":"id_64f9f58a_cdb8_45c9_891d_c44429ed4b32"}],"id":"id_87c5b139_3744_4ec5_bef4_451125898a82"}},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_5b6c33bd_8fcb_4462_8d8e_1cc3b7f39e21","value":"\"Oh no! You used up all your attempts! Better luck next time!\""},{"newline":true,"@type":"Output","id":"id_b6336895_1660_4259_ac03_3f8d21953262","value":"\"The number was \" + secretnum"}],"id":"id_b347ea58_910e_4148_b552_5fe89be21853"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_af18be13_20f8_48a4_9c9a_5529db074585","value":"\"You got it!\""},{"newline":true,"@type":"Output","id":"id_2a69709b_6df8_48bc_b160_56628e8ffb7a","value":"\"It only took you \" + (5-attempts) + \" attempt(s)!\""}],"id":"id_45263805_5c33_4c05_bc66_802a9b0e1b83"},"condition":"usernum == secretnum","@type":"If","id":"id_a9678b74_763e_403e_9e3f_b8ba88e3ad4f"},{"@type":"Return","id":"id_8484d0ec_ddfa_45fa_b748_f8ddbb359f5b","maybeValue":null}],"parameters":[]},"id":"id_e0ea66a1_b0b2_403f_b9b0_7574bbe3a180","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":806}