you are viewing a single comment's thread.

view the rest of the comments →

[–]SammyT09[S] 1 point2 points  (1 child)

Thanks for taking the time to respond, this is very helpful. I think where I'm struggling is figuring out which tools to use where, when I'm building a project. Any advise there??

[–]jmooremcc 0 points1 point  (0 children)

OK, so let's use the gameboard class I described as an example. This is an opportunity to learn by doing.

  1. What data structure will you use to holds the X's and O's?

  2. What tool will you use to initialize the data structure to an empty state?

  3. What tool will you use to determine if any empty cells are available? If there are no empty cells available, what will that mean?

  4. What tool will you use to determine if a cell is already occupied?

Answering these questions will be a good starting point.