ported from perforce
This commit is contained in:
14
RobotAndDonkey.Game/Execution/Results/ProgramRowResult.cs
Normal file
14
RobotAndDonkey.Game/Execution/Results/ProgramRowResult.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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()))}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user