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.
|