User:Douglas Wall
Douglas Wall (Talk | contribs) m |
Douglas Wall (Talk | contribs) |
||
Line 6: | Line 6: | ||
== Cards as a minor design study (project warm-up) == | == Cards as a minor design study (project warm-up) == | ||
Someone asked me this question after they were asked it in a job interview: "Can you draw a UML diagram for a deck of cards including the Jokers". Sounds simple right? Well after my mind imploded while trying to deal with the Joker (no pun intended), which complicates everything, I have resolved to try and crack that nut in an OO manner. I have a loose context for the design, that being that it must be reasonably extendible/reusable and easily maintained. It should feature no game specific behaviour, and I will probably ignore graphic representation entirely. | Someone asked me this question after they were asked it in a job interview: "Can you draw a UML diagram for a deck of cards including the Jokers". Sounds simple right? Well after my mind imploded while trying to deal with the Joker (no pun intended), which complicates everything, I have resolved to try and crack that nut in an OO manner. I have a loose context for the design, that being that it must be reasonably extendible/reusable and easily maintained. It should feature no game specific behaviour, and I will probably ignore graphic representation entirely. | ||
+ | |||
+ | Disclaimer: I make no claim to know what I am doing. Most diagrams will be missing details. Some may even cause dysentery. | ||
Naturally, the solution could be as simple, yet horrific as this: [[Image:Bad Cards.jpg]] | Naturally, the solution could be as simple, yet horrific as this: [[Image:Bad Cards.jpg]] |
Revision as of 01:44, 4 August 2009
Coming soon, some sort of design project decision, for the mean time I shall consider the cards problem.
Cards as a minor design study (project warm-up)
Someone asked me this question after they were asked it in a job interview: "Can you draw a UML diagram for a deck of cards including the Jokers". Sounds simple right? Well after my mind imploded while trying to deal with the Joker (no pun intended), which complicates everything, I have resolved to try and crack that nut in an OO manner. I have a loose context for the design, that being that it must be reasonably extendible/reusable and easily maintained. It should feature no game specific behaviour, and I will probably ignore graphic representation entirely.
Disclaimer: I make no claim to know what I am doing. Most diagrams will be missing details. Some may even cause dysentery.
Naturally, the solution could be as simple, yet horrific as this: