{"functions":[],"name":"Choosing a number","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_dd49b58a_fe34_42f2_8433_2a7f4e34fc1d"},{"newline":true,"@type":"Output","id":"id_11a557e4_d4f2_4d7e_8fce_e6659b95197e","value":"\"This program has a secret number, let's see if you can guess it..!\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"number","lengthValue2":"5","id":"id_f80ffc72_ed45_41bd_a5be_7b2024f80aed","initValue":"148"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"attempt","lengthValue2":"5","id":"id_b63327e1_c9bf_45c2_a186_917fd8546edc","initValue":"1"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"guess","lengthValue2":"5","id":"id_fdae01df_8179_4549_a6c1_cc2998f1feaa","initValue":null},{"newline":true,"@type":"Output","id":"id_2c40215f_3a76_48dd_a17e_321d45e9d5df","value":"\"Pick a number between 1 and 200!\""},{"@type":"Input","name":"guess","id":"id_c89a0b7a_635f_4e4f_b825_0c6ef1286415","prompt":null},{"condition":"guess != number","@type":"While","id":"id_fd854f41_1c56_45a9_9ab3_1c7581755efc","body":{"statements":[{"newline":true,"@type":"Output","id":"id_ffafbb2c_cf11_4a10_81ff_9459f4d45c2e","value":"\"\" + guess + \" is not my number. Try again:\""},{"@type":"Input","name":"guess","id":"id_50a659d0_99b5_4e36_a7f9_85a9387c0f13","prompt":null},{"@type":"Assign","name":"attempt","id":"id_f58c4e8b_42b6_4ee4_b504_fb3e621742df","value":"attempt + 1"}],"id":"id_ba9b5a25_4127_4750_b797_ce68cb04a127"}},{"newline":true,"@type":"Output","id":"id_d120c2d9_4a93_4d47_b02d_f19c306326a5","value":"\"Correct! My number was 148, it took you \" + attempt + \" attempts to get there.\""},{"@type":"Return","id":"id_ebebbdcd_e443_492f_9cf5_0d0d20220b65","maybeValue":null}],"parameters":[]},"id":"id_fdf665d4_b424_4616_b24c_620dec2e42ec","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":619}