by @MARIA HABIB Fork
{"functions":[],"name":"project","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_33bdb708_be31_47f3_a804_22373a81e437"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"player1choice","lengthValue2":"5","id":"id_f6688fd4_b0bc_44c8_be30_859732cb9047","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"player2choice","lengthValue2":"5","id":"id_31e221dd_4008_4050_9046_39613bcbcd18","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"player1score","lengthValue2":"5","id":"id_1f0a6b47_dd3c_4a3f_b3c3_fdfedefd8d81","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"player2score","lengthValue2":"5","id":"id_847d36a9_432f_4238_b1d7_746b74230c7d","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"round","lengthValue2":"5","id":"id_44c02003_6d75_42bf_92ca_83b0e2294aeb","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"maxround","lengthValue2":"5","id":"id_29d016ef_6725_4325_b632_f859b550564c","initValue":null},{"newline":true,"@type":"Output","id":"id_c8ce22d1_e92a_4634_a5e2_b41cac35613c","value":"\"Enter number of rounds:\""},{"@type":"Input","name":"maxround","id":"id_faf2f25e_5ff7_46e5_90e1_8075cb9d4245","prompt":null},{"varName":"round","incr":"1","@type":"ForLoop","start":"6","end":"maxround","id":"id_41ed73c8_440d_47d4_84c2_998331b950bd","body":{"statements":[{"newline":true,"@type":"Output","id":"id_4f415ff5_6230_4332_87b9_72c59d939860","value":"\"round\"+round"},{"newline":true,"@type":"Output","id":"id_2e4abd00_4bd9_425b_b2f7_43a6ba8dda51","value":"\"Player 1 enter your choice: \""},{"@type":"Input","name":"player1choice","id":"id_a4c2c30d_bc51_45bd_9abc_c2735416e328","prompt":null},{"newline":true,"@type":"Output","id":"id_e5293df1_8d4d_4187_b1a5_193b4dbea11e","value":"\"Player 2 enter yourchoice\""},{"@type":"Input","name":"player2choice","id":"id_80555415_3e55_4416_97dd_1b9a90032065","prompt":null},{"newline":true,"@type":"Output","id":"id_1a29d9f9_0786_45fa_8c19_fa4f41b16916","value":"\"Player 1 choice\"+player1choice"},{"newline":true,"@type":"Output","id":"id_1859e9a9_c323_4fd0_b262_7b7238430a06","value":"\"Player 2 choice\"+player2choice"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_478ea1eb_a8bb_46da_b6ba_6e4f40e8b1c4","value":"\"Winner of round : player2\""},{"@type":"Assign","name":"player2score","id":"id_554ace62_325c_4eb1_8ba1_7d13ddb9d3dc","value":"player2score + 1"}],"id":"id_0d5e558f_c8c1_4517_9b28_5adbb7266d5a"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_54e3fdbf_1455_475c_a381_7e2f5a564955","value":"\"Winner of round: player1\""},{"@type":"Assign","name":"player1score","id":"id_e9c11bca_eb90_42d3_8933_a5e571d48d6a","value":"player1score + 1"}],"id":"id_346f8434_8a46_40b6_abcf_c3241de20bd6"},"condition":"(player1choice == \"rock\" && (player2choice == \"scissors\" || player2choice == \"lizard\")) || (player1choice == \"scissors\" && (player2choice == \"paper\" || player2choice == \"lizard\")) || (player1choice == \"paper\" && (player2choice == \"rock\" || player2choice == \"spock\")) || (player1choice == \"lizard\" && (player2choice == \"paper\" || player2choice == \"spock\")) || (player1choice == \"spock\" && (player2choice == \"scissors\" || player2choice == \"rock\"))","@type":"If","id":"id_47fde35a_2270_41dd_95b6_c6208958f9a9"}],"id":"id_2b5020d5_5126_4af2_b259_889d6e7e9371"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_818e8f70_fbdc_4913_a79e_0681b561466e","value":"\"Draw\""}],"id":"id_fe99bbfd_f2c9_46f9_99f2_b4bd882815f9"},"condition":"player1choice==player2choice","@type":"If","id":"id_e022063a_66c0_4aad_989a_793e96c9b534"},{"newline":true,"@type":"Output","id":"id_13662f66_9dd7_4dda_8a55_6d92afa84e05","value":"\"Updated score\""},{"newline":true,"@type":"Output","id":"id_01fe5fc4_a372_4991_8ed2_f5a667720c2a","value":"\"Player 1 score=\"+player1score"},{"newline":true,"@type":"Output","id":"id_f4c9179b_e17b_4d78_8785_d0fdc84d5f75","value":"\"Player 2 score\"+player2score"}],"id":"id_b81b077f_f534_496b_85a7_22bfe763f502"}},{"newline":true,"@type":"Output","id":"id_3f5064a9_cb07_44d2_92cf_8f4dbdf0fa69","value":"\"FINAL RESULT\""},{"newline":true,"@type":"Output","id":"id_8d4a9fa1_617d_4995_8672_1087fe03ae16","value":"\"Final score of player1:\"+player1score"},{"newline":true,"@type":"Output","id":"id_cf97e3d9_5809_45af_891f_965e20620d46","value":"\"Final score of player2\"+player2score"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_35848f6c_89b9_4093_85d1_bf0fe7384922","value":"\"Draw\""}],"id":"id_e8aac23b_97f4_4ffc_b9bc_33ff0d0bf322"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_b7747359_126a_492e_aa64_25c3c4767c45","value":"\"Overall winner= player 2\""}],"id":"id_7fc569a5_e1fd_4826_9dcd_c961f4928fec"},"condition":"player2score>player1score","@type":"If","id":"id_ffaa6423_ecb8_4bc6_a389_8f3c1d6590c7"}],"id":"id_23c194b8_1b57_4797_ad15_af1d34a4c1ae"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_b590566d_7fb2_4131_99bc_20bdb45a2878","value":"\"Overall winner = player 1\""}],"id":"id_88aa7cd5_6548_4c55_b5e0_3f31353c2084"},"condition":"player1score>player2score","@type":"If","id":"id_b1b290fa_86f4_4111_9705_71a14d8c6a20"},{"@type":"Return","id":"id_18077100_683e_4505_a679_f1cfb6a31881","maybeValue":null}],"parameters":[]},"id":"id_d7fd2e4a_3ea0_4874_aadd_22331eb67fe0","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"c++","showGenCode":false},"version":"0.3","revision":1272}