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
main.cpp
00001 #include "led_func.h" 00002 #include "othellomain.h" 00003 00004 Ticker LedBoard; 00005 00006 void SetLEDBoard(Board board){ 00007 for(uint8_t i=0;i<8;i++){ 00008 for(uint8_t j=0;j<8;j++){ 00009 if(board.board[i][j]==BLACK)led_board[i][j].SetColor(CBLUE); 00010 if(board.board[i][j]==WHITE)led_board[i][j].SetColor(CGREEN); 00011 } 00012 } 00013 } 00014 00015 int main(){ 00016 ResetLEDBoard(); 00017 RandomAI player1(BLACK); 00018 RandomAI player2(WHITE); 00019 Board mainboard; 00020 LedBoard.attach_us(&PrintLEDBoard,100); 00021 Play(player1,player2,mainboard); 00022 while(1){} 00023 }
Generated on Tue Jul 12 2022 21:43:15 by
1.7.2