mirror of
https://github.com/farcasclaudiu/MartianRobots.git
synced 2026-06-22 09:01:17 +03:00
Add project files.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user