Memory Puzzle using Blockchain

share link

by kandikits dot icon Updated: Apr 27, 2023

technology logo
technology logo

1-Click Kit 1-Click Kit  


Blockchain games are using various levels of decentralization as part of their mechanics. Blockchain technology also enables cross-game interoperability, player-driven economy, and play-to-earn gaming models. Through the tokenization of gameplay and smart contracts, memory puzzle will increase the number of tokens for each matches. 

Deployment Information

By using the below libraries you can create the Memory Puzzle Game. The entire solution is available as a package to download from the source code repository.


PREREQUISITES:

  1. Download the Metamask extension for chrome, edge, firefox .
  2. Download Ganache for your windows. Click here to download Ganache.


Zip File Setup Instructions:

  1. Download the 'kit_installer.zip' then unzip the folder.
  2. Then Double-tap the 'kit_installer' and the command prompt opens. After successful installation of the kit, press 'Y' to run the kit, and it will install the dependencies.
  3. Then press any key to migrate contracts and run the development server in ' http://localhost:3000/'.
  4. To run the kit manually, press 'N' and locate the zip file and extract the 'blockchain-memory-game'.
  5. Double-click 'matchpuzz' to install node modules, and dependencies, and double-click 'start' to run the development server in 'http://localhost:3000/' .
  6. Before running this project open the Ganache and click on account logo at right corner in metamask to import one account using private key from ganache to Metamask. To connect metamask follow the instructions in "metamask connections" given above.
  7. Then connect metamask using the Ganache account with localhost:3000. Now you can see the account id in right side of the app if not ensure you are connected to metamask.
  8. Now you're all set Enjoy playing!!!.
  9. You can find matches now! if matches are found it will ask for confirming 'amount & gas fee 'in metamask, then click 'confirm'.
  10. Now the tokens will be collected and continue playing.


Click on the button below to download the solution and follow the deployment instructions to begin set-up. This 1-click kit has all the required dependencies and resources you may need to build your Memory Puzzle App.

Metamask Extension

  1. After adding Metamask extension to your browser, click get started there you will see 'IMPORT WALLET' and ' CREATE WALLET' there click the create wallet.
  2. There you select I agree and it asks you to create the password. After creating the password it shows you the recovery phrase.
  3. If you forget the password you can use the recovery phrase.
  4. Then one Account will be created, and the default network will be there 'ETHEREUM MAINNET'.
  5. At the top there is a Network tab there click show/hide network there find and select the "show test networks".
  6. Then delete 'Localhost:8545'.
  7. lick 'Add Network' and fill the Network name : 'Ganache' ,RPC URL: 'HTTP://127.0.0.1:7545', Chain Id :'1337' then save. Now you can see 'Ganache Network' in metamask.

Troubleshoot

  1. While running batch file, if you encounter Windows protection alert, select More info --> Run anyway.
  2. During kit installer, if you encounter a Windows security alert, click Allow.
  3. Ensure Ganache is open before running the 1-Click Installer.
  4. Make sure you have chosen the Ganache Network in the Metamask Extension.
  5. Sometimes you may face the "out of gas error" to resolve this error, edit the "Gas Limit".
  6. Sometimes after npm start it throw's an error as create the .env file. For that create the .env file inside the project SKIP_PREFLIGHT_CHECK=true.

For a detailed tutorial on installing & executing the solution as well as learning resources including training & certification opportunities, please visit the OpenWeaver Community

Development Environment

VSCode is used for development and debugging. Node.js is an open-source, cross-platform, JavaScript runtime environment. It executes JavaScript code outside of a browser, whereas VSCode is used to get a typical experience of IDE for developers. npm is the default package manager for the JavaScript runtime environment Node.js.

vscodeby microsoft

TypeScript doticonstar image 147328 doticonVersion:1.79.2doticon
License: Permissive (MIT)

Visual Studio Code

Support
    Quality
      Security
        License
          Reuse

            vscodeby microsoft

            TypeScript doticon star image 147328 doticonVersion:1.79.2doticon License: Permissive (MIT)

            Visual Studio Code
            Support
              Quality
                Security
                  License
                    Reuse

                      nodeby nodejs

                      JavaScript doticonstar image 95980 doticonVersion:v20.3.0doticon
                      License: Others (Non-SPDX)

                      Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles:

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                nodeby nodejs

                                JavaScript doticon star image 95980 doticonVersion:v20.3.0doticon License: Others (Non-SPDX)

                                Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles:
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          Ethereum Development Tools

                                          Truffle is a development environment, testing framework and asset pipeline for Ethereum. Web3.js is the Ethereum JavaScript API which connects to the Generic JSON-RPC spec. Solidity is a component to build custom contracts and more complex decentralized systems.Ganache-CLI is the latest version of TestRPC and a fast and customizable blockchain emulator.

                                          truffleby trufflesuite

                                          TypeScript doticonstar image 13947 doticonVersion:v5.9.4doticon
                                          License: Permissive (MIT)

                                          A tool for developing smart contracts. Crafted with the finest cacaos.

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    truffleby trufflesuite

                                                    TypeScript doticon star image 13947 doticonVersion:v5.9.4doticon License: Permissive (MIT)

                                                    A tool for developing smart contracts. Crafted with the finest cacaos.
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              ganache-cliby trufflesuite

                                                              JavaScript doticonstar image 3220 doticonVersion:v6.12.2doticon
                                                              License: Permissive (MIT)

                                                              Fast Ethereum RPC client for testing and development

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        ganache-cliby trufflesuite

                                                                        JavaScript doticon star image 3220 doticonVersion:v6.12.2doticon License: Permissive (MIT)

                                                                        Fast Ethereum RPC client for testing and development
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  web3.jsby ethereum

                                                                                  JavaScript doticonstar image 9518 doticonVersion:v1.3.1doticon
                                                                                  License: Others (Non-SPDX)

                                                                                  Ethereum JavaScript API

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            web3.jsby ethereum

                                                                                            JavaScript doticon star image 9518 doticonVersion:v1.3.1doticon License: Others (Non-SPDX)

                                                                                            Ethereum JavaScript API
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      openzeppelin-solidityby prahaladbelavadi

                                                                                                      JavaScript doticonstar image 0 doticonVersion:Currentdoticon
                                                                                                      License: Permissive (MIT License)

                                                                                                      OpenZeppelin, a framework to build secure smart contracts on Ethereum

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                openzeppelin-solidityby prahaladbelavadi

                                                                                                                JavaScript doticon star image 0 doticonVersion:Currentdoticon License: Permissive (MIT License)

                                                                                                                OpenZeppelin, a framework to build secure smart contracts on Ethereum
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          Crypto Wallet

                                                                                                                          MetaMask-extension library is a software cryptocurrency wallet used to interact with the Ethereum blockchain.

                                                                                                                          JavaScript doticonstar image 10096 doticonVersion:v10.31.1doticon
                                                                                                                          License: Others (Non-SPDX)

                                                                                                                          :globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    metamask-extensionby MetaMask

                                                                                                                                    JavaScript doticon star image 10096 doticonVersion:v10.31.1doticon License: Others (Non-SPDX)

                                                                                                                                    :globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              Kit Solution Source

                                                                                                                                              blockchain-memory-gameby kandi1clickkits

                                                                                                                                              JavaScript doticonstar image 0 doticonVersion:v1.0.0doticon
                                                                                                                                              License: Permissive (MIT)

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        blockchain-memory-gameby kandi1clickkits

                                                                                                                                                        JavaScript doticon star image 0 doticonVersion:v1.0.0doticon License: Permissive (MIT)

                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  Support

                                                                                                                                                                  If you need help using this kit, you may reach us at the OpenWeaver Community

                                                                                                                                                                  See similar Kits and Libraries