Othello

Dependencies:   mbed

Revision:
0:8c7f841516ab
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/player.h	Tue Sep 04 04:07:41 2018 +0000
@@ -0,0 +1,26 @@
+#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];
+        }
+};
\ No newline at end of file