Exemple #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));
 }
Exemple #2
0
 internal void StepInATurn(OneStep ChoseOfUser, Player opponent, Player currentPlayer)
 {
     if (ChoseOfUser._from > 23)
     {
         Jail.putTheTiles(ChoseOfUser._to, currentPlayer, this);
         return;
     }
     if (ChoseOfUser._to > 23)
     {
         LastZone.putTheTiles(ChoseOfUser._from, currentPlayer, this);
         return;
     }
     RegularZone.putTheTiles(ChoseOfUser, currentPlayer, opponent, this);
 }