The solution for the Tower of Anne Hoy took me forever to figure out. In the end, I never solved the fastest solution, but I solved it! It required a hard coding of moving the first 4 cheeses to the second stools, then doing a regular 3 cheese Tower of Hanoi solution with the remaining stools.
Thursday, 20 February 2014
Tuesday, 11 February 2014
Classes, Methods, Functions, Subclasses, Visualizers... Oh My
During this week, I started on Assignment 1. This asks the student to create a series of object oriented functions to manipulate pieces of cheese on stools in the form of a game.
Friday, 31 January 2014
Exceptions and Turtles
The next stage of object oriented programming that we've gone through is exceptions. Calling exceptions is one of the more interesting processes of python programming that I've undertaken so far because of the way it's formatted.
Thursday, 23 January 2014
My Thoughts on Object Oriented Programming
I like object oriented programming. It just makes sense. It is a sensible, layered process, where even a person who isn’t adept at programming can follow the process. The organization is also simple to understand. Object oriented programming almost always follows the same formula, that way there is no variation when one is approaching a problem.
Subscribe to:
Posts (Atom)