title: How to Implement a Decision Table in Objective-C
body: <p>I am a novice programmer, and I've just started reading about decision tables.  I have read Chapter 18 in Code Complete and it was very enlightening.  I looked around the web to try to find any kind of example of decision tables in Objective-C and I was unable to find any boilerplate or real world examples of how to implement this.  </p>
  
  <p>I am programming a game in Objective-C in my spare time, and I have been dealing with increasing complexity for the rules of the game.  There are a handful of somewhat deeply nested if-else statements, as well as a few switch statements that already have 10 or more cases to deal with.  I think it would be easier to work with decision tables, but I have no idea how to implement this in Objective-C for something non-trivial like the logic of a game.</p>
  
  <p>For example, I need different methods to execute for different combinations of states.  How would I implement a decision table in Objective-C that could take different combinations of states as keys, and run specific logic based on the combination of them?  </p>