{"id":1189,"date":"2015-04-07T16:32:08","date_gmt":"2015-04-07T23:32:08","guid":{"rendered":"http:\/\/sites.evergreen.edu\/compcog15\/?page_id=1189"},"modified":"2015-04-07T16:32:08","modified_gmt":"2015-04-07T23:32:08","slug":"tic-tac-toe","status":"publish","type":"page","link":"https:\/\/sites.evergreen.edu\/compcog15\/classes\/week-2\/april-8\/tic-tac-toe\/","title":{"rendered":"Tic Tac Toe"},"content":{"rendered":"<header class=\"entry-header\" style=\"color: #373737\">\n<h1 class=\"entry-title\" style=\"font-style: inherit;color: #000000\">Tic Tac Toe<\/h1>\n<\/header>\n<div class=\"entry-content\" style=\"color: #373737\">\n<h1 style=\"font-style: inherit;color: #000000\">TIc Tac Toe<\/h1>\n<div style=\"font-weight: inherit;font-style: inherit\">\n<h2 style=\"font-style: inherit;color: #000000\">Your task is to finish a program that will teach the computer to play and win (tie at worst) the game of Tic Tac Toe.\u00a0 You will be given a program that plays through the 4th move.\u00a0 You will need to write code to handle the 5th, 7th, and 9th move correctly.\u00a0 Here are the template programs:<\/h2>\n<h2 style=\"font-style: inherit;color: #000000\"><a style=\"font-weight: inherit;font-style: inherit;color: #1982d1\" href=\"http:\/\/ada.evergreen.edu\/~vanetta\/TTTexamples\/TTTExample1Sp12.html\">TTTButtons<\/a><br \/>\n<a style=\"font-weight: inherit;font-style: inherit;color: #1982d1\" href=\"http:\/\/ada.evergreen.edu\/~vanetta\/TTTexamples\/TTTExample2Sp12.html\">TTTsimple<\/a><br \/>\n<a style=\"font-weight: inherit;font-style: inherit;color: #1982d1\" href=\"http:\/\/ada.evergreen.edu\/~vanetta\/TTTexamples\/TTTemplateSp12.html\">TTTemplate<\/a><\/h2>\n<h2 style=\"font-style: inherit;color: #000000\">You will ONLY need to use if statements.\u00a0 You may need to nest the if statements, or you can use the and(&amp;&amp;) extension to the if statement. You may use the else extension to the if statement.\u00a0 No loops, nothing extra<\/h2>\n<h2 style=\"font-style: inherit;color: #000000\">EXTRA:\u00a0 Once you have your program working,\u00a0 here are a few extensions:<br \/>\nDetermine who wins and who loses (the computer should never lose)<br \/>\nLet the human player go first<br \/>\nTry a different strategy to play the game<br \/>\nTry a different first move<\/h2>\n<h2 style=\"font-style: inherit;color: #000000\">CHALLENGE: \u00a0 Write a program that lets the computer learn on its own how to win at TTT.\u00a0 See me.<\/h2>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Tic Tac Toe TIc Tac Toe Your task is to finish a program that will teach the computer to play and win (tie at worst) the game of Tic Tac Toe.\u00a0 You will be given a program that plays through the 4th move.\u00a0 You will need to write code to handle the 5th, 7th, and [&hellip;]<\/p>\n","protected":false},"author":274,"featured_media":0,"parent":1139,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"_mi_skip_tracking":false},"_links":{"self":[{"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/pages\/1189"}],"collection":[{"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/users\/274"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/comments?post=1189"}],"version-history":[{"count":0,"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/pages\/1189\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/pages\/1139"}],"wp:attachment":[{"href":"https:\/\/sites.evergreen.edu\/compcog15\/wp-json\/wp\/v2\/media?parent=1189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}