FACN4 / week9-the-a-team

FAC's #1 Noughts and Crosses web app.
https://tic-fac-toe.netlify.com/
0 stars 1 forks source link

Simplifying the creation of the board #64

Open jema28 opened 6 years ago

jema28 commented 6 years ago

In future projects, the x and y axis architecture could be simplified down ie. creating the grid in CSS instead of js.

Ryan2601 commented 6 years ago

I disagree since in this way we are attaching the right id(cords) to each one of the elements and this save the trouble of creating all components and then attaching the right cords to it since cords are always going to be the result of to map loops (2 loops) so with your suggestion we would be having 3 loops rather than 2 with more work to do and less efficiency. Further more, in bigger and more complicated board (were our architecture still apply) and only css-ing it will not help.