Forum Stats

  • 3,722,780 Users
  • 2,244,412 Discussions
  • 7,850,084 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Logical error: Beginer TicTacToe program.

User_CLIR5
User_CLIR5 Member Posts: 1
edited February 19 in New To Java

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


Answers

  • EdStevens
    EdStevens Member Posts: 27,979 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.

  • User_CLIR5
    User_CLIR5 Member Posts: 1

    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: 27,979 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.

  • User_CLIR5
    User_CLIR5 Member Posts: 1

    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!

Sign In or Register to comment.