Пример #1
0
        public static Dictionary <CamelColor, Position> ConvertToStartingPositions(string startingPositions)
        {
            var positions = startingPositions.Split(' ').Select(x => new Position(int.Parse(x.Split(',')[0]), int.Parse(x.Split(',')[1]))).ToArray();

            return(CamelHelper.GetAllCamelColors().ToDictionary(x => x, x => positions[(int)x]));
        }
Пример #2
0
 public void StartNewGame(int playerId, GameInfo info, GameState gameState)
 {
     _me = playerId;
     BetCardsRemaining = CamelHelper.GetAllCamelColors();
 }