Check out my tictactoe

This is a discussion on Check out my tictactoe within the Game Programming forums, part of the General Programming Boards category; I did this just for you Volk j/k. Anyway, I spent some time late last night making a Tic Tac ...

  1. #1
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916

    Check out my tictactoe

    I did this just for you Volk j/k. Anyway, I spent some time late last night making a Tic Tac Toe game. I used the WinAPI (not very well, though, because I'm only on chapter 4 of my book), but I'm pleased with how it came out. The code isn't pretty, but it isn't horrible. Anyway, tell me what you think. Especially you Volk

    Code is here: http://confuted.0catch.com/tutorials/tictactoe/main.cpp
    Exe is here: http://confuted.0catch.com/tuturials.../tictactoe.exe

    Edit: Controls are arrow keys and enter
    Last edited by confuted; 06-14-2003 at 12:06 PM.
    Away.

  2. #2
    Un Artiste Extraordinaire volk's Avatar
    Join Date
    Dec 2002
    Posts
    357
    I just noticed this thread today. Go figure, I hardly check out the Game Programming forum.

    Anyway, those links don't work. What gives?
    Last edited by volk; 06-15-2003 at 07:19 PM.

  3. #3
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    fudge. no idea why those don't work. I'll just attach them I guess. Sorry about that guys.
    Attached Files Attached Files
    Away.

  4. #4
    Un Artiste Extraordinaire volk's Avatar
    Join Date
    Dec 2002
    Posts
    357
    You cheated; you used windows programming.

    It's really good (though, there's no computer). It's much better than mine.


    *steals source code*

  5. #5
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Thanks for the compliment Volk. I was considering adding AI, although I don't know if I'll bother. I'll write a tutorial if you want me to (seriously).
    Away.

  6. #6
    Un Artiste Extraordinaire volk's Avatar
    Join Date
    Dec 2002
    Posts
    357
    Go ahead, write a tutorial.

    What do you think of Stoned_Coder's tic-tac-toe, by the way?

  7. #7
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    I can't compile it (get some linking errors, must be missing afxwin.h or something) but from what he said about it, it looks very nice. I'm just beginning to learn the WinAPI and I know no MFC, so I don't know how to use the brushes and such yet, and I didn't feel like spending time trying to get the mouse to work, because it would take me forever (don't know the right ways to do it yet, I'd have to use trial and error to find the ranges). Anyway, I'll work on that tutorial tonight. Perhaps eventually I'll have enough to make a website.
    Away.

  8. #8
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    Mine in WIN32
    Attached Files Attached Files
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  9. #9
    Un Artiste Extraordinaire volk's Avatar
    Join Date
    Dec 2002
    Posts
    357
    Originally posted by novacain
    Mine in WIN32
    Where's the source code?

  10. #10
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    why do the moves 1,9,3,2 yield a win while 7,3,... (just rotated) makes the computer move in different spots relative to where you moved?

    Edit: It's nice though.
    Away.

  11. #11
    Un Artiste Extraordinaire volk's Avatar
    Join Date
    Dec 2002
    Posts
    357
    Originally posted by blackrat364
    why do the moves 1,9,3,2 yield a win, while 7,3,... (just rotated) makes the computer move in different spots relative to where you moved?

    Edit: It's nice though - for a good laugh.

    You were really looking for faults, eh? Oh, and I tampered with your quote a little.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BN_CLICKED, change button style
    By bennyandthejets in forum Windows Programming
    Replies: 13
    Last Post: 07-05-2010, 11:42 PM
  2. How can i check a directory for certain files?
    By patrioticpar883 in forum C++ Programming
    Replies: 13
    Last Post: 02-01-2008, 04:27 PM
  3. how to check input is decimal or not?
    By kalamram in forum C Programming
    Replies: 3
    Last Post: 08-31-2007, 07:07 PM
  4. Please check this loop
    By Daesom in forum C++ Programming
    Replies: 13
    Last Post: 11-02-2006, 12:52 AM
  5. how to check for end of line in a text file
    By anooj123 in forum C++ Programming
    Replies: 6
    Last Post: 10-24-2002, 11:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21