src/draw.c
void initPlayer(Player * player)
{
    player->healthCount = 50;
    player->goldTotal = 0;
    player->potionCount = 1;
    player->inventoryTotal = 0;
    player->attackCount = 5;
}
//initialises all the parts of the player struct to their starting amounts as specified by the requirements provided
initialises all the parts of the player struct to their starting amounts as specified by the requirements provided
initialises all the parts of the player struct to their starting amounts as specified by the requirements provided
void initPlayer(Player * player)
{
    player->healthCount = 50;
    player->goldTotal = 0;
    player->potionCount = 1;
    player->inventoryTotal = 0;
    player->attackCount = 5;
}
void initPlayer ( Player * player ) { player -> healthCount = 50 ; player -> goldTotal = 0 ; player -> potionCount = 1 ; player -> inventoryTotal = 0 ; player -> attackCount = 5 ; }
initialises all the parts of the player struct to their starting amounts as specified by the requirements provided
initialises all the parts of the player struct to their starting amounts as specified by the requirements provided