Othello
Dependencies: mbed
player.h
- Committer:
- Yuto_K
- Date:
- 2018-09-04
- Revision:
- 0:8c7f841516ab
File content as of revision 0:8c7f841516ab:
#include "othello.h" /*class Player{ public: int8_t color; Player(int8_t color){ this->color=color; } uint8_t PutMove(int8_t board[8][8]){ return 0; } };*/ class RandomAI{ public: int8_t color; RandomAI(int8_t _color){ this->color=_color; } uint8_t PutMove(Board board){ std::vector<uint8_t> coords(GetPutCoords(board,this->color)); uint8_t idx=rand()%coords.size(); return coords[idx]; } };