Discussion Board
Go to the previous messageThere are no next messages
Current Forum: Homework 6 Part 1
Date: Sat Dec 8 2001 9:58 am
Author: Patnaik, Rohit <rpatnaik@andrew.cmu.edu>
Subject: Re: End Game

A win only occurs if the current player is trapped or one of the players have only 2 pieces left on the board.

So to answer your question, since it's white's turn, even though black is trapped, it's not its turn, so the function isWinner() should return false and the function getWinner() should return Space.EMPTY
Post response

Go to the previous messageThere are no next messages
Current Thread Detail:
End Game      Katzhyman, Michael Zadok      Fri Dec 7 2001 5:13 pm       
Re: End Game      Ghosh, Debmallo S.      Fri Dec 7 2001 8:42 pm       
Re: End Game      Anderson, Jonathan D.      Sat Dec 8 2001 3:48 am       
Re: End Game      Liu, Limin Angela      Sat Dec 8 2001 9:56 am       
Re: End Game      Patnaik, Rohit      Sat Dec 8 2001 9:58 am       

Back to previous screen