Introduction You write a server for a massively multiplayer online role-playing game (MMORPG).
In the game, players collect keys and you want to design how to store the set of keys each player has.
As an example, imagine the set of keys are copper, jade and crystal. You consider the following options for storing a player key sets:
string map[string]bool Both options will work, but did you consider a third option of using a bitmask?Continue reading