PraktikumOthello/players/playerlib.cc

16 lines
201 B
C++

#include <stdio.h>
#include <stdlib.h>
#include "playerlib.h"
char getEnemyChar(char ownc)
{
char enemyc;
switch(ownc){
case "O": enemyc="X"; break;
case "X": enemyc="O";
}
return enemyc;
}