Can I write a simple TicTacToe Java Program without using an array or JOptionPane?

I have been struggling to write a simple TicTacToe Program. It is just a two player game, where the players alternate turns and choose the position on the board until someone wins. Can someone please help me with the java code? I want to write it without an array or JOptionPane. Any help is greatly appreciated.

2 Answers

  • Anonymous
    9 years ago
    Favorite Answer

    Try this Tic Tac Toe: . It was made in flash.


  • Mr Ed
    Lv 7
    9 years ago

    Yes, it's possible... but I have a question: WHY do you want to write a program without using an array?

    Array's often make coding much, much easier. Easier to write, easier to debug...

    That's why they are there.

Still have questions? Get your answers by asking now.