{"functions":[],"name":"Rock_Paper_S","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_4afbd104_45de_4e22_abf9_2f44fb7297c6"},{"newline":true,"@type":"Output","id":"id_dfde51ad_e7d6_4724_98ce_58c99427136f","value":"\"WELCOME TO ROCK,PAPER,SCISSOR,LIZARD and SPOCK GAME \""},{"newline":true,"@type":"Output","id":"id_5d5a01c3_faae_48d3_bcf8_28f34dc35f88","value":"\"Start your game please.\""},{"newline":true,"@type":"Output","id":"id_7d909d56_7e67_4418_9b5c_c80322714feb","value":"\"You have max 5 rounds to play\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"player1score","lengthValue2":"5","id":"id_a5570a50_476e_4169_9c1c_0bc55004909d","initValue":null},{"@type":"Assign","name":"player1score","id":"id_a217194f_6f98_43fe_bc3d_80cc483407a6","value":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"player2score","lengthValue2":"5","id":"id_73794086_e7b4_42d9_b018_f3df28268526","initValue":null},{"@type":"Assign","name":"player2score","id":"id_b6697c1c_c82a_470b_8655_542d30ecf38e","value":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"round","lengthValue2":"5","id":"id_1d930726_4f27_40cf_a503_f96dfceac5c3","initValue":null},{"@type":"Assign","name":"round","id":"id_aa015925_fbe4_4235_9fc2_e0e644cd705a","value":"1"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"player1choice","lengthValue2":"5","id":"id_42d2ba32_9373_48fb_8014_eb97d74a2569","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"player2choice","lengthValue2":"5","id":"id_f38e463a_b606_478f_8b5b_71a2a4fc09a7","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Maxround","lengthValue2":"5","id":"id_fbeb5309_d32a_47d8_9455_7e304bcf6e32","initValue":null},{"@type":"Assign","name":"Maxround","id":"id_252c1b29_65ca_4ad4_87b8_8a4493cb9204","value":"5"},{"newline":true,"@type":"Output","id":"id_4a9de7af_aaff_4d15_ae75_297998db988f","value":"\"player1score=0\""},{"newline":true,"@type":"Output","id":"id_7b60e71f_9f8d_4ebd_9254_4785c2c53311","value":"\"player2score=0\""},{"condition":"round<=Maxround","@type":"While","id":"id_72f34d5e_f223_4f4c_b4bf_63b501b1578e","body":{"statements":[{"newline":true,"@type":"Output","id":"id_52a09479_c26f_4069_b880_96e7ab0c51c6","value":"\"Round:\"+round"},{"newline":true,"@type":"Output","id":"id_33d639d2_7457_4e9c_8cba_a65231a25322","value":"\"player1, please enter your choice\""},{"newline":true,"@type":"Output","id":"id_b5096f54_12c4_40f5_9019_a05f26362245","value":"\"R=rock\""},{"newline":true,"@type":"Output","id":"id_80b31154_8d20_40cb_bb8e_eff511f76cb6","value":"\"P=paper\""},{"newline":true,"@type":"Output","id":"id_7c55f577_e313_49b2_af1f_20a804f6d538","value":"\"Sc=scissor\""},{"newline":true,"@type":"Output","id":"id_0ee7ebd2_5dac_4092_bfd0_4e30a9d563fb","value":"\"L=lizard\""},{"newline":true,"@type":"Output","id":"id_26f86db9_8874_4380_8aa3_59783e4c393f","value":"\"Sp=spock\""},{"@type":"Input","name":"player1choice","id":"id_19dc7257_55b0_4f93_92d8_430fb887a958","prompt":null},{"newline":true,"@type":"Output","id":"id_95b8f2b9_da25_4e1d_8182_d869f5cbdffd","value":"\"player1choice:\"+player1choice"},{"newline":true,"@type":"Output","id":"id_0b6de7c5_420e_491f_8923_603f39aef38a","value":"\"player2,please enter your choice\""},{"newline":true,"@type":"Output","id":"id_122bfe39_dabb_4668_8b22_0e5d5a3d3e9d","value":"\"R=rock\""},{"newline":true,"@type":"Output","id":"id_d6e821e6_ab1c_44a0_9778_1192c0bf5843","value":"\"P=paper\""},{"newline":true,"@type":"Output","id":"id_51923439_c6d8_493a_96a3_31b6c8784c0a","value":"\"Sc=scissor\""},{"newline":true,"@type":"Output","id":"id_e576d756_9b6e_41c9_9b25_178400a7fc6b","value":"\"L=lizard\""},{"newline":true,"@type":"Output","id":"id_529dd290_f70f_4472_81a0_eabbb87413b7","value":"\"Sp=spock\""},{"@type":"Input","name":"player2choice","id":"id_f28d0880_bc55_4193_93e2_c6bd2f7a647e","prompt":null},{"newline":true,"@type":"Output","id":"id_749506eb_27b5_4cb0_8d1a_c7d3f3c1c783","value":"\"player2choice:\"+player2choice"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"player2score","id":"id_8a3d6aa6_6312_4c6e_8594_e25f80755767","value":"player2score+1"},{"newline":true,"@type":"Output","id":"id_3e639da7_8b31_46d1_ad09_1fab4c293848","value":"\"Scores after round \"+round"},{"newline":true,"@type":"Output","id":"id_04f8186b_f180_4c87_95a5_79af9283026d","value":"\"player1score=\"+player1score"},{"newline":true,"@type":"Output","id":"id_b3f14aea_fb97_414d_8588_4c69a6a8d4d6","value":"\"player2score=\"+player2score"},{"newline":true,"@type":"Output","id":"id_53bc659e_efb1_443f_a7a1_ccb193cd55f5","value":"\"player2 wins the round\"+round"}],"id":"id_751a6c8e_7fc8_42ee_902f_c4c0c1ce5c82"},"trueBlock":{"statements":[{"@type":"Assign","name":"player1score","id":"id_626975e3_80c4_463c_974a_058e60b6c53b","value":"player1score+1"},{"newline":true,"@type":"Output","id":"id_968c8e12_f87e_456c_9b89_5c9c1eb32260","value":"\"player1 wins the round !\""}],"id":"id_c64fb5aa_1859_43d1_9604_c7e8d5904d0a"},"condition":"player1choice==\"Sp\"&& (player2choice==\"Sc\"||player2choice==\"R\")","@type":"If","id":"id_1855355a_3d97_4911_a443_7a8861651791"}],"id":"id_3cc99f48_1f08_4d4b_b628_0438cde4ecf7"},"trueBlock":{"statements":[{"@type":"Assign","name":"player1score","id":"id_eb2e82e7_b092_49e5_86d7_e1ecac2cb530","value":"player1score+1"},{"newline":true,"@type":"Output","id":"id_df5a7171_2c02_414f_9b69_654c206d99c4","value":"\"player1 wins the round !\""}],"id":"id_e47ab439_f6b4_4181_87d8_2ceba4794091"},"condition":"player1choice==\"L\"&& (player2choice==\"P\"||player2choice==\"Sp\")","@type":"If","id":"id_5d52cdda_c61d_450a_b733_e075f9055d00"}],"id":"id_2a175af8_420e_4fba_a7cc_921e8c473e1d"},"trueBlock":{"statements":[{"@type":"Assign","name":"player1score","id":"id_da333c73_d978_4084_b168_b0d555217a09","value":"player1score+1"},{"newline":true,"@type":"Output","id":"id_f730e1ba_ccd1_45aa_9909_39c5f000cf5f","value":"\"player1 wins the round !\""}],"id":"id_4e74b0e5_41a9_4793_aad5_be54246558ea"},"condition":"player1choice==\"Sc\" && (player2choice==\"P\"||player2choice==\"L\")","@type":"If","id":"id_2a8247ff_c2ec_41b3_befe_f578b0a32a60"}],"id":"id_c55adda0_e295_476f_a782_24e627c7a444"},"trueBlock":{"statements":[{"@type":"Assign","name":"player1score","id":"id_67de4355_9d0d_40d3_9a20_b1b3efe42dae","value":"player1score+1"},{"newline":true,"@type":"Output","id":"id_2d8e7fa7_79f5_4e5f_9c0a_df59f15e4150","value":"\"player1 wins the round!\""}],"id":"id_757b24b8_2380_4491_b235_b2f5b4a8faf9"},"condition":"player1choice==\"P\" &&( player2choice==\"R\"||player2choice==\"Sp\")","@type":"If","id":"id_db1df6d7_3e78_4e79_932a_35007d638091"}],"id":"id_acaca34d_f6cc_4e92_a257_7c963ea0afa1"},"trueBlock":{"statements":[{"@type":"Assign","name":"player1score","id":"id_b3ca086f_da19_4a56_bcdb_b83e18f2947d","value":"player1score+1"},{"newline":true,"@type":"Output","id":"id_125d3f3b_ca15_4e34_9e99_3411dd81d3a0","value":"\"Scores after round\"+round"},{"newline":true,"@type":"Output","id":"id_213ebf2f_b216_4153_9cf5_af7b8b916bb2","value":"\"player1score=\"+player1score"},{"newline":true,"@type":"Output","id":"id_64fb44ff_2bfc_4db6_95fc_45b99a6dd272","value":"\"player2score=\"+player2score"},{"newline":true,"@type":"Output","id":"id_d4b916ef_d4ce_4db7_a425_b39e54356c47","value":"\"player1 wins the round\"+round"}],"id":"id_f34d31a3_3376_4718_b628_7f9b4671168a"},"condition":"player1choice==\"R\" && (player2choice==\"Sc\"||player2choice==\"L\")","@type":"If","id":"id_646a7467_948f_408d_837b_d91991b6996c"}],"id":"id_06d6237b_83af_431f_902b_41c937c049b0"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_a97abb4e_202a_4c10_b85d_f43ec9f01cf2","value":"\"player1score=0\""},{"newline":true,"@type":"Output","id":"id_b7dee699_b682_4d10_8b0b_3193f5bc3288","value":"\"player2score=0\""},{"newline":true,"@type":"Output","id":"id_aaa29beb_f9d0_4e2a_9838_3a8ea231bf24","value":"\"This round is tie!\""}],"id":"id_50c3d19f_0f95_4e7d_992b_90852d76e74f"},"condition":"player1choice==player2choice","@type":"If","id":"id_e9c4cc81_40f6_4dbb_b061_7b48cc30a969"},{"@type":"Assign","name":"round","id":"id_4d038af7_eab2_445e_89b6_c43b62b3f2ef","value":"round+1"}],"id":"id_27e19909_8bb0_46a7_933a_edd119a71466"}},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_ce805850_d03a_42c2_9a4c_dfac4b33b5a5","value":"\"FINAL SCORE:\""},{"newline":true,"@type":"Output","id":"id_ae73ce9d_0886_4871_b7e9_ab2235df0bc1","value":"\"player1score=\"+player1score"},{"newline":true,"@type":"Output","id":"id_55bf26d5_174b_45a5_b01c_3f6684fbf425","value":"\"player2score=\"+player2score"},{"newline":true,"@type":"Output","id":"id_0be2811b_dbd7_4577_9b7f_ef72fe193b6d","value":"\"THE OVERALL MATCH IS TIE!\""}],"id":"id_5a73c3e5_71df_4a43_8645_59d85c689e98"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_4b6e184b_975b_461d_80a1_bde6215e1d1e","value":"\"FINAL SCORE\""},{"newline":true,"@type":"Output","id":"id_0aed6764_a6fe_407e_9535_733e921bba78","value":"\"player2score=\"+player2score"},{"newline":true,"@type":"Output","id":"id_2305cca1_0e9b_4833_bbdb_a0a11807bce4","value":"\"CONGRATULATIONS,PLAYER2 WINS THE MATCH!\""}],"id":"id_f0f28b86_8afe_4dd7_b5f8_b5f9360d7f12"},"condition":"player2score>player1score","@type":"If","id":"id_05239785_d483_4ce1_9be2_67943d5959a3"}],"id":"id_4dbebf45_65aa_47f5_a71a_2ee1440512a1"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_277e2494_cdbd_471d_9229_1af734083ee9","value":"\"FINAL SCORE\""},{"newline":true,"@type":"Output","id":"id_eee7a6c1_37e5_4fb2_a7ed_a43439f405dd","value":"\"player1score=\"+player1score"},{"newline":true,"@type":"Output","id":"id_e78bd6c3_d1fd_446b_a880_be3b42efa2d2","value":"\"CONGRATULATIONS,PLAYER1 WINS THE MATCH!\""}],"id":"id_722cfa72_c882_4787_8dfd_2c02c80e4f67"},"condition":"player1score>player2score","@type":"If","id":"id_3213e6da_f690_4a8b_89c3_2dbc822b04ff"},{"newline":true,"@type":"Output","id":"id_f3294e22_9c84_4a20_9856_c94b74d38fb5","value":"\"Thank you, game is over!\""},{"@type":"Return","id":"id_f06be8c3_a190_4a9f_90b5_dc5b4e2de44e","maybeValue":null}],"parameters":[]},"id":"id_5de712cd_9ff5_4da2_aa11_2773c94d15f9","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":false,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.3","revision":7751}