Loading…
Automating Santa's gift-wrapping line, from a deliberately vague subject.
Santa Claus has had enough of his elves and wants to automate his gift-wrapping line. What makes this rush distinctive: the subject is deliberately opaque, you have to rebuild the rules yourself from a disorganised description. It is an exercise in functional analysis as much as in programming — exactly what you meet facing a real client.
A wrapping line simulator: an abstract Object / Toy / Wrap hierarchy (Teddy, LittlePony, Box, GiftPaper), Itable and IconveyorBelt workstations specialised into PapaXmasTable and PapaXmasConveyorBelt, an IElf chaining the gestures, and the two MyUnitTests functions imposed by the subject.
READING SOURCE…