public void PlaceAllPiecesOnGo(List <Player> listOfPlayers) { Game1.debugMessageQueue.addMessageToQueue("Placing all players on Go"); foreach (Player p in listOfPlayers) { // Move player to Go SoshiLandGameFunctions.MovePlayer(p, 0); } SoshilandGame.gameInitialized = true; }
public static void MovePlayerDiceRoll(Player p, int roll) { int currentPosition = p.CurrentBoardPosition; int newPosition = currentPosition + roll; // If player passes or lands on Go if (newPosition > 47) { newPosition = Math.Abs(newPosition - 48); // Get absolute value of the difference and move player to that new Tile p.BankPaysPlayer(200); // Pay player $200 for passing Go } // Move player to the new position SoshiLandGameFunctions.MovePlayer(p, newPosition); }