Thread: Tic tac toe game help

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #16
    Registered User
    Join Date
    Jun 2012
    Location
    Morden, UK
    Posts
    128
    Quote Originally Posted by Elysia View Post
    Why do you need to show 0, 1, 2, etc as X, O or blank? You use the offset inputted as the user to index yourself in the array.
    Anyway, I would suggest you familiarize yourself with arrays before continuing tic-tac-toe. Be sure to read the link to know more about arrays (later), because I'm sure your book won't mention std::array.
    I will look at the link and try to work this out.

    Quote Originally Posted by Elysia View Post
    Why do you need to show 0, 1, 2, etc as X, O or blank?
    1) If a user inputs a 4
    2) int boardPos4 is updated to a circle (which is enum value 2);
    3) If I now std::cout boardPos4 to show a circle on the board, it wont, it'll show a number 2 (the value of the enum)

    That's how I see it. I don't know why this concept is so difficult for me, everything else was going ok so far!
    Last edited by samwillc; 04-24-2013 at 05:35 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 05-18-2010, 09:42 PM
  2. Should I use a game engine in making a RPG game?
    By m3rk in forum Game Programming
    Replies: 6
    Last Post: 01-26-2009, 04:58 AM
  3. Guessing game: how to quit the game?
    By hzr in forum C Programming
    Replies: 5
    Last Post: 12-18-2008, 10:53 AM
  4. craps game & dice game..
    By cgurl05 in forum C Programming
    Replies: 3
    Last Post: 03-25-2006, 07:58 PM
  5. Game Designer vs Game Programmer
    By the dead tree in forum Game Programming
    Replies: 8
    Last Post: 04-28-2005, 09:17 PM