address[] public players;
mapping(address => bool) private activePlayers;
I want to avoid duplicate players to enter in players array, so i want to understand if i create a such mapping with address pointing to bool. and once the game is over can i loop through the mapping and reset it ? is it even possible to reset the mapping. Is there any other efficient way to check if an address exists in an array like players?