Tic-Tac-Toe

This is a discussion on Tic-Tac-Toe within the Game Programming forums, part of the General Programming Boards category; This is my first game, so I'm happy about it. I know it isn't much, but you have to start ...

  1. #1
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050

    Tic-Tac-Toe

    This is my first game, so I'm happy about it. I know it isn't much, but you have to start off somewhere. There is human vs human play and human vs AI play. Please post any comments you have regarding the game.


    BtW, this game may be known to you as Noughts and Crosses.

    Well, after saying that the AI is unbeatable (at least I thought it was) many people proved me wrong. So I felt the need to improve the AI, however it is still beatable, and other parts of the game. The new version is v1.1e, and the old version of v1.0e became no longer available after 43 downloads.

    version history
    -------------------

    v1.1e
    -------

    -ability to play more than one game while not having to close window

    -when playing more than one game the score is kept track of

    -a win equals 2 points, a draw equals 1 point, and a loss equals 0 points

    v1.0e
    -------

    -created the basis for the game

    -human vs human play and AI vs human play
    Attached Files Attached Files
    Last edited by TechWins; 04-05-2002 at 01:17 AM.

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    162

    nice!

    Very nice! It really is the best console tic-tac-toe game I have seen. And there are a lot of them out there. It runs smoothly, and the interface is easy. Good job!

  3. #3
    I'm Back
    Join Date
    Dec 2001
    Posts
    556

    Thumbs up

    very good for a first game. and since you have used AI its thats even better.

  4. #4
    Registered User
    Join Date
    Feb 2002
    Posts
    145

    Talking Cool stuff

    I like it, good centered writing and I like the board. AI is pretty smart to. Good job

  5. #5
    Unregistered
    Guest
    I wanted to attach my tictactoe game but dont know how

  6. #6
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Thanks for all of you're positive comments. The only problem with the game is that the AI is unbeatable. I actually had intentions of making the AI beatable, but I forgot to do that. Since this game isn't of much importance I'm not going to change it. Plus I will always be able to say that I've made an unbeatable AI.

    To the unregistered user, I don't think you can attach any files while being unregistered. Once you are registered, though, all you have to do is attach the file in one of your posts...go to browse and locate the file.

  7. #7
    Christian
    Join Date
    Mar 2002
    Posts
    618
    The AI is hard but not unbeatable.
    I shall call egypt the harmless dragon

    -Isaiah 30.7

  8. #8
    Christian
    Join Date
    Mar 2002
    Posts
    618
    here is a screenshot
    Attached Images Attached Images  
    I shall call egypt the harmless dragon

    -Isaiah 30.7

  9. #9
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    cool game. maybe not unbeatable, but I haven't won one against it yet!

  10. #10
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    I beat the AI in the first game i played so its not unbeatable.

    BOW DOWN TO THE GRANDMASTER OF TIC-TAC-TOE

  11. #11
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    Oh man I beat it again, AM I GOOD OR WHAT.

    here a screenshot.

    also if you notice something funny my version is different from Sentaku senshi.


  12. #12
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    forgot the attachment
    Attached Images Attached Images  

  13. #13
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Well, after saying that the AI is unbeatable (at least I thought it was) many people proved me wrong. So I felt the need to improve the AI, however it is still beatable, and other parts of the game. The new version is v1.1e, and the old version of v1.0e became no longer available after 43 downloads.

    <<I wrote that in my original post, as well>>

    You can download the new version (that's if you want to ) in my original post.

  14. #14
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    Instead of making the user input a row and column.. why not make it a single number? I have an old tictactoe I made here, this is how I did it:

    Code:
    switch (move)
    {
    	case 1: { x = 0; y = 0; break; }
    	case 2: { x = 0; y = 1; break; }
    	case 3: { x = 0; y = 2; break; }
    	case 4: { x = 1; y = 0; break; }
    	case 5: { x = 1; y = 1; break; }
    	case 6: { x = 1; y = 2; break; }
    	case 7: { x = 2; y = 0; break; }
    	case 8: { x = 2; y = 1; break; }
    	case 9: { x = 2; y = 2; break; }
    	{
    		cout << "\n\tInvalid input, please restate->";
    		getInput(playerup);
    	}
    
    }
    Last edited by Dual-Catfish; 04-05-2002 at 07:29 AM.

  15. #15
    Registered User
    Join Date
    Apr 2002
    Posts
    142
    hi, can you use the minimax algo for your tictactoe game? I'm also doing a tictactoe game and i do understand the concept of minimax but i don't know how to implement it in C/c++

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help me with my simple Tic tac toe prog
    By maybnxtseasn in forum C Programming
    Replies: 2
    Last Post: 04-04-2009, 07:25 PM
  2. tic tac toe
    By holden in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 05-09-2004, 10:59 AM
  3. Help with Tic Tac Toe game
    By snef73 in forum C++ Programming
    Replies: 1
    Last Post: 04-25-2003, 09:33 AM
  4. tic tac toe game
    By Leeman_s in forum Game Programming
    Replies: 9
    Last Post: 04-24-2002, 04:24 AM
  5. my tic tac toe game, please try it
    By Leeman_s in forum C++ Programming
    Replies: 2
    Last Post: 04-14-2002, 06:16 PM

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