Beispiel #1
0
 public IEnumerable<UnitState> GetNeighbors(UnitState current)
 {
     return new List<UnitState>
     {
         current.Translate(Direction.E),
         current.Translate(Direction.W),
         current.Translate(Direction.SE),
         current.Translate(Direction.SW),
         current.Translate(Direction.CW),
         current.Translate(Direction.CCW)
     };
 }