Thread: Tic-tac-toe.

  1. #16
    Un Artiste Extraordinaire volk's Avatar
    Join Date
    Dec 2002
    Posts
    357
    Originally posted by blackrat364
    Volk, what is this block in the get_second_player_move() function supposed to do?

    Code:
    else if ( x * y == 4 )  
    {
    	cout << "draw" << endl;
    	exit ( EXIT_SUCCESS );
    }
    I know I helped you with the if statement before, but I'm not sure what you're hoping to accomplish with the code inside the block. I think it might be the source of your problem - can you explain it a bit?
    I fixed that already. This thread is old. This is what happens when you waste time with one global variable. *Darn*

    I'll forgive you if your excuse was that you just weren't online at the time.

    Also, to give you a hint at what I was trying to accomplish, look at that cout statement. What is that? Is that...is that...is that draw written in there?!

  2. #17
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    my excuse will be that I was online at the time doing other things.
    Away.

  3. #18
    Un Artiste Extraordinaire volk's Avatar
    Join Date
    Dec 2002
    Posts
    357
    Originally posted by blackrat364
    my excuse will be that I was online at the time doing other things.
    Whoa! Way too much info there!

    Ok, so I'm making fun of you. I'm implying that you were...

    Anyway, thanks for "helping" me with my game.

  4. #19
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Code:
    else if ( x * y == 4 )  
    {
    	cout << "draw" << endl;
    	exit ( EXIT_SUCCESS );
    }
    Hey, punk. I told you that was a 4, not a 9. And anyway, if you check the timestamps in GD, I was probably posting there at the time in question :P
    Away.

  5. #20
    Un Artiste Extraordinaire volk's Avatar
    Join Date
    Dec 2002
    Posts
    357
    Originally posted by blackrat364

    Hey, punk. I told you that was a 4, not a 9. And anyway, if you check the timestamps in GD, I was probably posting there at the time in question :P
    Hey, blackrat...oh wait, you already have a self-demeaning title there.

    I already thanked you for your assistance. What more do you want? Ok, I see...

    *removes rat poison from your cage*

    There, are you happy now?

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, 06:25 PM
  2. tic tac toe
    By holden in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 05-09-2004, 09:59 AM
  3. Help with Tic Tac Toe game
    By snef73 in forum C++ Programming
    Replies: 1
    Last Post: 04-25-2003, 08:33 AM
  4. tic tac toe game
    By Leeman_s in forum Game Programming
    Replies: 9
    Last Post: 04-24-2002, 03: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, 05:16 PM