Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Logical error: Beginer TicTacToe program.

User_CLIR5Feb 19 2021 — edited Feb 19 2021

Hello!
I recently just finished the codecademy and educative beginner Java tutorials (with much difficultly!), and as my first challenge I decided to try to code a simple TicTacToe program. I was able to get it to this point, but I can't seem to figure out:
A: Why my "Tie code" in my check winner method keeps breaking, as when I play my game it says there is a tie even if there is still a open spot or two.
B: After two runs of the game, the board does not seem to reset for some reason.
This is my first program that I have tried on my own, and any help understanding what I did wrong and even tips for useful changes to make in the future would really help out!
Thank you very much!
(By the way I use eclipse.)
TicTacToe.zip (8.51 KB)

Comments

Post Details

Added on Feb 19 2021
4 comments
67 views