A toy implementation of Antakshari like game on the ethereum blockchain. The game works as follows: There is a judge J and n players a_1, a_2 ... a_n. At k-th turn player inputs a word w_k, such that w_k[w_k.len - 1] == w_{k-1}[0] and J determines if the word is new and valid. The game starts with a valid word set by the contract. The game ends when all but one player run out of lives, either by giving a wrong word or passing their turns.
This is the course project for the Introduction to Blockchains course at CMI by
git clone https://github.com/arghyadipchak/eth-word-game
truffle-config.js
contract address
from the outputtruffle migrate
yarn install
contract address
(from 7) as deployerAddress
in src/lib/store.ts
and as factAddress
in scripts/judge.js
judgeAddress
in src/lib/store.ts
and it's private key as wallPrvtKey
in scripts/judge.js
node judge.js
If you wish to use a different set of dictionary words, populate the worddict.json
with a sorted list of your words \
yarn dev
OR Build the clientyarn build
and serve it using a web server such as Nginx/TraefikThe project report is available in the report
directory