Ad
  • Custom User Avatar

    I like your solution to the problem.

  • Custom User Avatar

    Hi,

    should I for knightEngine make it run through a list of bind(moveKnight) and sort of replicate the compose function ?

    Having a hard time to see how I would go from

    var knightEngine = compose(bind(moveKnight), bind(moveKnight))(from)

    to

    function knightEngine(from, movements) {}

    Any directions/hints you could provide..

    My initial thought was to make a list and replicate functionality from compose but that seems counter intuitive as I dont want to replicate my code... but I might have too?

    //David