24 lines
466 B
C++
24 lines
466 B
C++
#ifndef HW4_GAMEPLAY_H
|
|
#define HW4_GAMEPLAY_H
|
|
|
|
#include "board.h"
|
|
#include "random_player.h"
|
|
#include "strategic_player.h"
|
|
|
|
class Gameplay {
|
|
private:
|
|
Board board;
|
|
Player* player1; // Use pointers to enable polymorphism
|
|
Player* player2;
|
|
|
|
void determineWinner();
|
|
|
|
public:
|
|
Gameplay(int rows, int cols, Player* player1, Player* player2);
|
|
~Gameplay(); // Destructor to clean up allocated memory
|
|
|
|
void playGame();
|
|
};
|
|
|
|
#endif // HW4_GAMEPLAY_H
|