Saturday, March 26, 2016

Week 10, reflection of assignment 2

Truth be told, assignment 2 seems to be daunting at the first glance. I read through Soduku but nothing made sense... I realized what I needed here is something more than programming skill, but patience.

After sovling the fail_fast method in sodoku, my confidence grew exponentially as I started solving peg. The extension part of peg was actually easy after I had found all the cases. Then I moved on to MN PUZZLE, which was a lot similar to peg in terms of extentions, involving with the switch of numbers and positions. The word puzzle was the easist, after implementing its extension and fail_fast, I laid my hands on the most tantalizing part of the assignment - puzzle_tool.

Depth first search and breadth first search sounds drastically different in method, but largely similar in coding. After messing with them around 8 hours - I found the only difference, the only difference that is that the list containing puzzle_nodes pops differently with the first one and the last one.

It's so much fun.

No comments:

Post a Comment