We’re excited to announce that CryptoCompanions — a play-to-earn NFT game featuring player-versus-player (PVP) battles — will integrate Chainlink Verifiable Random Function (VRF) on the Avalanche blockchain. By integrating Chainlink’s industry-leading decentralized oracle network, we can obtain access to a tamper-proof and auditable source of randomness needed to ensure that all aspects of the game that rely on chance, including PVP battles, up-leveling, and stat farming are provably fair. Ultimately this creates a more exciting, transparent, and fraud-proof user experience, as users can be assured of the integrity and robustness of the game’s core mechanics.
CryptoCompanions is no ordinary, off-the-shelf NFT only meant for display, rather it is a unique take on a classic archetype. The game features a diverse range of totem-like creatures known as companions that can be trained and leveled up, a gaming-driven economy, and PVP battles with real rewards at stake. Rewards are drawn from a pool that is continually replenished by fees, making for a self-sustaining economy. CryptoCompanions combines beautifully wrought, pint-sized, and stackable creatures with exciting on-chain gameplay. It is one of the first of its kind on the Avalanche network.CryptoCompanions PVP Battle
In order to ensure that PVP battles have fair outcomes, we need access to a secure random number generator (RNG) that any user could independently audit. However, RNG solutions for smart contracts require several security considerations to prevent manipulation and ensure system integrity. For instance, RNG solutions using on-chain data like block hashes can be exploited by blockchain miners, while off-chain RNG solutions like traditional data providers are opaque and don’t provide users with definitive proof about the integrity of the process.
After reviewing various solutions, we selected Chainlink VRF because it’s based on cutting-edge academic research, supported by Chainli...