I recently spent more time than I would like to admit writing Swift code for my favorite toy problem: Create a generic A* solver, and use it to solve a word…