<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1118353858682981717</id><updated>2024-11-01T10:18:06.225+01:00</updated><category term="Programming"/><title type='text'>argo&#39;s Lair</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://argoslair.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1118353858682981717/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://argoslair.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>argoneus</name><uri>http://www.blogger.com/profile/11534144553934250485</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisHXrQsyG94LV4oCldIclip_2wdXui76Thw-Fpw2Jp5wTTufBT4PhmPl8xmwSomtIlSkDZdG_OLzM--VN1nueh8GicFNCrVUEyuw0M6x2f8dwxV-oXmoIr-j-TYWWuAw/s1600/ichigo%2520hollow.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1118353858682981717.post-4836069801770385479</id><published>2012-04-12T17:54:00.001+02:00</published><updated>2012-04-12T17:54:21.402+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>A work in progress: Accuracy game [Delphi]</title><content type='html'>I&#39;m currently working on a Delphi game. The rules are as following: On the right there is a model with a color that changes. Inside the game field are more circles which randomly appear and change colors and your task is to click the correct color and accurately. It&#39;s still a work in progress, but I can post some pictures already. Sorry for not including the code, it&#39;s rather long (I suppose I could send it to you if you wanted). As it&#39;s a work in progress, many things don&#39;t work yet (visible on the screenshots). I&#39;ll be finishing this soon though.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDEX8YWk9SgWnjBV4AmqoFRqad8uFmLf1zgivuUwTapFhTPb5QlBgPwJqYH5pp4mlupflSMLyy24orADI6Ut58ZJxf_3FUB3cxTQvWypGWpNgdDbXzki8wqQD6US4ZQYMWWr2sKkLMLSoG/s1600/accuracy.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;527&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDEX8YWk9SgWnjBV4AmqoFRqad8uFmLf1zgivuUwTapFhTPb5QlBgPwJqYH5pp4mlupflSMLyy24orADI6Ut58ZJxf_3FUB3cxTQvWypGWpNgdDbXzki8wqQD6US4ZQYMWWr2sKkLMLSoG/s640/accuracy.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgujwlKmt3CqgO0NLB_13qS1XzfCLiGSmmG7glMBI45TABwuj3KP59lRXhKCBx21-tLiY-lgDuPLxne90juhVyrKzDz8ANtty631sqL1zAmFkLUwFgpvRXwCgcSV2AOcvBdGus4FH12aIJ7/s1600/accuracy.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgujwlKmt3CqgO0NLB_13qS1XzfCLiGSmmG7glMBI45TABwuj3KP59lRXhKCBx21-tLiY-lgDuPLxne90juhVyrKzDz8ANtty631sqL1zAmFkLUwFgpvRXwCgcSV2AOcvBdGus4FH12aIJ7/s1600/accuracy.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://argoslair.blogspot.com/feeds/4836069801770385479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://argoslair.blogspot.com/2012/04/work-in-progress-accuracy-game-delphi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1118353858682981717/posts/default/4836069801770385479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1118353858682981717/posts/default/4836069801770385479'/><link rel='alternate' type='text/html' href='http://argoslair.blogspot.com/2012/04/work-in-progress-accuracy-game-delphi.html' title='A work in progress: Accuracy game [Delphi]'/><author><name>argoneus</name><uri>http://www.blogger.com/profile/11534144553934250485</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisHXrQsyG94LV4oCldIclip_2wdXui76Thw-Fpw2Jp5wTTufBT4PhmPl8xmwSomtIlSkDZdG_OLzM--VN1nueh8GicFNCrVUEyuw0M6x2f8dwxV-oXmoIr-j-TYWWuAw/s1600/ichigo%2520hollow.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDEX8YWk9SgWnjBV4AmqoFRqad8uFmLf1zgivuUwTapFhTPb5QlBgPwJqYH5pp4mlupflSMLyy24orADI6Ut58ZJxf_3FUB3cxTQvWypGWpNgdDbXzki8wqQD6US4ZQYMWWr2sKkLMLSoG/s72-c/accuracy.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1118353858682981717.post-7841268312499847082</id><published>2012-04-08T13:57:00.001+02:00</published><updated>2012-04-08T14:02:48.466+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>A very simple Blackjack game [C++]</title><content type='html'>Here&#39;s another of my creations, this time a very, very simple Blackjack game that doesn&#39;t even have an opponent to play against. But it took me quite a while. C++ sure is a hard language. Here&#39;s the code and of course an image to demonstrate what it does.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: cpp&quot;&gt;#include &lt;iostream&gt;
#include &lt;ctime&gt;

using namespace std;

// Global Variables //

char *card_num[] = {&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;Jack&quot;,&quot;Queen&quot;,&quot;King&quot;,&quot;Ace&quot;};
char *card_type[] = {&quot;Clubs&quot;,&quot;Diamonds&quot;,&quot;Spades&quot;,&quot;Hearts&quot;};


// Structures //

struct cardtype {
    int color;
    int number;
    int value;
};

struct decktype {
    bool deck[52];
    int size;
};

// Functions //

void SeedRandom() {
    time_t tTime;
    time(&amp;amp;tTime);
    srand(tTime);
    rand();
}

struct cardtype PickACard(struct decktype &amp;amp;deck) {
    struct cardtype card;
    int randnum = (int) (1.0 * rand() / (RAND_MAX + 1) * deck.size);
    int counter = 0;
    int i;
    for (i=0; i&amp;lt;52; ++i) {
        if (deck.deck[i] == true) {
            ++counter;
        }
        if (counter == randnum+1) {
            break;
        }
    }
    --deck.size;
    deck.deck[i] = false;
    card.number = i / 4;
    card.color = i % 4;
    if (card.number == 10 || card.number == 11) {
        card.value = 10;
    } else if (card.number == 9) {
        card.value = 1;
    } else if (card.number == 12) {
        card.value = 11;
    } else {
        card.value = card.number + 2;
    }
    return card;
}

struct decktype DeckInit() {
    struct decktype deck;
    deck.size = 52;
    for (int i=0; i&amp;lt;52; ++i) {
        deck.deck[i] = true;
    }
    return deck;
}

char *TextCard(struct cardtype &amp;amp;card) {
    char *str = (char *) malloc (22 * sizeof(char));
    sprintf(str,&quot;%s of %s (%d)&quot;,card_num[card.number],card_type[card.color],card.value);
    return str;
}

// Main //

void main() {
    SeedRandom();

    bool IsGameOver = false;
    char WantCard;

    int totalvalue = 0;

    cout &amp;lt;&amp;lt; &quot;Welcome to blackjack!&quot; &amp;lt;&amp;lt; endl;
    struct decktype deck = DeckInit();

    while (!IsGameOver) {
        bool ValidChoice = false;
        while (!ValidChoice) {
            cout &amp;lt;&amp;lt; &quot;Do you want a card? (Y)es / (N)o&quot; &amp;lt;&amp;lt; endl;
            cin &amp;gt;&amp;gt; WantCard;
            if (WantCard == &#39;Y&#39;) {
                struct cardtype card = PickACard(deck);
                totalvalue += card.value;
                cout &amp;lt;&amp;lt; &quot;You received a &quot; &amp;lt;&amp;lt; TextCard(card) &amp;lt;&amp;lt; &quot;, current total value at &quot; &amp;lt;&amp;lt; totalvalue &amp;lt;&amp;lt; &quot;.&quot; &amp;lt;&amp;lt; endl;
                if (totalvalue &amp;gt; 21) {
                    cout &amp;lt;&amp;lt; &quot;Sorry, you have exceeded 21 points and thus lost!&quot; &amp;lt;&amp;lt; endl;
                    IsGameOver = true;
                }
                if (totalvalue == 21) {
                    cout &amp;lt;&amp;lt; &quot;Congratulations, you have won!&quot; &amp;lt;&amp;lt; endl;
                    IsGameOver = true;
                }
                ValidChoice = true;
            } else if (WantCard == &#39;N&#39;) {
                cout &amp;lt;&amp;lt; &quot;You stopped prematurely, and since there isn&#39;t an opponent, you won :)&quot; &amp;lt;&amp;lt; endl;
                ValidChoice = true;
                IsGameOver = true;
            } else {
                cout &amp;lt;&amp;lt; &quot;Invalid choice, please try again&quot;;
            }
        }

    }
    cout &amp;lt;&amp;lt; &quot;The game is over now, thanks for playing!&quot; &amp;lt;&amp;lt; endl;

 cin.ignore();
 cin.get();
}
&lt;/ctime&gt;&lt;/iostream&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIZQLi6IBz_abEpgZS7QaeXL68ZINhd69k8AXo_sYfsaYRAN82Nd4Uf_bQh8bBG7i8r_xB85BKo13y_2QNftMWh71lNMuSvi4uF4yIn1chcrirlPQW8bGMwImrqw8puFkFdt_9av_5qUxG/s1600/blackjack.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;322&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIZQLi6IBz_abEpgZS7QaeXL68ZINhd69k8AXo_sYfsaYRAN82Nd4Uf_bQh8bBG7i8r_xB85BKo13y_2QNftMWh71lNMuSvi4uF4yIn1chcrirlPQW8bGMwImrqw8puFkFdt_9av_5qUxG/s640/blackjack.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://argoslair.blogspot.com/feeds/7841268312499847082/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://argoslair.blogspot.com/2012/04/very-simple-blackjack-game-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1118353858682981717/posts/default/7841268312499847082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1118353858682981717/posts/default/7841268312499847082'/><link rel='alternate' type='text/html' href='http://argoslair.blogspot.com/2012/04/very-simple-blackjack-game-c.html' title='A very simple Blackjack game [C++]'/><author><name>argoneus</name><uri>http://www.blogger.com/profile/11534144553934250485</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisHXrQsyG94LV4oCldIclip_2wdXui76Thw-Fpw2Jp5wTTufBT4PhmPl8xmwSomtIlSkDZdG_OLzM--VN1nueh8GicFNCrVUEyuw0M6x2f8dwxV-oXmoIr-j-TYWWuAw/s1600/ichigo%2520hollow.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIZQLi6IBz_abEpgZS7QaeXL68ZINhd69k8AXo_sYfsaYRAN82Nd4Uf_bQh8bBG7i8r_xB85BKo13y_2QNftMWh71lNMuSvi4uF4yIn1chcrirlPQW8bGMwImrqw8puFkFdt_9av_5qUxG/s72-c/blackjack.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1118353858682981717.post-2005875830352047799</id><published>2012-04-05T15:31:00.002+02:00</published><updated>2012-04-05T15:37:13.317+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>My go at TicTacToe [C++]</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Today I started getting into C++ with my previous experiences with Pascal. I tried writing a simple Tictactoe program in the console. There were some difficulties, but overall I&#39;m quite happy with how it worked out :D. It&#39;s probably not very effective and the conditions whether a player won or not are pretty clustered, but for a first try I&#39;m content.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Here&#39;s the code.&lt;/div&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: cpp&quot;&gt;#include &lt;iostream&gt;
using namespace std;

void main() {
 // Declarations
 char rgBoard[9] = {&#39;1&#39;,&#39;2&#39;,&#39;3&#39;,&#39;4&#39;,&#39;5&#39;,&#39;6&#39;,&#39;7&#39;,&#39;8&#39;,&#39;9&#39;};
 bool bIsGameOver = false;
 int iPlayer = 1;
 
 int iTurn;
 bool bTurn = false;

 // Print initial board
 cout &amp;lt;&amp;lt; rgBoard[0] &amp;lt;&amp;lt; &quot;|&quot; &amp;lt;&amp;lt; rgBoard[1] &amp;lt;&amp;lt; &quot;|&quot; &amp;lt;&amp;lt; rgBoard[2] &amp;lt;&amp;lt; endl;
 cout &amp;lt;&amp;lt; &quot;-----&quot; &amp;lt;&amp;lt; endl;
 cout &amp;lt;&amp;lt; rgBoard[3] &amp;lt;&amp;lt; &quot;|&quot; &amp;lt;&amp;lt; rgBoard[4] &amp;lt;&amp;lt; &quot;|&quot; &amp;lt;&amp;lt; rgBoard[5] &amp;lt;&amp;lt; endl;
 cout &amp;lt;&amp;lt; &quot;-----&quot; &amp;lt;&amp;lt; endl;
 cout &amp;lt;&amp;lt; rgBoard[6] &amp;lt;&amp;lt; &quot;|&quot; &amp;lt;&amp;lt; rgBoard[7] &amp;lt;&amp;lt; &quot;|&quot; &amp;lt;&amp;lt; rgBoard[8] &amp;lt;&amp;lt; endl &amp;lt;&amp;lt; endl;

 // Game loop
 while (bIsGameOver == false) {
  // Assignments
  bTurn = false;

  // Play a turn
  cout &amp;lt;&amp;lt; &quot;Player &quot; &amp;lt;&amp;lt; iPlayer &amp;lt;&amp;lt; &quot;, it&#39;s your turn.&quot; &amp;lt;&amp;lt; endl;
  while (bTurn == false) {
   cin &amp;gt;&amp;gt; iTurn;
   if (iTurn &amp;gt;= 1 &amp;amp;&amp;amp; iTurn &amp;lt;= 9 &amp;amp;&amp;amp; rgBoard[iTurn-1] != &#39;X&#39; &amp;amp;&amp;amp; rgBoard[iTurn-1] != &#39;O&#39;) {
    bTurn = true;
    cout &amp;lt;&amp;lt; endl;
   } else {
    cout &amp;lt;&amp;lt; &quot;Invalid move, please try again.&quot; &amp;lt;&amp;lt; endl;
   }
  }

  if (iPlayer == 1) {
   rgBoard[iTurn-1] = &#39;X&#39;;
   iPlayer = 2;
  } else if (iPlayer == 2) {
   rgBoard[iTurn-1] = &#39;O&#39;;
   iPlayer = 1;
  }

  // Check if the game is over
  if ((rgBoard[0] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[1] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[2] == &#39;X&#39;) ||
   (rgBoard[0] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[3] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[6] == &#39;X&#39;) ||
   (rgBoard[0] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[4] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[8] == &#39;X&#39;) ||
   (rgBoard[1] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[4] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[7] == &#39;X&#39;) ||
   (rgBoard[2] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[5] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[8] == &#39;X&#39;) ||
   (rgBoard[3] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[4] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[5] == &#39;X&#39;) ||
   (rgBoard[6] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[7] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[8] == &#39;X&#39;) ||
   (rgBoard[2] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[4] == &#39;X&#39; &amp;amp;&amp;amp; rgBoard[6] == &#39;X&#39;)) {
    cout &amp;lt;&amp;lt; &quot;Player 1 wins!&quot; &amp;lt;&amp;lt; endl &amp;lt;&amp;lt; endl;
    bIsGameOver = true;
  } else if ((rgBoard[0] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[1] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[2] == &#39;O&#39;) ||
   (rgBoard[0] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[3] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[6] == &#39;O&#39;) ||
   (rgBoard[0] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[4] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[8] == &#39;O&#39;) ||
   (rgBoard[1] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[4] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[7] == &#39;O&#39;) ||
   (rgBoard[2] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[5] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[8] == &#39;O&#39;) ||
   (rgBoard[3] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[4] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[5] == &#39;O&#39;) ||
   (rgBoard[6] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[7] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[8] == &#39;O&#39;) ||
   (rgBoard[2] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[4] == &#39;O&#39; &amp;amp;&amp;amp; rgBoard[6] == &#39;O&#39;)) {
    cout &amp;lt;&amp;lt; &quot;Player 2 wins!&quot; &amp;lt;&amp;lt; endl &amp;lt;&amp;lt; endl;
    bIsGameOver = true;
  } else if (rgBoard[0] != &#39;1&#39; &amp;amp;&amp;amp; rgBoard[1] != &#39;2&#39; &amp;amp;&amp;amp; rgBoard[2] != &#39;3&#39; &amp;amp;&amp;amp; rgBoard[3] != &#39;4&#39; &amp;amp;&amp;amp;
   rgBoard[4] != &#39;5&#39; &amp;amp;&amp;amp; rgBoard[5] != &#39;6&#39; &amp;amp;&amp;amp; rgBoard[6] != &#39;7&#39; &amp;amp;&amp;amp; rgBoard[7] != &#39;8&#39; &amp;amp;&amp;amp; rgBoard[8] != &#39;9&#39;) {
   cout &amp;lt;&amp;lt; &quot;It&#39;s a tie!&quot; &amp;lt;&amp;lt; endl &amp;lt;&amp;lt; endl;
   bIsGameOver = true;
  }

  // Print board
  cout &amp;lt;&amp;lt; rgBoard[0] &amp;lt;&amp;lt; &quot;|&quot; &amp;lt;&amp;lt; rgBoard[1] &amp;lt;&amp;lt; &quot;|&quot; &amp;lt;&amp;lt; rgBoard[2] &amp;lt;&amp;lt; endl;
  cout &amp;lt;&amp;lt; &quot;-----&quot; &amp;lt;&amp;lt; endl;
  cout &amp;lt;&amp;lt; rgBoard[3] &amp;lt;&amp;lt; &quot;|&quot; &amp;lt;&amp;lt; rgBoard[4] &amp;lt;&amp;lt; &quot;|&quot; &amp;lt;&amp;lt; rgBoard[5] &amp;lt;&amp;lt; endl;
  cout &amp;lt;&amp;lt; &quot;-----&quot; &amp;lt;&amp;lt; endl;
  cout &amp;lt;&amp;lt; rgBoard[6] &amp;lt;&amp;lt; &quot;|&quot; &amp;lt;&amp;lt; rgBoard[7] &amp;lt;&amp;lt; &quot;|&quot; &amp;lt;&amp;lt; rgBoard[8] &amp;lt;&amp;lt; endl &amp;lt;&amp;lt; endl;
 }

 cin.ignore();
 cin.get();
}
&lt;/iostream&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
And this is how it looks when ran.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAlnW1sFTYh94U0RtfIxR8rldXU0hcVPG_BAEVWvcltFUu9jfL2EVpcx2bWvjR5vThcJawRuj5pwWSnKhmRpOm1zCeQsaCHDbRwXCwEXVhz-bqf0lc8zgl-DVbdInjBkjKSF-cHOVfPtkE/s1600/tictactoe.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;322&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAlnW1sFTYh94U0RtfIxR8rldXU0hcVPG_BAEVWvcltFUu9jfL2EVpcx2bWvjR5vThcJawRuj5pwWSnKhmRpOm1zCeQsaCHDbRwXCwEXVhz-bqf0lc8zgl-DVbdInjBkjKSF-cHOVfPtkE/s640/tictactoe.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://argoslair.blogspot.com/feeds/2005875830352047799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://argoslair.blogspot.com/2012/04/my-go-at-tictactoe-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1118353858682981717/posts/default/2005875830352047799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1118353858682981717/posts/default/2005875830352047799'/><link rel='alternate' type='text/html' href='http://argoslair.blogspot.com/2012/04/my-go-at-tictactoe-c.html' title='My go at TicTacToe [C++]'/><author><name>argoneus</name><uri>http://www.blogger.com/profile/11534144553934250485</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisHXrQsyG94LV4oCldIclip_2wdXui76Thw-Fpw2Jp5wTTufBT4PhmPl8xmwSomtIlSkDZdG_OLzM--VN1nueh8GicFNCrVUEyuw0M6x2f8dwxV-oXmoIr-j-TYWWuAw/s1600/ichigo%2520hollow.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAlnW1sFTYh94U0RtfIxR8rldXU0hcVPG_BAEVWvcltFUu9jfL2EVpcx2bWvjR5vThcJawRuj5pwWSnKhmRpOm1zCeQsaCHDbRwXCwEXVhz-bqf0lc8zgl-DVbdInjBkjKSF-cHOVfPtkE/s72-c/tictactoe.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>