-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 07d4ef1
Showing
50 changed files
with
548,866 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["es2015", "stage-2", "stage-3"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 Adam Hultman | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# blockchain-memory-game | ||
|
||
A simple memory game with collectible NFT rewards. Created with Dapp University's [tutorial](https://www.youtube.com/watch?v=x-6ruqmNS3o&list=LL). | ||
|
||
|
||
## Quickstart Guide | ||
Refer kits from the below link to jumpstart the app | ||
|
||
https://kandi.openweaver.com/collections/blockchain/memory-puzzle1 | ||
|
||
## Screenshots | ||
|
||
![Game](docs/game.jpg "Game") | ||
Overall game, featuring a memory grid and a row of collected NFTs below. | ||
|
||
![Game](docs/match.jpg "Game") | ||
An example of a match. | ||
|
||
![Game](docs/nft.png "Game") | ||
The NFT award being sent to MetaMask account. | ||
|
||
## Usage | ||
|
||
### Requirements | ||
|
||
- Node | ||
- [Truffle](https://www.npmjs.com/package/truffle) (with [Ganache](https://www.trufflesuite.com/ganache)) | ||
- [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn) | ||
|
||
### Running App | ||
|
||
1. Use the quick starts for MetaMask and Ganache. | ||
2. Link MetaMask account with Ganache server. | ||
3. Install: `npm i` | ||
4. Start: `npm start` |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
@echo off | ||
REM This is a sample script | ||
ECHO====================================================================================== | ||
ECHO Kandi kit installation process has begun | ||
ECHO====================================================================================== | ||
ECHO This kit installer works only on Windows OS | ||
ECHO Based on your network speed, the installation may take a while | ||
ECHO====================================================================================== | ||
setlocal ENABLEDELAYEDEXPANSION | ||
REM update below path if required | ||
SET NODE_LOCATION="C:\Program Files\nodejs" | ||
SET NODE_VERSION=14.17.3 | ||
SET NODE_DOWNLOAD_URL=https://nodejs.org/dist/v14.17.3/node-v14.17.3-x64.msi | ||
SET REPO_DOWNLOAD_URL=https://github.com/kandikits/blockchain-memory-game/releases/download/v1.0.0/blockchain-memory-game.zip | ||
SET REPO_NAME=blockchain-memory-game.zip | ||
SET EXTRACTED_REPO_DIR=blockchain-memory-game | ||
SET NOTEBOOK_NAME=matchpuzz.bat | ||
SET NOTEBOOK_NAME1=start.bat | ||
|
||
where /q node | ||
IF ERRORLEVEL 1 ( | ||
ECHO========================================================================== | ||
ECHO Node wasn't found in PATH variable | ||
ECHO========================================================================== | ||
IF ERRORLEVEL 1 ( | ||
CALL :Install_node_and_modules | ||
CALL :Download_repo | ||
) ELSE ( | ||
CALL :Download_repo | ||
|
||
) | ||
) else ( | ||
ECHO========================================================================== | ||
ECHO Nodejs was detected! | ||
ECHO========================================================================== | ||
|
||
CALL :Download_repo | ||
IF ERRORLEVEL 1 ( | ||
PAUSE | ||
) | ||
) | ||
) | ||
) | ||
|
||
PAUSE | ||
SET /P CONFIRM=Would you like to run the kit (Y/N)? | ||
IF /I "%CONFIRM%" NEQ "Y" ( | ||
ECHO To run the kit, follow further instructions of the kit in kandi | ||
ECHO========================================================================== | ||
) ELSE ( | ||
ECHO Extracting the repo ... | ||
ECHO========================================================================== | ||
tar -xvf %REPO_NAME% | ||
cd %EXTRACTED_REPO_DIR% | ||
npm i --global truffle | ||
cd %EXTRACTED_REPO_DIR%\ | ||
CALL %NOTEBOOK_NAME% | ||
cd %EXTRACTED_REPO_DIR%\ | ||
CALL %NOTEBOOK_NAME1%" | ||
|
||
) | ||
PAUSE | ||
EXIT /B %ERRORLEVEL% | ||
|
||
:Download_repo | ||
bitsadmin.exe /transfer repo_download_job /download %REPO_DOWNLOAD_URL% "%cd%\%REPO_NAME%" | ||
ECHO========================================================================== | ||
ECHO The Kit has been installed successfully | ||
ECHO========================================================================== | ||
ECHO To run the kit, follow further instructions of the kit in kandi | ||
ECHO========================================================================== | ||
EXIT /B 0 | ||
|
||
:Install_node_and_modules | ||
ECHO========================================================================== | ||
ECHO Downloading NodeJS%NODE_VERSION% ... | ||
ECHO========================================================================== | ||
REM curl -o node-v%NODE_VERSION%-x64.msi %NODE_DOWNLOAD_URL% | ||
bitsadmin.exe /transfer nodeJS_download_job /download %NODE_DOWNLOAD_URL% "%cd%\node-v%NODE_VERSION%-x64.msi" | ||
ECHO Installing node-v%NODE_VERSION% ... | ||
node-v%NODE_VERSION%-x64.msi /quiet InstallAllUsers=0 PrependPath=1 Include_test=0 TargetDir=%NODE_LOCATION% | ||
ECHO========================================================================== | ||
ECHO Nodejs installed in path : %NODE_LOCATION% | ||
ECHO========================================================================== | ||
IF ERRORLEVEL 1 ( | ||
ECHO========================================================================== | ||
ECHO There was an error while installing nodeJs! | ||
ECHO========================================================================== | ||
msiexec /i node-v%NODE_VERSION%-x64.msi /qr | ||
EXIT /B 1 | ||
) | ||
EXIT /B 0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const Migrations = artifacts.require("Migrations"); | ||
|
||
module.exports = function(deployer) { | ||
deployer.deploy(Migrations); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const MemoryToken = artifacts.require("MemoryToken"); | ||
|
||
module.exports = function(deployer) { | ||
deployer.deploy(MemoryToken); | ||
}; |
Oops, something went wrong.