I hereby claim:
- I am benjaminbollen on github.
- I am benjaminbollen (https://keybase.io/benjaminbollen) on keybase.
- I have a public key ASBo8eXLH7JnJZ9dIvUveSQFG2v1CXV6AaPoBbG2KZytego
To claim this, I am signing this object:
{ | |
pending: {}, | |
queued: { | |
0xA9a45552c02586DF22b7aCf2A9CAc575Fc1E7eAf: { | |
49247: { | |
blockHash: "0x0000000000000000000000000000000000000000000000000000000000000000", | |
blockNumber: null, | |
from: "0xa9a45552c02586df22b7acf2a9cac575fc1e7eaf", | |
gas: "0x10c8e0", |
> txpool.content | |
{ | |
pending: { | |
0xAEEFEAcFAe53270cA749F2Dd3160EffA7Bd1Fa13: { | |
3448919: { | |
blockHash: "0x0000000000000000000000000000000000000000000000000000000000000000", | |
blockNumber: null, | |
from: "0xaeefeacfae53270ca749f2dd3160effa7bd1fa13", | |
gas: "0x1e8480", |
git clone https://github.com/mosaicdao/mosaic-chains | |
cd mosaic-chains | |
git checkout 0.1.0-alpha.10 | |
npm ci | |
./mosaic start 1414 --origin ethereum -g | |
## you d expect to see the web3 endpoints printed (by default on port 41414 instead of 8545) | |
# Below are the list of endpoints for 1414 chain : | |
#| Type | URL | | |
#| :--: | :--------------------------: | |
#!/bin/bash | |
networkid=1409; | |
environment=sandbox; | |
assetPath="https://s3.amazonaws.com/assets.simpletoken.com/utility_chain/$environment"; | |
GETH_EXEC=$(which geth); | |
if [[ -z $GETH_EXEC ]]; then | |
echo "geth is not installed! You need to install geth to proceed further." |
Write a solidity implementation of the adverserial two-player game of tic-tac-toe in a smart contract. | |
You can find the rules on Wikipedia (https://en.wikipedia.org/wiki/Tic-tac-toe). | |
The game should allow two players to join a new board. Each must play at their turn and the game can end in a victory or a tie. | |
Please provide a test suite using truffle framework. |
pragma solidity ^0.4.17; | |
// ---------------------------------------------------------------------------- | |
// Simple Token Contract | |
// | |
// Copyright (c) 2017 OpenST Ltd. | |
// https://simpletoken.org/ | |
// | |
// The MIT Licence. | |
// ---------------------------------------------------------------------------- |
I hereby claim:
To claim this, I am signing this object: