This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 31st, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,899 Users
  • 2,269,649 Discussions


Logical error: Beginer TicTacToe program.

User_CLIR5 Member Posts: 1
edited Feb 19, 2021 7:37PM in New To Java


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.)


  • EdStevens
    EdStevens Member Posts: 28,778 Gold Crown

    I seriously doubt many people will download and unzip a file from a stranger on the internet.

    It appears you are asking about logic in your (Java?) code. This forum discusses management of Oracle databases. Sounds like you would be better of looking for a forum for Java programmers.

  • Thank you Ed,

    I had not thought about that when I uploaded my zip file, thank you for telling me. Is there a way for me to upload my program so people can help me?

    Also, thank you for telling me I was in the wrong spot, this was just the first place I had tried, but do you have any Java forums that you would recommend?

    Again, thank you for you help!

    P.S. I think it's pretty funny to think of my files as suspicious, as I know that even if I wanted to, I am far from experienced enough to code anything that would do anything real! But yes, now that you mention it, I would not want anyone downloading random files.

  • EdStevens
    EdStevens Member Posts: 28,778 Gold Crown

    I'm not a java programmer, so am not familiar with the resources available. What did you discover when you googled "java programming forum" ?

    As for how to upload code, that will depend on whatever platform you find a suitable forum.

  • To be honest, I tried this first. I though that the spot I had downloaded java would be the most reliable source. With that said, I will do google now, but I thought that I would see if you recomended one to try first.

    Thank you!