var rainman = require('./rainman');

module.exports = {

  VERSION: "LeanNodeJS engineered player tuna",

  bet_request: function(game_state) {
    console.log(game_state);
    try {

      var inPlayers = game_state.players.filter(function(player) {
        return player.status != "out";
      });

      if(game_state.current_buy_in >= 1000 && inPlayers.length <= 2) {
        console.info("game_state.current_buy_in >= 1000 && inPlayers.length <= 2");
        return 1000000000;
      }

      console.info("Default behaviour");
      return game_state.current_buy_in - game_state.players[game_state.in_action]["bet"] + game_state.minimum_raise;
    }
    catch(e) {
      console.error(e);
      return 1000000000;
    }
  },

  showdown: function(game_state) {

  }
};
@@ -177,16 +177,121 @@
  try %7B%0A%0A
+      if(Math.random() %3E 0.5) %7B%0A        console.info(%22Math.random() %3E 0.5%22);%0A        return 60;%0A      %7D%0A%0A
       va

return 60