// Implementation of init_player for Monopoly
#include "player.h"

void init_player(Player* p, int id, const char* name, const char* token) {
    p->id = id;
    p->name = name;
    p->token = token;
    p->balance = 1500;       // Standard starting cash
    p->position = 0;         // Start at "Go"
    p->is_in_jail = false;
    p->jail_turns = 0;
    p->jail_free_cards = 0;
    p->is_bankrupt = false;
    p->property_count = 0;
    for(int i = 0; i < MAX_PROPERTIES; i++) {
        p->properties_owned[i] = -1; // -1 indicates an empty slot
    }
}