After some time, a player that has been killed should be allowed to revive and join the game again.
A first step is to make a function that can revive a player.
Test
[x] Test is ready and on develop
#define FIX_ISSUE_626
{
// (626) A player that is out can be revived
game g;
g.kill_player(0);
assert(is_out(g.get_player(0)));
g.revive_player(0);
assert(!is_out(g.get_player(0)));
}
#endif // FIX_ISSUE_626
Context
After some time, a player that has been killed should be allowed to revive and join the game again. A first step is to make a function that can revive a player.
Test
Tip: look for the definition of
kill_player()