While almost all of the CryptoKitties code is open source, and the best way to figure out how it works is to read through the source code we’ll start to see a lot more innovative uses of the blockchain for games like this in the future. So here you will find a quick walkthrough of the code behind CryptoKitties to show how it was implemented beneath the surface.
Take a look a this article from James Martin Duffy Co-founder at Loom Network. Building scalable blockchains for large-scale online games and social apps 🚀Creators of CryptoZombies.io
How to Code Your Own CryptoKitties-Style Game on Ethereum
Also take a look at our What is Blockchain? page to learn more about it.