Thread: tic-tac-toe is good

  1. #1
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369

    tic-tac-toe is good

    Try my tic-tac-toe game out. Includes source. Please tell me what I can do to make the game better
    Last edited by abrege; 12-10-2002 at 09:35 PM.
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  2. #2
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    ah
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  3. #3
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    Halo,

    Making it better would of course be adding a little bit of AI, like blocking a move and making a winning move when it's available ^>^.

  4. #4
    Evil Sock Puppet MadHatter's Avatar
    Join Date
    Nov 2002
    Posts
    176
    yep.. i agree with Nutshell. it's very easy to win. also, when i didn't win, and all the spaces got taken, it froze up just when i made my last move, and i had to close it... then when i tried to go a place where there was already a mark, my whole computer froze might want to check if there's a mark on a given spot before marking it...

  5. #5
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    ouch I'll fix those problems and attempt to make some AI!
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  6. #6
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    Now it shouldn't freeze up! But I haven't figured out a way to tell if it's a cat's game
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  7. #7
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Strange. I have been playing with some AI for Tic Tac Toe.

    This is a MS Windows based app.

    Let me know if you find any bugs

    Let me know if you can beat it.
    "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

  8. #8
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    Nope, i couldn't beat it.

    BUt anywayz i believe that the nature of Tic Tac TOe is too simple, even human players come to a draw very frequently.

  9. #9
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Go download my game called Dynamic Toe at my site (follow the link in my sig) to see a version of Tic-Tac-Toe that is more dynamic. It allows you to set the grid to any size you want. The AI isn't all that great, because it's slightly more difficult to have it adapt on all situations, plus I didn't spend much time on the game at all. Anyways, the game should be able to give you some help on your TTT game. Good luck fixing up your game.

  10. #10
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Ha, i've beaten you're AI sensless
    Love Tic-Tac-Toe

    PS: You should mask the mouse cursor it overwrites some things

    ^
    Novacain's AI that is

    PS2: Beaten abrege's AI too
    Last edited by Travis Dane; 12-11-2002 at 10:28 AM.

  11. #11
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Travis Dane

    Could you;

    Please post a pic of your winning board (so I can see where the AI fails)

    and if possible one of the mouse error.

    What operating system are you using?
    "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

  12. #12
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Don't have a place right now where i can upload it but il try
    to explian in plain text:

    if whe assume that the layout of the field is this:

    123
    456
    789

    Then it happend like this:

    Me: 1
    AI: 5
    Me: 9
    AI: 7
    Me: 3
    AI: 6
    Me: 2
    I win

    And for the mouse, the mouse bitmap is a white square with a
    cross or circle,but the white where the cross or circle is painted
    over isnt masked

  13. #13
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Here is my console based tictactoe game I made a couple of months ago as a precursor to my connect four and checkers games. As far as I know its unbeatable, but please let me know if you can do it!

  14. #14
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Yeah, its unbeatable, isnt so hard is it?

  15. #15
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Thanks Travis Dane, will try to improve its game.
    "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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tic Tac Toe program
    By muzihc in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 08:08 PM
  2. Tic Tac Toe Neural Network
    By glo in forum General AI Programming
    Replies: 4
    Last Post: 06-15-2008, 03:39 PM
  3. Making Tic Tac Toe Smarter
    By abh!shek in forum C Programming
    Replies: 15
    Last Post: 06-05-2008, 10:43 AM
  4. tic tac toe crashes :(
    By stien in forum Game Programming
    Replies: 4
    Last Post: 05-13-2007, 06:25 PM
  5. Tic Tac Toe AI help please...
    By Rune Hunter in forum Game Programming
    Replies: 12
    Last Post: 11-05-2004, 04:24 PM