never mind, i got the program to work, i just doesnt say "tie game" anymore...i can live with that
thanks for helping me out, i needed it big time
Type: Posts; User: theman29
never mind, i got the program to work, i just doesnt say "tie game" anymore...i can live with that
thanks for helping me out, i needed it big time
i understand for loops, but i didnt know how to loop enter_symbol
i just copied it there to show u where i was trying to start it
should i get rid of the while loop and make a for loop for...
i tried to loop enter_symbol, but then my brain started hurting
i don't think i did it right, but this is what i tried
i keep getting "where would u like to enter symbol" over and over
...
i think i may have taken the long way with this code, but all i need for it to do now is repeat asking the player to enter another symbol...instead of it saying "Tie game" after the first move
...
when i use this, it says theres a syntax error before "]" token on line 14, 16, and 18
#include<stdio.h>
void enter_symbol(char tic_tac_toe[][2], int player);
void print_board(char...
that was a mistake, i took that part out when i was messing around with the code and i never put it back...still doesn't work
#include<stdio.h>
void enter_symbol(char tic_tac_toe[][2], int...
i need to write a program that
1) Prompts a user to enter the current state of a board.
2) Print out the board
3) Determines if there is a winner, and, if there is, who it is.
this is what i...
there are still random things that i dont understand about some of the parts in this program so for those parts i copied from basic examples in my textbook and made my own ideas on how to apply them...
i need it to print out a tictactoe board
i have no clue where i went wrong, it just doesnt print the board after the player puts in letters at the coordinates
#include<stdio.h>
int
main(void)
{
char tic_tac_toe[3][3] =
{{' ', ' ', ' '}, {' ', ' ', ' '}, {' ', ' ', ' '}};
char i, j;