Search Unity

Solution review

Discussion in 'General Discussion' started by andrewkononenko89, Nov 21, 2018.

  1. andrewkononenko89

    andrewkononenko89

    Joined:
    Nov 21, 2018
    Posts:
    1
    I'm absolutely newby in Unity, but started learning. So as first practical task I decided to implement 2D tic-tac-toe game and I need a solution review, because I'm sure that I've used not optimal decisions.

    So, I've created a Grid layout 3x3, and added 9 buttons on it. Added onClick handler to the buttons. This handler changes image of the button and runs the calculations (basically checks row and columns if there is a winner).If there is one, handler enables text field with winner congratz over layout.

    Basically that's all, and I need an opinion of the experienced developers. Main question is, is there better option then grid layout and buttons? I appreciate any advises.