Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
player.h
00001 #include "othello.h" 00002 00003 /*class Player{ 00004 public: 00005 int8_t color; 00006 Player(int8_t color){ 00007 this->color=color; 00008 } 00009 00010 uint8_t PutMove(int8_t board[8][8]){ 00011 return 0; 00012 } 00013 };*/ 00014 00015 class RandomAI{ 00016 public: 00017 int8_t color; 00018 RandomAI(int8_t _color){ 00019 this->color=_color; 00020 } 00021 uint8_t PutMove(Board board){ 00022 std::vector<uint8_t> coords(GetPutCoords(board,this->color)); 00023 uint8_t idx=rand()%coords.size(); 00024 return coords[idx]; 00025 } 00026 };
Generated on Tue Jul 12 2022 21:43:15 by
1.7.2