Пример #1
0
 private static List <OneStep> returnPossabilities(Board board, Color.color currentColor, Player currentPlayer)
 {
     if (Jail.checkIfThereIsSomeOneInJail(currentColor, board))
     {
         return(Jail.giveAllTheSteps(board, currentColor, Turn.currentRoll));
     }
     if (currentPlayer.isInTheLastZone)
     {
         return(LastZone.giveAllTheSteps(board, currentColor, Turn.currentRoll));
     }
     return(RegularZone.giveAllTheSteps(board, currentColor, Turn.currentRoll));
 }