'use strict';

/**
 * @ngdoc function
 * @name hexMapJsApp.controller:MovementCtrl
 * @description
 * # MovementCtrl
 * Controller of the hexMapJsApp
 */
angular.module('hexMapJsApp')
  .controller('MovementCtrl', function ($scope) {

    // Create hexagon grid
    var hexagonGrid = new HexagonGrid('MovementHexCanvas', 50);
    hexagonGrid.drawHexGrid(10, 500, 600);

    // Add space ship in the center
    hexagonGrid.addSprite(0, 0, 'images/space_ship_200x200.png');

    $scope.hexagonGrid = hexagonGrid;
  });

@@ -462,24 +462,967 @@
 200.png');%0A%0A
+    // Hardcoded ship characteristics%0A    // var current_position = %7Bu: 0, v: 0%7D;%0A    var foreseenDestination = %7Bu: -3, v: 0%7D;%0A    // var orientation = %7Bu: -1, v: 0%7D;%0A    var manoeuvrability = 2;%0A%0A    // Compute allowed destinations%0A    var allowedDestinations = %5B%5D;%0A    for (var allowedU = foreseenDestination.u - manoeuvrability; allowedU %3C= foreseenDestination.u + manoeuvrability; allowedU++) %7B%0A      for (var allowedV = foreseenDestination.v - manoeuvrability; allowedV %3C= foreseenDestination.v + manoeuvrability; allowedV++) %7B%0A        var allowedDestination = %7Bu: allowedU, v: allowedV%7D;%0A        if (hexagonGrid.Distance(foreseenDestination, allowedDestination) %3E manoeuvrability)%7B%0A          continue;%0A        %7D%0A        allowedDestinations.push(allowedDestination);%0A      %7D%0A    %7D%0A    for (var i = 0; i %3C allowedDestinations.length; i++)%7B%0A      hexagonGrid.setHexColor(allowedDestinations%5Bi%5D.u, allowedDestinations%5Bi%5D.v, 'green');%0A    %7D%0A%0A
     $scope.h

Add hardcoded movement values and basic movement logic