A custom smart contract implementation for Vilnius University "Blockchain technologies" course.
In order to run this smart contract in development mode, the following commands must be executed in parallel.
ganache
npm run dev
This contract is aims to create decentralized lottery, which cannot be rigged by design. For now, this contract allows only two players to participate. If player wants to join, he must provide his number guess - either 0 or 1. When both numbers are provided, the contract generates a winner based on pseudo-random numbers.