{"id":3286,"date":"2023-11-01T08:26:09","date_gmt":"2023-11-01T08:26:09","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=3286"},"modified":"2023-11-07T05:23:37","modified_gmt":"2023-11-07T05:23:37","slug":"play-tic-tac-toe-on-serial-monitor-using-vega-aries-board","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/play-tic-tac-toe-on-serial-monitor-using-vega-aries-board\/","title":{"rendered":"Play Tic-Tac-Toe on Serial monitor using VEGA ARIES Board"},"content":{"rendered":"\n<p>The game is to be played between two people (in this program between HUMAN and COMPUTER). One of the players chooses \u2018O\u2019 and the other \u2018X\u2019 to mark their respective cells. The game starts with one of the players and the game ends when one of the players has one whole row\/ column\/ diagonal filled with his\/her respective character (\u2018O\u2019 or \u2018X\u2019). If no one wins, then the game is said to be draw.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows 10 or above\/Linux (64 bit)<\/li>\n\n\n\n<li>Arduino IDE<\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\" target=\"_blank\" rel=\"noreferrer noopener\">VEGA ARIES Board support package<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/vegaprocessors.in\/blog\/simple-pong-game-on-led-matrix-using-aries-v3-0-board\/#hardware-required\"><\/a>Hardware Required<\/h2>\n\n\n\n<p>This project can be done with OLED display, for that refer <a href=\"https:\/\/vegaprocessors.in\/blog\/play-tic-tac-toe-on-oled-display-using-vega-aries-board\/\" data-type=\"link\" data-id=\"https:\/\/vegaprocessors.in\/blog\/play-tic-tac-toe-on-oled-display-using-vega-aries-board\/\">tic-tac-toe on OLED display<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ARIES v3.0 Board<\/li>\n\n\n\n<li>USB type C to USB type A cable<\/li>\n<\/ul>\n\n\n\n<p><strong>Not<\/strong><strong>e:<\/strong>&nbsp;&nbsp;All of the following boards can be used for this project<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv2.php\">ARIES v2.0<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\">ARIES v3.0<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesmicro.php\">ARIES Micro<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesdot.php\">ARIES DOT<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesiot.php\">ARIES IoT<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<p>We do not need to connect any external hardware for this project, so let\u2019s power up the board. Make sure the Laptop\/Desktop\/PC which we\u2019re using should be pre-installed with Arduino IDE and VEGA ARIES boards of latest version.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Now,&nbsp;<strong>Open&nbsp;<\/strong>the Arduino IDE<\/li>\n\n\n\n<li>Make sure you have selected\u00a0ARIES v3\u00a0Board from\u00a0<strong>Tools<\/strong>\u00a0->\u00a0<strong>Board<\/strong>\u00a0->\u00a0<strong>VEGA Processor: ARIES Boards<\/strong>\u00a0->\u00a0<strong>ARIES v3<\/strong><\/li>\n\n\n\n<li>Enable the flash mode from <strong>Tools<\/strong> -> <strong>Flash Mode<\/strong> -> <strong>Enabled<\/strong><\/li>\n\n\n\n<li>Select Programmer as VEGA FLASHER from\u00a0<strong>Tools<\/strong>\u00a0->\u00a0<strong>Programmer<\/strong>\u00a0->\u00a0<strong>VEGA FLASHER<\/strong><\/li>\n\n\n\n<li>Also select appropriate port,&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Port<\/strong>&nbsp;-&gt;&nbsp;<strong>COM* (ARIES Board)<\/strong><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"836\" height=\"487\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/ticTacToeUART.png\" alt=\"\" class=\"wp-image-4478\" style=\"aspect-ratio:2.10727969348659;width:688px;height:auto\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/ticTacToeUART.png 836w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/ticTacToeUART-300x175.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/ticTacToeUART-768x447.png 768w\" sizes=\"auto, (max-width: 836px) 100vw, 836px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Open&nbsp;<strong>File<\/strong>&nbsp;-&gt;&nbsp;<strong>Examples<\/strong>&nbsp;-&gt; Under&nbsp;<strong>Examples for ARIES v3<\/strong>&nbsp;-&gt;&nbsp;<strong>UART <\/strong>-&gt;<strong> tic-tac-toe<\/strong><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"713\" height=\"936\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/tictactoe_demo-1.png\" alt=\"\" class=\"wp-image-3571\" style=\"width:468px;height:615px\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/tictactoe_demo-1.png 713w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/tictactoe_demo-1-229x300.png 229w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Now,&nbsp;<strong>Upload<\/strong>&nbsp;the code in ARIES v3 board.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<p>Once the code is uploaded, an empty 3&#215;3 grid will display on serial monitor. Also, it will display the turn.  If it&#8217;s your turn, you can make a move using the 1\u20269 keys (plus Enter) from the Serial Monitor:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Untitled-11-1024x1024.png\" alt=\"\" class=\"wp-image-3579\" style=\"width:169px;height:169px\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Untitled-11-1024x1024.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Untitled-11-300x300.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Untitled-11-150x150.png 150w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Untitled-11-768x768.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Untitled-11.png 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>The game is played with X and O as the two players&#8217; symbols, where X goes for CPU and O goes for You. A player wins the game if they get three of their symbols in a row (horizontally, vertically, or diagonally). If a player successfully forms a winning pattern, they announce their victory.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"432\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Untitled-10-1024x432.png\" alt=\"\" class=\"wp-image-3573\" style=\"width:895px;height:378px\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Untitled-10-1024x432.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Untitled-10-300x127.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Untitled-10-768x324.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Untitled-10-1536x648.png 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Untitled-10-2048x864.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The game is to be played between two people (in this program between HUMAN and COMPUTER). One of the players chooses \u2018O\u2019 and the other \u2018X\u2019 to mark their respective cells. The game starts with one of the players and the game ends when one of the players has one whole row\/ column\/ diagonal filled [&hellip;]<\/p>\n","protected":false},"author":14,"featured_media":3577,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94],"tags":[95,7,31,24],"class_list":["post-3286","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aries-with-arduinoide","tag-aries-v3-board","tag-cdac","tag-thejas32","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=3286"}],"version-history":[{"count":15,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3286\/revisions"}],"predecessor-version":[{"id":4479,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3286\/revisions\/4479"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media\/3577"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=3286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=3286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=3286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}