Example #1
0
 public Game(IGameConfigurator congigurator, IGameView view)
 {
     IsStarted += view.GameAction;
     IsMoveEnded += view.MoveAction;
     _robots = congigurator.GetRobots();
     _field = congigurator.GetField();
     foreach (var robot in _robots)
     {
         robot.MoveIsMaked += view.RobotAction;
     }
 }
Example #2
0
 public Game(GameField field, List<IRobot> robots)
 {
     _field = field;
     _robots = robots;
 }
Example #3
0
 public Game(GameField field, List <IRobot> robots)
 {
     _field  = field;
     _robots = robots;
 }