by @Gautham Subramani Fork
{"functions":[],"name":"Darts","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_5483085f_8e10_401a_be22_667fd3793739"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalpoints","lengthValue2":"5","id":"id_4cbb8d06_244c_460e_a6b8_ce72ba61d53a","initValue":null},{"@type":"Assign","name":"totalpoints","id":"id_b614d282_6325_4efb_8b5d_cf7232e44989","value":"101"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"dartcount","lengthValue2":"5","id":"id_790d0938_3bb5_48a7_9916_06dde5b4dd1c","initValue":null},{"@type":"Assign","name":"dartcount","id":"id_05babd0a_7141_4174_9cbc_21a73ebb2438","value":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"score","lengthValue2":"5","id":"id_32fa6894_fdeb_49d9_b89a_7f89a0f80a86","initValue":null},{"condition":"totalpoints > 0","@type":"While","id":"id_b5c18850_8891_4891_a15c_8f1cde5466f6","body":{"statements":[{"newline":true,"@type":"Output","id":"id_937a2c17_84f9_482c_9d1a_3c6078c80127","value":"\"Enter how much points you scored\""},{"@type":"Input","name":"score","id":"id_9b51a6ff_3ff1_4433_8a19_1969c9d629d2","prompt":null},{"@type":"Assign","name":"dartcount","id":"id_aba416da_981b_45c7_9190_cd4a169ba0c2","value":"dartcount + 1"},{"@type":"Assign","name":"totalpoints","id":"id_31c9c695_f52f_4f86_9a13_befacb20cfc1","value":"totalpoints-score"},{"falseBlock":{"statements":[],"id":"id_d9918954_0c02_4a1a_9e21_4ca94050425c"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_f5fc3c23_5066_4ed7_9f33_f6911b024770","value":"\"Game Over, the amount of darts you used was \" + (dartcount)"}],"id":"id_da8fee54_dc4a_4c57_995a_3352b40d0998"},"condition":"totalpoints <= 0","@type":"If","id":"id_2f652af0_4730_4156_967a_c8d7fe2f6893"}],"id":"id_57db1098_76ba_4e7f_80fc_bdb3eaca96c8"}},{"@type":"Return","id":"id_1aa94688_56fc_47f9_a2c6_cce84da50f58","maybeValue":null}],"parameters":[]},"id":"id_b3a70a0d_2ae7_44e2_a489_6c13d242b948","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":true},"version":"0.3","revision":327}