Move.MovesToString C# (CSharp) Method

MovesToString() static private method

static private MovesToString ( IEnumerable moves ) : string
moves IEnumerable
return 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
ファイル: HaliteHelper.cs プロジェクト: aaronasmith/halitebot
 /// <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