BlogNomic has moved!

The game is now running at blognomic.com

Wednesday, September 24, 2003

Proposal : Battery Packs

[ Adding extra battery packs, and a way to create them, and a way to choose whether to create a battery pack, or some Product, or neither... ]

To the syntax list in Rule 11 (The Master Control Program), add:-

keyword. When a Robot calls the MCP, it may optionally include a single keyword of its choice (eg. "PRODUCT").


In Rule 12 (The MCP), replace "if (power(self)>50)" with:-

if (power(self) > 50 && keyword = "PRODUCT")


Also add, before "// Check to see":-

// Create a supplementary battery.

if (power(self)>50 && keyword = "BATTERY")
{
power(self) = power(self)-50;
inventory(self) = inventory(self) + battery_object
}


Replace the "vent excess power" code with:-

// Vent excess power. 

if (power(self) > (100*(1+number_of_batteries(self))))
{
power(self) = (100*(1+number_of_batteries(self)));
}


Enacted by est, 24th Sept. +12 to Kevan, +5 to est