SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. traceln(agent.getWish());
  2. traceln(current_food);
  3. if (agent.checkWish(current_food)) {
  4.     if ((1 - take_probability) > uniform(0, 1)) {
  5.         traceln("miss");
  6.         return;
  7.     }
  8.     agent.takeWish(current_food);
  9.     food_menu.get(current_food).addCount();
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top