

// test bot logic
def bot_logic(game_state):

	// todo: need parsing game_state: is_someone_allin(), is_someone_rise(), get_active_players(), get_all_money_in_game()
	// todo: get_probabillity()
	// todo: 
	fold = 0
	someone_allin = true # is_someone_allin()
	noone_rise = false # is_someone_rise()
	active_player_count = # get_active_players()
	our_probabillity_to_win = get_probabillity()
	current_pot = get_all_money_in_game()
	if someone_allin:
		if is_good_chance_to_win():
			return all_in
		else
			return fold
	elif noone_rise:
		return big_blind * 3
	else:
		amount_to_call = get_max_rise();
		if is_probabillity_good_to_play():
			return amount_to_call
	
	
	

class Player:

    VERSION = "1.1"
    NAME = "Kraken"

    def __init__(self):
        self.bet = 0
        self.risk = 1.
        self.accuracy = 1000
        self.our_player = None

    def betRequest(self, game_state):
        players_list = game_state["players"]

        for player in players_list:
            if player["name"] == Player.NAME:
                self.our_player = player
                break

        if self.our_player:
            our_stack = self.our_player["stack"]
            self.bet = our_stack
        print self.bet
        return self.bet

    def showdown(self, game_state):
        pass


@@ -850,16 +850,649 @@
 = None%0A%0A
+    def checkBet(self):%0A        our_buy_in = self.our_player%5B%22current_buy_in%22%5D%0A        if our_buy_in == self.our_player%5B%22bet%22%5D:%0A            return 0%0A        else:%0A            return self.our_player%5B%22bet%22%5D%0A%0A    def foldBet(self):%0A        return 0%0A%0A    def callBet(self):%0A        player_index = self.game_state%5B'in_action'%5D%0A        return self.game_state%5B'current_buy_in'%5D - self.game_state%5B'players'%5D%5Bplayer_index%5D%5B'bet'%5D%0A%0A    def raiseBet(self):%0A        player_index = self.game_state%5B'in_action'%5D%0A        return self.game_state%5B'current_buy_in'%5D - self.game_state%5B'players'%5D%5Bplayer_index%5D%5B'bet'%5D + self.game_state%5B'minimum_raise'%5D%0A%0A
     def 

Add check, fold, call, raise functions