{"id":101,"date":"2022-01-10T09:14:56","date_gmt":"2022-01-10T09:14:56","guid":{"rendered":"https:\/\/lagzian.com\/?p=101"},"modified":"2022-01-10T12:01:39","modified_gmt":"2022-01-10T12:01:39","slug":"tic-tac-toe-on-python","status":"publish","type":"post","link":"https:\/\/lagzian.com\/index.php\/2022\/01\/10\/tic-tac-toe-on-python\/","title":{"rendered":"Tic-Tac-Toe on Python"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/lagzian.com\/wp-content\/uploads\/2022\/01\/TicTacToe.zip\">Download<\/a> the script and run it with the Python!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The program has five main functions:<ol><li>Input validation: The proper input will be checked by the function.<\/li><li>Game matrix visualizer: After each move from each player, the matrix will be printed by the function.<\/li><li>Draw checker: The function will check whether the game is drawn or not.<\/li><li>Judge: The function will check the game after each move to announce who the winner is.<\/li><li>Game handler: The function will run the other functions and ask the inputs (such as the players&#8217; name, coordination of the players&#8217; movements.)<\/li><\/ol><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download the script and run it with the Python! The program has five main functions: Input validation: The proper input will be checked by the function. Game matrix visualizer: After each move from each player, the matrix will be printed by the function. Draw checker: The function will check whether the game is drawn or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":103,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-101","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/lagzian.com\/index.php\/wp-json\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lagzian.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lagzian.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lagzian.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lagzian.com\/index.php\/wp-json\/wp\/v2\/comments?post=101"}],"version-history":[{"count":3,"href":"https:\/\/lagzian.com\/index.php\/wp-json\/wp\/v2\/posts\/101\/revisions"}],"predecessor-version":[{"id":129,"href":"https:\/\/lagzian.com\/index.php\/wp-json\/wp\/v2\/posts\/101\/revisions\/129"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lagzian.com\/index.php\/wp-json\/wp\/v2\/media\/103"}],"wp:attachment":[{"href":"https:\/\/lagzian.com\/index.php\/wp-json\/wp\/v2\/media?parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lagzian.com\/index.php\/wp-json\/wp\/v2\/categories?post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lagzian.com\/index.php\/wp-json\/wp\/v2\/tags?post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}