Chess Type Movement

Hello my question is how do i make my heroe move. for example the heroes is limited to move 3 square so how would i make it so that hes limited to move 3 squares and how would i code the turn button so that it resets each time its the heroes turn. thanks in advance!

  1. make a global player controller that stores current player and it’s turns left.
  2. make a button that finishes turn and calls controller, controller should set turns to maximum possible and player to next
  3. in players interface and input controller check on each user action for is it your turn and do you have action points. on some actions call controller to decrease action points.