nerfZael / cryptomacy

An Ethereum game inspired by Diplomacy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cryptomacy

An Ethereum game inspired by Diplomacy.

Setup

Prerequisites: Truffle, NPM, MetaMask

To start a development blockchain, run the following in the root directory:

truffle develop

It will start a new dev blockchain and open up the Truffle console. After that, in the truffle console, you can run:

test

to execute the Truffle tests and:

migrate

to deploy the smart contracts.

Before starting the React app, go into the "app" directory and run:

npm install

to install the node dependencies. Then create an app/.env file from app/.env.template and modify all required values.

Then you can run:

npm start

To start the web app on localhost:3000

Hexagons

To learn more about hexagons, check out this blog post http://www.redblobgames.com/grids/hexagons.

At this moment Cryptomacy is using the offset coordinate system with the even right (even-r) horizontal layout.

About

An Ethereum game inspired by Diplomacy.

License:GNU General Public License v3.0


Languages

Language:TypeScript 41.2%Language:JavaScript 32.3%Language:SCSS 13.8%Language:Solidity 8.9%Language:HTML 3.2%Language:CSS 0.6%