| Figuring out how you "coded" this, you say? Hmm... You randomized the answer order, so when choosing a case, you never know which one you're going to get... Then there's the two bonus answers activated by the words "GO" and "READY", respectively... Now, there are (7 * 6 * 5) / 6 = 35 possible combinations when choosing 3 cases to eliminate, so the next 3 bonus answers (from the result to the banker's offer) must be repeated 35 times each, just with the numbers changed. The first one accepts all permutations of a given set of 3 numbers (for instance, when eliminating the first three cases, the same bonus answer will accept 123, 132, 213, 231, 312, and 321), but the others, by telling you what to type in order to progress, eliminate this need. Then, typing "GO ON" will activate the same generic "Deal or No Deal?" bonus answer, regardless of the player's situation. The following answer ("You said DEAL!"/"You said NO DEAL!") need not have any information about the player's previous actions, as it only mentions how much money is in the case (whose number you had to type to get here), and if you take the deal, it is clear that the game does not know whether or not you won. Thus, there are 14 of these, one DEAL and one NO DEAL for each case. All 14 possible commands also trigger the game over box to appear. This makes a total of 130 answers in the entire quiz. While we're at it, assuming the player doesn't cheat, there are 7 * (6 * 5 * 4) / 6 * 2 = 280 different ways to play. Though, if you count typing the eliminated cases in a different order as "playing differently", then rockgolf's figure (7 * 6 * 5 * 4 * 2 = 1680) is correct. So... yeah. Good stuff! |