reset password
Author Message
bsugimo
Posts: 1
Posted 16:21 Oct 19, 2014 |

What is the difference in what he is asking for in the getTurn() method vs the getPlayer() method?

MariahM
Posts: 35
Posted 16:33 Oct 19, 2014 |

I am thinking that getPlayer() returns the user (whatever player the person chooses to play) and that getTurn() returns whose turn it currently is. 

kscasado
Posts: 19
Posted 16:34 Oct 19, 2014 |

getTurn() should return the player whose turn it is. Player should return who the user is. i.e if the person playing chose 'x' then getPlayer() should always return Player.X where as getTurn will switch every time a move has been made. Let me know if that helps or not.

 

Edit: ^^ yea that

Last edited by kscasado at 16:37 Oct 19, 2014.
jhurley
Posts: 207
Posted 10:25 Oct 20, 2014 |

yes, the answers above are correct