15 lines
511 B
C#
15 lines
511 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using RobotAndDonkey.Game.Cards;
|
|
|
|
namespace RobotAndDonkey.Game.Execution.Results;
|
|
|
|
public record ProgramRowResult(Guid RequestId, IReadOnlyList<Card> OrderedCards, IReadOnlyCollection<Guid> TapeCardIds) : Result(RequestId)
|
|
{
|
|
public override string ToString()
|
|
{
|
|
return $"Program row result: {string.Join(", ", OrderedCards.Select(c => c.ToString()))}; tape={string.Join(", ", TapeCardIds.Select(id => id.ToString()))}";
|
|
}
|
|
}
|