Move.MovesToString C# (CSharp) 메소드

MovesToString() 정적인 개인적인 메소드

static private MovesToString ( IEnumerable moves ) : string
moves IEnumerable
리턴 string
    internal static string MovesToString(IEnumerable<Move> moves)
    {
        return string.Join(" ", moves.Select(m => string.Format("{0} {1} {2}", m.Location.X, m.Location.Y, (int)m.Direction)));
    }

Usage Example

예제 #1
0
 /// <summary>
 /// Call to send your move orders and complete your turn.
 /// </summary>
 public static void SendMoves(IEnumerable <Move> moves)
 {
     SendString(Move.MovesToString(moves));
 }
All Usage Examples Of Move::MovesToString