ttt_simple_session.h 699 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // Created by nositelshtanov on 11/11/2023.
  3. //
  4. #ifndef TTT_TTT_SIMPLE_SESSION_H
  5. #define TTT_TTT_SIMPLE_SESSION_H
  6. #include "ttt_simple.h"
  7. #define SMPL_INVITATION_X "step X:"
  8. #define SMPL_INVITATION_O "step O:"
  9. #define SMPL_WIN_PHRASE_X "win X!!!"
  10. #define SMPL_WIN_PHRASE_O "win O!!!"
  11. #define SMPL_DRAW_PHRASE "draw!!!"
  12. #define SMPL_NOTHING_CELL "( )"
  13. #define SMPL_CROSS_CELL " X "
  14. #define SMPL_ZERO_CELL " O "
  15. #define SMPL_INVALID_COORDS_HNDL "Invalid coords. Try arain"
  16. #define SMPL_FIELD_IS_OCCUPIED_HNDL "The field is already occupied"
  17. class ttt_simple_session {
  18. public:
  19. void play();
  20. void draw_map();
  21. private:
  22. ttt_simple game;
  23. };
  24. #endif //TTT_TTT_SIMPLE_SESSION_H