{"functions":[],"name":"darts","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_5275b032_926c_4f2f_91ef_b3f8b7839cf5"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_aff8e8a3_e6e0_4b00_9154_b5ba07cec12c","initValue":"101"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"scored","lengthValue2":"5","id":"id_ec30d24a_d183_4225_9b1e_b2081ed8b6cf","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"attempts","lengthValue2":"5","id":"id_472d475b_f4b3_41a7_9083_2f8f2a266a0d","initValue":"0"},{"newline":true,"@type":"Output","id":"id_4fa3b834_879d_4e78_ac04_6418248fdd95","value":"\"you have to score 101 or more to win in this game of darts\""},{"newline":true,"@type":"Output","id":"id_d1bc0a31_bf04_4c09_8797_649a2eba61ae","value":"\"how many did you get in the first attempt?\""},{"@type":"Input","name":"scored","id":"id_d453ca08_c509_4417_9dcb_125e9afd6198","prompt":null},{"@type":"Assign","name":"attempts","id":"id_1e6e85ce_1c38_42f4_98ca_fc0a98b50c8c","value":"attempts+1"},{"@type":"Assign","name":"total","id":"id_bd5daed4_416b_4922_bed4_5bb3a1524113","value":"101-scored"},{"newline":true,"@type":"Output","id":"id_425beb5e_6610_4143_8941_d261fa5c50d3","value":"\"you have \" + total + \""},{"condition":"total>0","@type":"While","id":"id_23288ace_6b81_4c1c_8556_e813aacb7f46","body":{"statements":[{"newline":true,"@type":"Output","id":"id_10fe9aa1_aff4_492e_9c50_c6c598ea180a","value":"\"not enough yet, try again\""},{"newline":true,"@type":"Output","id":"id_0a9e1b21_02fe_41c0_8f3b_dcbb3af1b847","value":"\"how many this time?\""},{"@type":"Input","name":"scored","id":"id_21c99537_0feb_4346_8dff_87a95e23a169","prompt":null},{"@type":"Assign","name":"total","id":"id_6370479c_f093_4303_adea_3fbd42053f2f","value":"total-scored"},{"@type":"Assign","name":"attempts","id":"id_f43f4dee_6075_4d12_9bc8_c0a0b22d3d74","value":"attempts+1"},{"newline":true,"@type":"Output","id":"id_b18f884f_b7d0_4270_a6ba_b28a028114d0","value":"attempts + \"attempts\""},{"newline":true,"@type":"Output","id":"id_d7f29988_0f18_4704_a0b7_70c8b5c49144","value":"\"you have \" + total + \"left\""}],"id":"id_5e0e3682_b623_424b_a073_9f2867c00624"}},{"newline":true,"@type":"Output","id":"id_ef59a2c3_1ebf_4e1d_abc4_493cd222cf92","value":"\"you finished with \" + total + \"in \" + attempts + \"attempts\""},{"@type":"Return","id":"id_4c751017_4be7_4021_9045_7934ad99d957","maybeValue":null}],"parameters":[]},"id":"id_98bb723d_deee_4cbc_a494_7aed3ec2c882","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":567}