|
How about... commands = (set of commands); banned = IdentitySet.new; // or Set.new if you're using strings When the computer picks a command, it does: banned.add(command); When a player hits the pedal, check banned.includes(command) If that's false, the command can go through. hjh On May 2, 2009, at 2:06 PM, Clifford Dunn wrote:
: H. James Harkins .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..: "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman |