![]() There are two different variables with the name var here. Consider the following code: void func(int var) You should store the value in the cats variable you declared in start of main, e.g.: for(int i = 0 i < 5 ++i)Ī more detailed explanation follows. In the functions playerOne() and playerTwo() you increment the variable cats declared as function argument. Void checkBoard(char boardPieces, int cats) The first space is 1, continuing left to right, top to bottom\n") Please enter in the space you would like to take. Int playerTwo(char boardPieces, int cats) Int playerOne(char boardPieces, int cats) Printf(" %c | %c | %c\n\n", boardPieces, boardPieces, boardPieces) Printf(" %c | %c | %c\n", boardPieces, boardPieces, boardPieces) Printf("\n %c | %c | %c\n", boardPieces, boardPieces, boardPieces) Printf("Press 2 to play against the computer.\n") Printf("Press 1 to play against another player.\n") Printf("Would you like to play against the computer or another player?\n") Int cats = 0 //A tie game in Tic-Tac-Toe is called a Cats Game. ![]() If I can figure out how to get the game to tie, I can code that part no problem! Thanks again guys!) #include The empty if statement at the beginning is for a player vs. Even if you guys could point me in the right direction, that would be Sweet! I have tried pretty much all week to figure out how to get the game to tie. ![]() I have a variable called int cats (a cats game is a tie game) that is used to help in calculating and displaying text for a tie game. I am having some issues with my Tic-Tac-Toe game I am creating in C. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |