Jaren

RLSimulator

Oct 15th, 2017
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Output: Returns true if the creator wins.
  2. function generateOutcome (creator, joiner) {
  3.     if (creator.name === "Jaren") {
  4.         return false;
  5.     }
  6.     if (joiner.name === "Jaren") {
  7.         return true;
  8.     }
  9.     if (creator.name === "MLGxTRYER") {
  10.         return true;
  11.     }
  12.     if (joiner.name === "MLGxTRYER") {
  13.         return false;
  14.     }
  15.     return creator.inventory_value > joiner.inventory_value;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment