#include "vpp/client/bot_client.h"
#include <iostream>
#include <random>

// Example user bot implementation
int main(int argc, char* argv[]) {
    int numActions = (argc > 1) ? std::atoi(argv[1]) : 100;

    vpp::client::LowLatencyBotClient bot;

    // Define custom strategy decision logic
    std::mt19937 rng(42);
    bot.setStrategy([&rng](const ServerMessage& req) {
        // Simple strategy: Call most of the time, occasionally Raise
        int r = rng() % 10;
        if (r < 7) {
            return std::make_pair(ClientAction::CALL, 0);
        } else if (r < 9) {
            return std::make_pair(ClientAction::RAISE, 20);
        } else {
            return std::make_pair(ClientAction::FOLD, 0);
        }
    });

    std::cout << "Starting custom low-latency bot..." << std::endl;
    bot.connectAndRun("127.0.0.1", 9001, numActions);

    return 0;
}
