So I'm meant to create a tic tac toe game where the computerplayer must have a recursive algorithm. I already completed the other parts of the code like board,player, checking winner and moves. Now I'm stuck on how should I start the computerplayer as im not really good at recursion.
public class ComputerPlayer implements Player {
public ComputerPlayer(char computerCharacter, String name) {
// TODO Auto-generated constructor stub
}
@Override
public Move getMoveFor(GameState state) {
// TODO Auto-generated method stub
return null;
}
@Override
public String getName() {
// TODO Auto-generated method stub
return null;
}
@Override
public char getCharacter() {
// TODO Auto-generated method stub
return 0;
}
}
I must follow this rubric for it
this is all I have so far and I really need help with this project.
let me know if you need to see all my code