Destroy a player object, freeing all memory used by it.
|player ||The player to be destroyed.|
Definition at line 69 of file player.c.
References COMPUTER, and HUMAN.
g_return_if_fail (player != NULL);
g_return_if_fail (player->name != NULL);
g_return_if_fail (player->type == HUMAN || player->type == COMPUTER);
g_string_free (player->name, TRUE);
player->name = NULL;
player->type = 0;