In this video, learn how to create the maze game using the Builder Design pattern. Explore this pattern by creating a counting maze.
- [Instructor] In this video, we will be creating…our maze in Python using the Builder Design pattern.…The beginning of our code is still the same,…not much has changed yet.…We still have our MapSite, we have the direction enumeration…we have the room and the wall and the door…and we have the maze.…The first difference in our code using the Builder Design…pattern starts by declaring an interface called MazeBuilder.…
We created a new method that is like a C, C++…constructor method and then we create different methods.…Build maze, build room, build door and get maze,…which will return the constructed maze.…Now what's interest is that each of those methods…are basically empty, they do not return anything.…There's a reason for this.…In the Builder Design pattern, we allow subclauses…to only override the methods they are interested in.…
We are not raising any exceptions here,…we just say this is the interface.…You can override it, implement it if you wish.…If you don't then just leave it alone.…Now in order to build a maze,…
Note: This course was created by Packt Publishing. We are pleased to host this training in our library.
- Running Python programs within Eclipse
- Setting breakpoints
- Using the PyDev debugger
- Using design patterns
- Creating a GUI application with Tkinter
- Writing a Windows scheduling service