Ask coding questions

← Back to all posts
Prog20
3142701 (0)

I'm new to this community, but I've been using the site for a few months. Due to the virus I'm out of school and procrastination and probably small typos have gotten in between me and finishing this program. It is a tic tac toe game and I'm finishing up the computer_move subprogram. Is it possible someone can look over that portion?

Commentshotnewtop
CodingCactus (2824)

@3142701 When I was making my Tic Tac Toe, I remeber there being 24 different combinations for someone to win, you can use this to check if you have alll the combinations covered.

CodingCactus (2824)

@3142701 Also, You need to make sure that the computer isn't writing over something already in that square (If it seems like it is missing a turn, it is probably writing over a previous o). You need to add to your ifs to check for that.

3142701 (0)

@CodingCactus I'll look it over, thanks! I think we may be doing the programs in different ways though, plus being in different coding software, but it might give me a different thought process to it.

Shemira (13)

Could you format the code a little differently please? It would make it easier for people to read it.

3142701 (0)

@Shemira I'm not too good at coding and this is the first time I've posted here, I probably need practice cleaning up my coding.

3142701 (0)

I've tried taking out portions using // or /* but I haven't found anything. This is C++, I didn't say that in the main post and I don't know if it will say that or not on my question.