2024-11-19 23:54:26 +00:00
|
|
|
#ifndef HW4_RANDOM_PLAYER_H
|
|
|
|
#define HW4_RANDOM_PLAYER_H
|
|
|
|
|
|
|
|
#include "board.h"
|
|
|
|
#include "player.h"
|
|
|
|
|
2024-11-20 00:11:06 +00:00
|
|
|
class RandomPlayer : public Player {
|
2024-11-19 23:54:26 +00:00
|
|
|
char name;
|
2024-11-20 00:11:06 +00:00
|
|
|
|
2024-11-19 23:54:26 +00:00
|
|
|
public:
|
2024-11-20 00:11:06 +00:00
|
|
|
RandomPlayer(char name);
|
2024-11-19 23:54:26 +00:00
|
|
|
|
2024-11-20 00:11:06 +00:00
|
|
|
void selectLineLocation(Board &board, int &row, int &col);
|
2024-11-19 23:54:26 +00:00
|
|
|
|
2024-11-20 00:11:06 +00:00
|
|
|
char getName() const;
|
2024-11-19 23:54:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //HW4_RANDOM_PLAYER_H
|