7from .null_object
import MoveProcessor
30 print(
"Null Object Exercise")
36 moveString =
"ur#ld!lr";
37 print(
" Showing the move commands:")
38 moveProcessor.ShowMoveList(moveString)
40 print(
" Executing the move commands:")
41 print(
" {0} -> ".format(moveString), end=
"")
42 moveProcessor.ExecuteMoveList(moveString)
Represents the processor that translates the move list into a list of MoveCommand objects then either...
def NullObject_Exercise()
Example of using the Null Object Pattern.