Details of TRUCKIN GOAL: Make more money than other players When your turn comes: (_ player TakeTurn) sent by PlayerInterface to player IV maxMove contains max number of squares you can move in either direction player charged for time used till control returned to gameMaster In one turn you can .. 1.(_ \PlayerInterface Move self numberOrLoc) arg can be number of squares to move - positive for Forward and negative for Backward OR the actual roadStop object you want to move to 2.(_ \PlayerInterface Buy self quantity) 3.(_ \PlayerInterface Sell self cargo quantity) cargo is actual cargo instance Special Rules AlicesRestaurant: Cannot stay more than 30 seconds in any single visit, otherwise towed to UnionHall UnionHall: When visited, fresh start. Can go there any time you can Move (even if no fuel, ..) Mechanics of Playing Game NewGame: (_ $Truckin New) Starting a game: (_ PlayerInterface BeginGame) --set game parameters via Inspector --select player, trucks, gauges Resuming a game: Use the Game Control Menu Attaching gauges: (_ object AddGauges listOfIVs) Interrupting a game: 1. Control: When a truck is moving, stops the truck 2. Control-Shift: During game, brings up the user exec. 3. Player Interrupt Menu: Selecting player, suspends game and brings up Rule Exec for player. 4. Game Control Menu: Select Suspend to suspend game KillGame to kill game Awake to resume a suspended game Price Calculations Buying Price = Producer:pr X Commodity::AvgPrice Selling Price = Consumer:pr X Commodity::AvgPrice A. Selection functions return list of RoadStops AnyRoadStop (roadStopType numMoves direction roomToParkFlg)* . Buyers (commodityClass numMoves includeCDFlg)* NthRoadStop (numMoves direction fromRoadStop roomToParkFlg)* RoadStops (roadStopType numMoves direction roomToParkFlg)* Sellers (commodityClass numMoves)* B. Filter functions FilterObjs (self selector objects) FurthestRoadStop (roadStops fromRoadStop)* NearestRoadStop (roadStops fromRoadStop)* PickHiObj (self selector objects ) PickLowObj (self selector objects ) SortObjs (self selector objects ) C. Miscelleneous functions AnyBanditsP (toRoadStop fromRoadStop) DirectionOf (toRoadStop fromRoadStop)* Distance (toRoadStop fromRoadStop)* PricePerUnit (producerRoadStop) RoomToParkP (roadStop) (_ roadStop BanditP) ISA (instance className) Nth (list index) SUBCLASS (class superClass) The following are available only as methods on Player class. (_ player Range) based on fuel only (_ player Range1) based on fuel and maxMove (_ player TimeAtStop) (_ player TurnsAtStop) GlobalVariables 1. PlayerInterface 2. Simulator 3. debugMode 4. truckinLogFlg 5. timeTrace (LIST ((PAGE NIL (PAPERSIZE NIL) (0 0 612 792) ((TEXT NIL NIL (0 72 612 648) NIL))) (PAGE NIL ( PAPERSIZE NIL) (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD CENTERED) CHARLOOKS (SUPERSCRIPT 0 INVISIBLE OFF SELECTPOINT OFF PROTECTED OFF SIZE 10 FAMILY GACHA OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF EXPANSION REGULAR SLOPE REGULAR WEIGHT MEDIUM INVERTED OFF USERINFO NIL STYLE NIL) FORMATINFO NIL) ( 163 756 288 36) NIL) (TEXT NIL NIL (0 72 612 648) NIL))) (PAGE NIL (PAPERSIZE NIL) (0 0 612 792) (( FOLIO NIL (PARALOOKS (QUAD CENTERED) CHARLOOKS (SUPERSCRIPT 0 INVISIBLE OFF SELECTPOINT OFF PROTECTED OFF SIZE 10 FAMILY GACHA OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF EXPANSION REGULAR SLOPE REGULAR WEIGHT MEDIUM INVERTED OFF USERINFO NIL STYLE NIL) FORMATINFO NIL) (163 756 288 36) NIL) (TEXT NIL NIL (0 72 612 648) NIL)))))+HH $+HH +HH $3+HH $3+HH 3+HH +HH (GACHA GACHA GACHA ?1(DEFAULTFONT 1 (GACHA 10) (GACHA 8) (TERMINAL 8)) GACHA ( 'A;/4 .: : :%S& (&D    @1>=$%++#%$'(% /    êýzº