0
\$\begingroup\$

I wrote a Board.java class which

  • draws the initial board
  • draws the Reset button
  • draws the label to indicate whose turn is it

In the Main class:

  • I initialized a Pane.

  • Initialized the Board's board object(I had put a constructor).

  • And added these stuffs to scene

My next concern is that I want to add event handling. i.e.

When user presses in a certain cell at their turn, 'X' or 'O' should be drawn into the board.

I am not looking for the logic instead for the organization of code.

It is a huge zigzag situation.

New contributor
zeeshanseikh is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
\$\endgroup\$
2
  • \$\begingroup\$ How have you attempted this so far, and what is the specific problem you're experiencing that you've described as "a huge zigzag"? These details can help users here tailor their answers to how you're thinking about the problem so far and what will be most helpful to you. \$\endgroup\$ Commented 6 hours ago
  • \$\begingroup\$ Do you just need a general explanation of the model - view - controller pattern, or is there a more concrete problem you are facing? \$\endgroup\$ Commented 3 hours ago

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.