Add project files.

This commit is contained in:
2022-09-13 02:43:55 +03:00
parent 2dec4b1dc5
commit 9e39314500
74 changed files with 2336 additions and 0 deletions
@@ -0,0 +1,22 @@
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;
}
}
}