Advanced intermediate projectsAdvanced intermediate projects javelin Mon, 2006-09-04 21:46
These challenges involve larger or trickier projects that require coordination of multiple objects.
RadiosRadios javelin Mon, 2006-09-04 21:47
The goal of this challenge is to produce a set of radio (or walkie-talkie) objects that are multichannel, multicast devices -- each radio may be tuned to a single frequency at a time, and will receive any broadcast made on the same frequency.
A radio object is different from a chat channel because it is an *object* that can be given, dropped, etc. The radio should have three volume levels: off (nothing received is broadcast), normal (anything received is emitted to the location of the radio, which may be a player), and loud (anything received is emitted to the location of the radio and to the container of the location of the radio).
*Extra challenge*: Make a scanner that can receive multiple frequencies.
*Extra challenge*: Add an encryption system to the radios so that if an encryption key is set, other radios receive garbled text unless they have same encryption key set. The garbled text, ideally, should not be random but text that would actually be susceptible to (human) cryptanalysis.
This coding challenge by: Javelin
The Slim Shady AlgorithmThe Slim Shady Algorithm javelin Sat, 2006-09-09 13:04
The goal of this challenge is to implement the Slim Shady Algorithm.
Create a dozen or so listening objects that all exhibit similar responses to a trigger phrase ("Will the real Slim Shady please stand up?"). The responses should be triggered in a probabilistic fashion (e.g., when asked to stand up, there is a 50% chance that each object will stand up). These are the imposter Slim Shadys.
Create a single listening object with the same response to the trigger, but 90% of the time. This is the real Slim Shady.
Create an object that repeatedly asks for the real slim shady to please stand up, and keeps track of which objects respond how often. This object should repeat the algorithm and provide its best guess of which of the standing objects is the real Slim Shady.