nmaguirre / eiffel-sudoku

An Eiffel Development of Sudoku, using Design by Contract
GNU General Public License v3.0
1 stars 4 forks source link

Who and how implements the timer? #207

Open FRaverta opened 11 years ago

FRaverta commented 11 years ago

I create a class clock that perform a timer. In my opinion we need use it in Sudoku_board: We can create an object timer:CLOCK and we can give management responsibilities to SUDOKU_CONTROLLER. What are your opinion about this? Who should implements its?

FRaverta commented 11 years ago

@gamab

FRaverta commented 11 years ago

@pmarconi

gamab commented 11 years ago

how implements the timer? I'd think we could just put an instance of CLOCK in SUDOKU_CONTROLLER, but whatever we choose, we will make it work.

pmarconi commented 11 years ago

I think the same, I think the timer must be used/created in the controller, not in the AI.

FRaverta commented 11 years ago

I have an implementation of this. I upload it soon.

FRaverta commented 11 years ago

I solve it for new single player game, but we should implements it for load game and multiplayer game