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