View Single Post
Re: an idea of selecting weapons to buy
Old
  (#5)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: an idea of selecting weapons to buy - 29-12-2004

using the log10() to select the weapon can ensure that there are higher possibility to select "better" weapon and lower possibility to select "worse" weapon
the possibility is also depending on money

also the "p" points to a std::vector<int> which is a table similar to POD-Bot. it just chooses one of them depending on current bot's aggression value.
  
Reply With Quote