wolfenste / tictactoe

0 stars 0 forks source link

Map should store the array of Marks. #8

Closed flavius closed 6 years ago

flavius commented 6 years ago

Map should hold its own state in terms of Mark objects.

There are roughly two approaches:

  1. Mark accepts only '0' or 'X' in its constructor, and Map stores an array of fixed size 9 with null or Mark instances
  2. Mark accepts '0', 'X' or a special symbol for "empty square", and Map stores an array of fixed size 9 of Mark('special symbol here') by default, with Mark('0') or Mark('X') where the players have placed their symbols.
wolfenste commented 6 years ago

I guess this one will be closed when the Mark class will be defined.

flavius commented 6 years ago

Yes. Keep it as a reminder.