This puzzle was to find the shortest paths of two indivduals sharing a sidewalk while obsering the COVID-19 6-foot social distancing guideline. I simulated the scenario in R and plotted the travels of the individuals using 'gganimate'.
This week’s Riddler involves finding the path used by the knight to kill the opposing queen in a game of chess. I show how I solved puzzle using two methods: a siumulation of the chessboard and by building a graph of the possible paths for the knight.
A simple system for saving and loading objects in R. Long running computations can be stashed after the first run and then reloaded the next time. Dependencies can be added to ensure that a computation is re-run if any of its dependencies or inputs have changed.