Settling arguments with software

c: | m: | f: /

Leaving the safe plains of Textpattern for the more salubrious open sores of PHP-dom, there is this offering. It's a simulator for 'N' rounds of Nathan Barley's game of choice; and it's well weapon. Essentially a peurile version of Rock Paper Scissors, witness your computer fighting itself in a Tron-style battle of nerve to see which side of its logic gate can be crowned C-M-B champ.

Despite the obvious frivolousness of the code and the fact you can display the results of each game, it does have a (sort of) serious use. If you just supply a single number as an argument to the function it will run that many games and the number returned tells you who won; player 1 or player 2. Imagine you have two processes contending for the same resource and can't decide who to let have priority? The answer's simple: a few quick games of Cock Muff Bumhole will sort out who gets on the processor bus and who has to wait for the next interrupt.

As a scheduling tool / contention buster / deadlock avoidance system it's brilliant. If you want to really screw things up you can even pass an extra parameter to decide if the outcome is allowed to be a tie or not.

Try it, download it, use it to solve arguments. It's what Nathan would have wanted, after all.

Watch Cock Muff Bumhole unfold before your eyes
[Number of games to run]
YesNo [Rounds can be a draw]
YesNo [Probably a good idea!]
YesNo [Shouldn't need this]