Esempio n. 1
0
 /// <summary>Creates a state.</summary>
 public static State Create(Map map)
 {
     return(Create(
                0,
                Hero.Initial(map, PlayerType.Hero1),
                Hero.Initial(map, PlayerType.Hero2),
                Hero.Initial(map, PlayerType.Hero3),
                Hero.Initial(map, PlayerType.Hero4),
                MineOwnership.Create(map)));
 }
Esempio n. 2
0
        /// <summary>Creates mine ownership from tiles.</summary>
        public IMineOwnership UpdateFromTiles(string tiles)
        {
            IMineOwnership mines = MineOwnership20.Empty;

            return(MineOwnership.UpdateFromTiles(mines, tiles));
        }
Esempio n. 3
0
 public string ToString(int length)
 {
     return(MineOwnership.ToString(this, length));
 }