27 lines
466 B
C
27 lines
466 B
C
|
//
|
||
|
// Created by sapan on 18-11-2024.
|
||
|
//
|
||
|
|
||
|
#ifndef HW4_STRATEGIC_PLAYER_H
|
||
|
#define HW4_STRATEGIC_PLAYER_H
|
||
|
|
||
|
#include "board.h"
|
||
|
#include "player.h"
|
||
|
|
||
|
class StrategicPlayer: public Player {
|
||
|
private:
|
||
|
char name;
|
||
|
public:
|
||
|
|
||
|
StrategicPlayer(char name): Player(name) {
|
||
|
this->name = name;
|
||
|
}
|
||
|
|
||
|
void selectLineLocation(Board& board, int& row, int& col);
|
||
|
char getName() const override {
|
||
|
return this->name;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
#endif //HW4_STRATEGIC_PLAYER_H
|