CyberVoid: The Deck - part 0.1

CyberVoid: The Deck - part 0.1

Unique NFT-powered Game Mechanic

·

2 min read

Greetings, cybernauts, welcome to yet another entry in our CyberVoid DevLog series.

In this post, we delve into the intricacies of the Deck NFT. We've divided the article into two parts: one focuses on the general game design mechanics, and the other dives into the technical details of the RWInterpreter.

The Deck

Upon completing the first chapter of CyberVoid, you'll receive a Deck from Razor. This isn't just an ordinary Non-Fungible Token associated with a JPEG. Each Deck is a composable NFT made up of unique components where each of these components is an NFT in itself, possessing unique characteristics that come into play when connected to the Deck. The composable nature of the Deck allows players to customize their gameplay style, strategize effectively, and overcome varying challenges.

Deck components composition

deck composition

An Embedded Interpreter: The Core of The Deck

The real magic of the Deck lies in an embedded interpreter in its smart contract. Operating on a simple stack-based bytecode language, the Deck allows players to customize their behaviour by providing a sequence of instructions. These instructions can manipulate the Deck's stack, perform arithmetic and bitwise operations, and control the program's flow through branching operations.

As the game progresses and you add storage components to your Deck, this allows you to execute pre-made programs, which are offered as quest rewards.

Turing Completeness: Taking Interactivity to the Next Level

We're working to make the Deck's language (called RW) to Turing completeness, enabling it to perform any computation given adequate resources. This advancement will empower players to write complex, recursive programs for their Decks, adding another layer of strategic depth and engagement. The current implementation, however, already provides a vast array of operations and flexibility.

Inclusion in the CyberVoid Universe

Within the CyberVoid universe, the Deck isn't just a gameplay tool. Its programmability offers limitless opportunities for experimentation, optimization, and showcasing strategic skills. Essentially, the Deck bridges the divide between gaming and programming, delivering a unique experience to players.

Wrapping Up

The Deck represents a revolutionary leap in blockchain gaming, introducing unparalleled interactivity and customization. It blurs the boundary between gaming and coding, allowing players to program their Decks and put their strategies to the test within the captivating CyberVoid universe. For more details on the RW language, check out part 0.2

Until next time, keep exploring the void.