TP 13 exo2: Robustify the current tic-tac-toe implementation
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 23 Mar 2017 19:48:52 +0000 (20:48 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 23 Mar 2017 19:48:52 +0000 (20:48 +0100)
commita177f80cdc31a9df8097f56a33ae1be7d24ef0af
treec98d85b2d4a2d377ccb9e0728dc29b15c7f9d823
parentac5c12a4131a461182da110ec6c50be4cbd4270e
TP 13 exo2: Robustify the current tic-tac-toe implementation

* Make the round count follow the coordinates array index.
  And simplify all the loop and conditions depending on it;

* Implement the feature allowing to play again.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
TP_13/exo2/lib/coordinates.c
TP_13/exo2/lib/coordinates.h
TP_13/exo2/src/main.c