Commit Graph

6 Commits

Author SHA1 Message Date
Sebastian Crane 6a594c5ad3 Use strings instead of keywords for game names
This commit changes the internal representation of game names in the
state data to be strings instead of keywords. This fixes a potential
memory leak relating to games that no longer have any players, since
strings, unlike keywords, are garbage collected when no longer in use.

Resolves issue LibreGaming/matchbot#2

Signed-off-by: Sebastian Crane <seabass-labrax@gmx.com>
2022-03-30 12:11:10 +01:00
Sebastian Crane 905c6ada4c Add function with tests to get list of games
Signed-off-by: Sebastian Crane <seabass-labrax@gmx.com>
2022-01-03 14:27:19 +00:00
Sebastian Crane 242873a713 Rename players-of-game function to start with verb
Signed-off-by: Sebastian Crane <seabass-labrax@gmx.com>
2022-01-03 14:25:15 +00:00
Sebastian Crane f85458340c Add function with tests to remove game
Signed-off-by: Sebastian Crane <seabass-labrax@gmx.com>
2022-01-01 18:29:19 +00:00
Sebastian Crane e224e02e86 Add function with tests to remove player from game
Signed-off-by: Sebastian Crane <seabass-labrax@gmx.com>
2022-01-01 17:57:47 +00:00
Sebastian Crane f15c08e2cd Initial commit
Signed-off-by: Sebastian Crane <seabass-labrax@gmx.com>
2022-01-01 17:45:51 +00:00