GenCar.co: Multiplayer Genetic Algorithm 2D Cars

0 MIN READ • Michael Carroll on Jun 29, 2013
GenCar.co: Multiplayer Genetic Algorithm 2D Cars

Warning

We've updated our SDKs, and this code is now deprecated.

Good news is we've written a comprehensive guide to building a multiplayer game. Check it out!

At PubNub, we love sharing our gaming high scores, from TrackPad Destroyer to Candy Box stats. So when our CTO, Stephen Blum, found Rafael Matsunaga’s Genetic Cars, a new competition began.

The game uses genetic algorithms to evolve better racing cars on a random track—stronger cars survive, weak ones are eliminated, and winners pass on their traits.

Blum took it further, transforming it from single-player to multiplayer using the PubNub Data Stream Network.

The result? Gencar.co

Thanks to PubNub's Gencar.co multiplayer support, thousands of players can join at once, rapidly accelerating the mutation rate. Users can watch their cars evolve in real time, and with PubNub Channel Presence, they can chat and see how many others are online.

Old Multiplayer racing game gencar.co code repository >

multiplayer