Changes between Version 1 and Version 2 of pd
- Timestamp:
- Jul 13, 2011 4:45:01 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pd
v1 v2 4 4 * 1: int item, the item to put down. 5 5 * 0 = treasure 6 * 1 = map 7 * 2 = apple 8 * 3 = money 9 * 4 = food 6 * 1 = gold 10 7 * 2: int quantity, how much of the item to put down. If the quantity is greater than the current amount in the inventory, the quantity is rounded down to the current amount. 11 8 12 9 '''Reports:''' 13 10 * ''done'' when the task is complete. 14 * ''invalid_item'' if the first argument is not 0- 4.11 * ''invalid_item'' if the first argument is not 0-1. 15 12 * ''none_in_inventory'' if the agent does not have any of the specified item. 16 13 * ''invalid_quantity'' if the second argument is not positive.