{"functions":[],"name":"Darts calc","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_82c6a1de_a5a1_4129_b5d6_c4d534357b6b"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Points","lengthValue2":"5","id":"id_1662a5ae_915d_45ae_ae6e_b41dbaef2ec8","initValue":"100"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Score","lengthValue2":"5","id":"id_e61c88d1_1200_4684_af1e_ba69e7cc9486","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Tries","lengthValue2":"5","id":"id_4974f6d3_15d2_4e33_8a3e_4b07867ff457","initValue":"1"},{"newline":true,"@type":"Output","id":"id_3ad9df0e_392a_4cfe_9fc6_ba2b5adc4067","value":"\"Welcome! Please throw you dart and state where the dart lands. Good luck!\""},{"newline":true,"@type":"Output","id":"id_e8e44c7e_f0d2_4b3f_8fbf_dbf81e53d5a7","value":"\"Please put in your first score in your throw.\""},{"@type":"Input","name":"Score","id":"id_1fac194e_c1e0_4bea_8732_56f7ece58c4d","prompt":null},{"condition":"Points>=0","@type":"While","id":"id_4838074f_2c3d_492e_834d_014bedebcb69","body":{"statements":[{"@type":"Assign","name":"Points","id":"id_ebfc331b_c4b3_40ef_812e_c5b8fc05f8ae","value":"Points-Score"},{"@type":"Assign","name":"Tries","id":"id_6db0a35f_ed1b_4ae8_8045_ef0ab0856c7f","value":"Tries + 1"},{"newline":true,"@type":"Output","id":"id_840def3b_6c0b_451e_a633_33ebd871efe4","value":"\"Keep going. You have \" + Points + \" points left, and you have gone through \" + Tries + \" tries.\""},{"@type":"Input","name":"Score","id":"id_c4da8c7e_ee3d_45ad_9b29_2556d100f5ea","prompt":null}],"id":"id_46f3638a_7670_4eb3_b11e_eee55cfd19e6"}},{"newline":true,"@type":"Output","id":"id_8b07ed8f_39b7_46bb_ab03_9241954d44c0","value":"\"The game is over. It took you \" + Tries + \" tries to get to 0.\""},{"@type":"Return","id":"id_c3afb03a_fef5_44fa_94e0_5190eab75a66","maybeValue":null}],"parameters":[]},"id":"id_b7828a74_3284_45f0_8cef_2dcbf31d3581","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":988}