NextPlayer: A Node.js module for managing player turns

Ever have the need to keep track of players in a Node.js based game? Maybe you were building a turn-based game and you had a few servers running and you needed some distributed and atomic solution backed with Redis? Well, if this teeny tiny subset of developer need overlaps with yours then today is your lucky day!

NextPlayer lets you track players, add and remove players dynamically, and cycle through a turn counter. Players can be added in batch (e.g. at the start of a match) or one at a time. Players can be removed one at a time as they die or lose connection or simply rage quit.

Check it out on Github at PhobosRising/node-nextplayer or at NPM/nextplayer.

Tags: #nodejs #redis
Thomas Hunter II Avatar

Thomas is the author of Advanced Microservices and is a prolific public speaker with a passion for reducing complex problems into simple language and diagrams. His career includes working at Fortune 50's in the Midwest, co-founding a successful startup, and everything in between.