by @Alfie Dickinson Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_d2d40891_0c10_46be_a9f1_8cb625297d25"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"currentpoints","lengthValue2":"5","id":"id_02651738_6cf1_4b13_a3d9_4ea9fef52a19","initValue":"101"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"dartsthrown","lengthValue2":"5","id":"id_f770abd2_e922_4bef_b83c_f515f3c14468","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"throwscore","lengthValue2":"5","id":"id_94c8dd68_9713_4c2c_ba54_3f4c04a304ea","initValue":null},{"newline":true,"@type":"Output","id":"id_f6a736b4_89c0_4dcd_98aa_3f25837d067e","value":"\"game started you have 101 points\""},{"condition":"currentpoints>0","@type":"While","id":"id_49ab8bc2_749c_4dba_ab80_ffbbcc2fba3d","body":{"statements":[{"@type":"Input","name":"throwscore","id":"id_a5232a31_263d_4772_8df2_7d45bd0461bb","prompt":null},{"@type":"Assign","name":"currentpoints","id":"id_cec60e65_b5b5_4614_97b5_f8e4555b3c62","value":"currentpoints - throwscore"},{"@type":"Assign","name":"dartsthrown","id":"id_2f55adcd_ff0d_4ade_ad76_5f42c224dc7f","value":"dartsthrown + 1"},{"falseBlock":{"statements":[],"id":"id_40b4b8bc_f3c6_4cc7_9dba_bea532bb548f"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_5c715007_20fa_4c32_8bd6_e31586b61f67","value":"\"Points needed to reach zero: \" + (currentpoints)"}],"id":"id_29d1b890_3568_4e2a_89ab_6936903726ba"},"condition":"currentpoints>0","@type":"If","id":"id_b8346f48_3489_4bf3_b184_e24ada31d4f7"}],"id":"id_57458ff1_3807_4d59_9f23_13896b7acb98"}},{"newline":true,"@type":"Output","id":"id_63e3585a_6186_43aa_8685_27520c2b85bd","value":"\"Total darts thrown: \" + (dartsthrown)"},{"@type":"Return","id":"id_71b7b584_a54d_4691_8e61_1646265819d5","maybeValue":null}],"parameters":[]},"id":"id_e1020143_298b_46c3_9bf5_613ed6bc848e","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":325}