@Override
	public Action getAction(GameState state) {
		if(state.getActivePlayerCount()==1){
			return Action.CALL;
		}
		if(state.getRound() == Round.PRE_FLOP){
			if(random.nextFloat() >= 0.5f){
				return Action.CALL;
			}else{
				return Action.FOLD;
			}
		}
		else{
			Hand best = Hand.getBestHand(new Card[]{holeCard1,holeCard2}, state.getCommunalCards());
			if(best.getType().ordinal() >= MINIMUM_BET.ordinal()){
				return Action.BET;
			}else if(best.getType().ordinal() >= MINIMUM_CALL.ordinal()){
				return Action.CALL;
			}else{
				return Action.FOLD;
			}
		}
	}