August 9, 2020

Blockchain: gambling and gaming

The computer games industry in the implementation of new information technologies is usually ahead of all other areas of application, including even targeted ones, the solution of tasks of which usually becomes the cause of breakthrough technologies. Blockchain technology is no exception.

</p>

Augmented reality is like technology, havingquite serious and responsible target areas of application, such as education, the design of complex systems and others, nevertheless are developing at a faster pace in the gaming industry.

Gaming User Needscreate incentives for the industry to develop and produce increasingly powerful graphics cards, and gaming computers can compete in performance and cost with computer systems used for professional work with sound, video and other complex computing tasks.

Blockchain technology designed to solve the most complexSocio-economic problems, which are potentially the basis for the new global financial system, were also not ignored by game developers and players.

Given that blockchain is always a bit “aboutmoney ”, blockchain games are expected to attract interest from virtual casinos, and their smart contract honesty expands the audience at the expense of those who are usually not inclined to trust the organizers of the games.

The use of cryptocurrencies in computer games,non-gambling, inevitably arouses the interest of a huge community of players and increases the popularity of such toys for those who prefer to bet on their skills and gaming experience, choosing computer games in which the result depends on the actions and decisions of the player, rather than a random number generator .

The first cryptocurrency games exploitedthe possibility of instant automatic payments, without having any advanced game script and gameplay graphics. Instant lotteries in which the player made a guess or chose what was compared to the value generated by the random number generator in the second stage - the most famous representative was the game Satoshi Bones, developed in multi-player lottery games with several players making their bets, analyzing items offered by the game. Then, again, the winner or the loser was randomly determined, the rate of which was divided between the other participants.

2017, passed under the sign of the ether, brought ussmart contract games related to the purchase and sale between players of certain entities created within the game. A high-profile event for the entire cryptocurrency community was CryptoKitties, which at the time of their take-off at the peak of interest actually blocked the Ethereum network.

After crypto kittens, the world saw many similartrading games, but, strangely enough, all kinds of crypto pyramids gained popularity. The players were not deceived by the essence of the game and its pyramidal design, but they experienced, participating in them, their ability to enter on time and exit on time.

Increased focus on cryptocurrency gamesshowed online casinos, which, again, attracted - already at a new round of technology development, the possibility of instant raffles with automatic distribution and withdrawal of winnings. Structurally, most games with cryptocurrencies filled with online casino catalogs are not much different from schemes implemented in slot machines, but perhaps nothing more sophisticated to casino players at this stage.

Blockchain gaming deservesa serious relationship, since it creates the much-needed industries additional needs for cryptocurrencies and provides a wide field for the development of skills in working with crypto, wallets and smart contracts.

In addition, the demand for blockchain toys is causingthe need for blockchain developers and sets interesting tasks for them. Since in game applications, the developer’s imagination is the only limiter, in the process of working on the game the most exotic options for the use of smart contracts arise and are developed. Moreover, the result of the development does not lie on the table, but is broadcast to a wide audience.

Despite the seemingly frivolity of the gameCompared to trading, mining, investments in cryptocurrencies, blockchain toys, directions can do more to expand the user experience than educational literature, courses, and journalism in specialized media combined.

Perhaps the best you can do todayThe development of the cryptocurrency market is to help popularize blockchain games using cryptocurrencies. Blockchain games can become a crypt entry point for the general public. Through games, the experience of managing tokens and handling cryptocurrency wallets is acquired quickly and naturally. Buying tokens as an investment is often only one or two transactions, while a game requires not only frequent transactions, but also the development of tools like MetaMask - yes, it's simple, but to master it you need a reason that CryptoKitties and other games provide Ethereum blockchain.

A separate new type of development gameblockchain technologies have become toys that do not require a game server - the current game data is stored and recorded in the blockchain, the gameplay is implemented in JavaScript and is unscrewed in the user's browser. The logic of the game is wired in a smart contract and does not allow even a theoretical opportunity to circumvent the rules. In this case, the cause-effect relationship “win - gain” is realized immediately upon the occurrence of the corresponding event.

Of course, not everything is so easy and simple - forinteraction with the game smart contract on the Ethereum network requires the installation of the MetaMask browser extension, transactions that record in the blockchain “moves” of players require time and gas, but these inconveniences are more than offset by the economic component of the game - the gain is quite material even in the simplest toy, for example, requiring guessing in which hand the ether is hidden.

By the way, a feature of this type of games isthe ability to create an unlimited number of game scripts for one smart contract, which opens up a wide field of activity for developers writing in JavaScript.

As an example, let’s give a diagram of a game in which you can fill the face of an opponent or get from him and, accordingly, pick up his bet or lose yours.

The web component of the game runs on JavaScript andavailable for download. Being hosted on a website, it accesses the game’s smart contract via MetaMask and launches it, transferring a certain amount of ETH to the address of the smart contract.

The script implements fist fight - two are involvedplayers who take turns striking each other and defending themselves from enemy strikes. Victory is awarded on points, the game bank is divided accordingly. On the smart contract, the developer’s commission remains in the amount of 10% of the loser’s rate.

The smart contract provides for participation in the game.two parties, in addition to the developer of the smart contract - the owner of the site on which the game script is launched, and the author of the script. The commission accumulated on the smart contract is periodically reset to two ETH addresses transmitted to the smart contract by the game script through MetaMask.

Ability to change the ETH address for the ownersite (publisher) can be described in the documentation for the game, posted on the developer's site. To localize the script for a specific site, so that it starts to earn the commission provided for publishers, you need to replace the ETH address specified by default with your own.

The possibility of changing the second address is not described ininstructions, but any JavaScript programmer who knows the slightest bit can do this or write his own script, by analogy with the original. Such an opportunity should not scare developers, since their interests are protected by a smart contract.

In fact, the construction of a smart contract is an invitation for developers to write their own scripts for this smart contract and for webmasters to place a game script on their websites.

As an example of the variety of gameplay on one smart contract, you can cite the option of playing on the same smart contract, but in a different surroundings.

Instead of the fighters - the goalkeeper and the footballer breaking throughpenalty. The script visualizes the same logic as in the original - one attacks, the second is protected, but in a different gameplay. A smart contract from the script receives a hash of choosing the protected zone of the goal - just like in the case of a fight in the ring, 2 of 4, and a hash of choosing the direction of the strike 1 of 4. If it matches, the goalkeeper wins, if it doesn’t match, the ball goes into the goal and Penalty kicker wins.

Participation in the game is initiated by transfer tosmart contract of a certain amount of ETH, for example, 0.1 ETH by the first player who gets on goal. An offer to play openly for anyone who wants to take the role of a player who takes a penalty, who also transfers to the address of a smart contract 0.1ETH, accepting the call.

The win is calculated from the difference of goals scored and the player missed, the commission is divided between the developer of the smart contract, the author of the script and the webmaster on whose website the script is launched.

Such games are quite simple to implement and attractive with the opportunity to win in cryptocurrency. And also, guaranteed rewards for developers.

While there are few games made in this way,but given their incredible simplicity, guaranteed honesty and the possibility of earning money for all participants, we can assume that the game pool will grow like an avalanche, and with them the number of people who know firsthand cryptocurrencies, cryptocurrency wallets, cryptocurrency exchanges and other industry services.

Posted by: DZiNTRO