hackquest logo
 

CryptoKitty

If you are a Web3-native, you probably have heard of CryptoKitty. CryptoKitty is one of the world's first blockchain games, allowing players to purchase, breed, and trade virtual cats with different visual features of varying levels of rarity. In December 2017, the game became so popular that it pushed the Ethereum network to an all-time high in the number of transactions and accounted for over 10% of network traffic. In the CryptoKitty course, we will guide you to replicate this sensation. Maybe, this lesson will inspire you to create your own viral blockchain game!

Language

Solidity

Total Length

1.4h

Part of Learning Track

Build on Ethereum + 1

What You’ll Learn

Writing projects in Solidity to realize CryptoKitty's functions such as minting, breeding, and querying information. How to use a wallet to initiate transactions, get your project on-chain, and view relevant information.
ERC721
mint
breed

Syllabus

Define the Contract

How can I start a CryptoKitty project? In this initial section, we will set up the contract and define a variable specifically to track minted NFTs.

Minting a Kitty - Section 1

We will begin learning about the minting process by starting the development of the _createKitty function.

Minting a Kitty - Section 2

This section aims to complete the _createKitty function.

Create Gen-0 CryptoKitties

Here, we will focus on creating the first-generation (Gen-0) CryptoKitties.

Breeding - Section 1

We will start to explore the breeding aspect by initiating the development of the breed function.

Breeding - Section 2

The final part of the course involves completing the breed function.