From c3cfcab2fec8cbbbd7dad65c2f6fcf053dced1f5 Mon Sep 17 00:00:00 2001 From: Richard Horton Date: Fri, 9 Aug 2019 12:05:58 +0100 Subject: [PATCH] Created Class Files for OOP Conversion --- AI.cpp | 6 ++++++ AI.h | 15 +++++++++++++++ Game.cpp | 6 ++++++ Game.h | 15 +++++++++++++++ Grid.cpp | 6 ++++++ Grid.h | 15 +++++++++++++++ Player.cpp | 6 ++++++ Player.h | 15 +++++++++++++++ Tic-Tac-Toe.cbp | 8 ++++++++ 9 files changed, 92 insertions(+) create mode 100644 AI.cpp create mode 100644 AI.h create mode 100644 Game.cpp create mode 100644 Game.h create mode 100644 Grid.cpp create mode 100644 Grid.h create mode 100644 Player.cpp create mode 100644 Player.h diff --git a/AI.cpp b/AI.cpp new file mode 100644 index 0000000..ef8922f --- /dev/null +++ b/AI.cpp @@ -0,0 +1,6 @@ +#include "AI.h" + +AI::AI() +{ + //ctor +} diff --git a/AI.h b/AI.h new file mode 100644 index 0000000..cafe104 --- /dev/null +++ b/AI.h @@ -0,0 +1,15 @@ +#ifndef AI_H +#define AI_H + + +class AI +{ + public: + AI(); + + protected: + + private: +}; + +#endif // AI_H diff --git a/Game.cpp b/Game.cpp new file mode 100644 index 0000000..90ed08f --- /dev/null +++ b/Game.cpp @@ -0,0 +1,6 @@ +#include "Game.h" + +Game::Game() +{ + //ctor +} diff --git a/Game.h b/Game.h new file mode 100644 index 0000000..8a5a4a9 --- /dev/null +++ b/Game.h @@ -0,0 +1,15 @@ +#ifndef GAME_H +#define GAME_H + + +class Game +{ + public: + Game(); + + protected: + + private: +}; + +#endif // GAME_H diff --git a/Grid.cpp b/Grid.cpp new file mode 100644 index 0000000..b45fbee --- /dev/null +++ b/Grid.cpp @@ -0,0 +1,6 @@ +#include "Grid.h" + +Grid::Grid() +{ + //ctor +} diff --git a/Grid.h b/Grid.h new file mode 100644 index 0000000..66b5e23 --- /dev/null +++ b/Grid.h @@ -0,0 +1,15 @@ +#ifndef GRID_H +#define GRID_H + + +class Grid +{ + public: + Grid(); + + protected: + + private: +}; + +#endif // GRID_H diff --git a/Player.cpp b/Player.cpp new file mode 100644 index 0000000..49fad99 --- /dev/null +++ b/Player.cpp @@ -0,0 +1,6 @@ +#include "Player.h" + +Player::Player() +{ + //ctor +} diff --git a/Player.h b/Player.h new file mode 100644 index 0000000..5a31de1 --- /dev/null +++ b/Player.h @@ -0,0 +1,15 @@ +#ifndef PLAYER_H +#define PLAYER_H + + +class Player +{ + public: + Player(); + + protected: + + private: +}; + +#endif // PLAYER_H diff --git a/Tic-Tac-Toe.cbp b/Tic-Tac-Toe.cbp index a6f6ada..df8eeb3 100644 --- a/Tic-Tac-Toe.cbp +++ b/Tic-Tac-Toe.cbp @@ -32,6 +32,14 @@ + + + + + + + +