{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_3866bbe1_8f00_40d5_95e2_e498c6a99d77"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"player1choice","lengthValue2":"5","id":"id_3a04bc3a_85b4_44fa_8ed5_559432a419a6","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"player2choice","lengthValue2":"5","id":"id_4d0f809b_6737_484c_a85e_aa1592adfcf7","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"player1score","lengthValue2":"5","id":"id_4426cbae_602b_41dd_89e8_75e949211739","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"player2score","lengthValue2":"5","id":"id_143c5c6b_9952_4c5f_89be_9e467c92015a","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"round","lengthValue2":"5","id":"id_cd100c01_0f2d_4068_bd4a_c46d0ec217d0","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"maxround","lengthValue2":"5","id":"id_d2308d5f_8800_4567_aeb9_ac405ffbe681","initValue":null},{"newline":true,"@type":"Output","id":"id_59991294_45e2_49c9_b76f_7bf46a2395ed","value":"\"Enter number of rounds:\""},{"@type":"Input","name":"maxround","id":"id_e4271cdc_b33b_482b_80cf_ce7e7c44a537","prompt":null},{"varName":"round","incr":"1","@type":"ForLoop","start":"1","end":"maxround","id":"id_e443002d_9f84_409a_83df_4ee4d333bfc7","body":{"statements":[{"newline":true,"@type":"Output","id":"id_1dc194df_7d6d_489d_8961_c035e035c132","value":"\"round \"+round"},{"newline":true,"@type":"Output","id":"id_aca10f97_6ead_44fe_844c_a30853c9dbe8","value":"\"Player 1 enter your choice:\""},{"@type":"Input","name":"player1choice","id":"id_44e070be_4835_44d5_a4ee_737f8b4adb2f","prompt":null},{"newline":true,"@type":"Output","id":"id_f28d810f_ffd9_4cbb_87c8_dfed559f940b","value":"\"Player 2 enter your choice:\""},{"@type":"Input","name":"player2choice","id":"id_6b2aa7b5_8bf7_4b7e_a845_9450634a9dbd","prompt":null},{"newline":true,"@type":"Output","id":"id_112addf2_725c_4823_81a7_f86ff4bbd65a","value":"\"Player 1 Choice: \" + player1choice"},{"newline":true,"@type":"Output","id":"id_1eb9e508_e276_496b_a676_46c60076a360","value":"\"Player 2 Choice: \" + player2choice"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3ca346fc_adfb_492b_b987_5bcdfc7d7b3d","value":"\"Winner of Round: Player 2\""},{"@type":"Assign","name":"player2score","id":"id_503259b3_4e6d_4556_8d6c_4d08921597e7","value":"player2score + 1"}],"id":"id_cb1a55b1_8178_4eb6_bbf1_f464b7f56c92"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_1dacabf1_743e_4370_a9d6_f831153a4392","value":"\"Winner of Round: Player 1\""},{"@type":"Assign","name":"player1score","id":"id_f5a03fa0_d84e_4234_b7ef_51dbe3b7555a","value":"player1score + 1"}],"id":"id_90823add_790a_4e73_bede_569b219eb57e"},"condition":"(player1choice == \"rock\" && (player2choice == \"scissors\" || player2choice == \"lizard\")) || (player1choice == \"paper\" && (player2choice == \"rock\" || player2choice == \"spock\")) || (player1choice == \"scissors\" && (player2choice == \"paper\" || player2choice == \"lizard\")) || (player1choice == \"lizard\" && (player2choice == \"spock\" || player2choice == \"paper\")) || (player1choice == \"spock\" && (player2choice == \"rock\" || player2choice == \"scissors\"))","@type":"If","id":"id_581a2cfe_39a0_44c2_bdde_adcb0c8215a3"}],"id":"id_26cae887_62b4_4aac_afe7_3bfd4ce51b74"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_8ca43283_11f7_4012_9fc1_51ea9b8959e0","value":"\"draw \""}],"id":"id_57955d53_77ea_4ec3_8a62_cef19b0859e2"},"condition":"player1choice == player2choice","@type":"If","id":"id_82b00189_0966_490f_b5c9_34118ea81a5c"},{"newline":true,"@type":"Output","id":"id_12730751_958b_4bd6_bf9c_e4f2e03e2a5c","value":"\"Updated Scores:\""},{"newline":true,"@type":"Output","id":"id_daa680c0_b391_4af5_b64e_871ac6798dc2","value":"\"Player 1 Score = \" + player1score"},{"newline":true,"@type":"Output","id":"id_4bccdbc6_07ab_4b59_93be_d4f6e4fae525","value":"\"Player 2 Score = \" + player2score"}],"id":"id_da5109af_5155_4da0_9d07_651094770e81"}},{"newline":true,"@type":"Output","id":"id_6fac1d38_6bdd_47b4_9564_e58087e3609b","value":"\"\\n===== FINAL RESULT =====\""},{"newline":true,"@type":"Output","id":"id_3ed3129d_a350_4df8_8b36_4723135795f4","value":"\"Final Score of Player 1 = \" + player1score"},{"newline":true,"@type":"Output","id":"id_21b6fdc6_e05e_44f7_800f_87264c8e3517","value":"\"Final Score of Player 2 = \" + player2score"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3d37c3b1_5e19_4313_a5c0_366aa4d75cba","value":"\"Overall Result: Draw\""}],"id":"id_a0d6d726_3fbe_4f61_a57f_780ea8c4e3e4"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_a01c5721_f910_4ac0_91eb_3e2fdb63253f","value":"\"Overall Winner: Player 2\""}],"id":"id_2016958b_4e3f_42b7_bb2c_1062fb8f2650"},"condition":"player2score > player1score","@type":"If","id":"id_580b6992_e921_4537_adb4_7e7f9349a7b2"}],"id":"id_aecb5e97_b537_4188_9aaa_663c87bcb054"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_26baf256_92c7_4c43_8062_a9da51d99887","value":"\"Overall Winner: Player 1\""}],"id":"id_92ccbe37_f4a3_4df6_9835_f4e02c3aed84"},"condition":"player1score > player2score","@type":"If","id":"id_8700344f_06f3_49fc_a4df_95aa801ebba3"},{"@type":"Return","id":"id_a2bf8251_6395_46af_a18a_13a7ea68fee5","maybeValue":null}],"parameters":[]},"id":"id_9331a7e9_9854_45b8_953b_b9386c46b3ff","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":223}