NEED HELP!!!
this a shell just to express my logic before attempting to SLIC, can anyone check my flow here and offer any needed fixes?
this a shell just to express my logic before attempting to SLIC, can anyone check my flow here and offer any needed fixes?
Code:
Start turn If player = human then Get unit type if land Then get unit location return value Get nearest city and get nearest fort, get lowest value (sptdist) If player has advance HORSE return value 5 RAILROAD return 10 AUTOMOBILE return 15 AIR return 20 return highest value(advdist) Get sptdist divide by advdist = logdist Get UNIT GOLD # multiple logdist = gold cost per turn Get UNIT pw # multiple logdist = pw cost per turn Total gold and pw cost for all units. Subtract from player gold and pw. repeat for all land units
Comment