/Cryptomon

Primary LanguageJavaScriptMIT LicenseMIT

Cryptomon

This was a coursework assignment for CO467 Principles of Distributed Ledgers.

The report in markdown

The report pdf, written in latex

Initial game state

Requirements

Compile contract

truffle compile

The compiled contract will be at build/Cryptomon.json

Deploy

First start Ganache. Make sure the network is running on port 7545.

truffle migrate

Note: I edited the migration script to automatically calls Cryptomon.addInitialPokemon() (see migrate/2_deploy_contracts.js)

Run tests

truffle test

Start the server

npm run dev