cmpsc330hw4/gameplay.h
2024-11-19 18:54:26 -05:00

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