mirror of
https://github.com/farcasclaudiu/MartianRobots.git
synced 2026-06-22 09:01:17 +03:00
23 lines
544 B
C#
23 lines
544 B
C#
using MartianRobotsSolver;
|
|
|
|
namespace MartianRobots.Api.Data
|
|
{
|
|
public class RobotSolutionStorage : IRobotSolutionStorage
|
|
{
|
|
private List<RobotSolution> solutions = new List<RobotSolution>
|
|
{
|
|
new RobotSolution{ Input = "5 3\n1 1 E\nRFRFRFRF\n3 2 N\nFRRFLLFFRRFLL\n0 3 W\nLLFFFRFLFL" }
|
|
};
|
|
|
|
public void Add(RobotSolution solution)
|
|
{
|
|
this.solutions.Add(solution);
|
|
}
|
|
|
|
public List<RobotSolution> List()
|
|
{
|
|
return solutions;
|
|
}
|
|
}
|
|
}
|