Giter VIP home page Giter VIP logo

proiect-blockchain's Introduction

College Project

​ This is a Team Project made for the Blockchain course at UBB, Romania.

ERC-20 TOKEN STANDARD

​ The ERC-20 introduces a standard for Fungible Tokens, in other words, they have a property that makes each Token be exactly the same (in type and value) of another Token. For example, an ERC-20 Token acts just like the ETH, meaning that 1 Token is and will always be equal to all the other Tokens.

Gambling App: LuckyCasino

This is a Solidity Project with a focus on gambling applications using Blockchain.

Gambling Type Idea
Slot Machine Slot Machine with three spin wheels, seven symbols and a steady cost of 2 LCC per spin.
Coin Flip Manage one players gamble with a coinflip
Roulette Manage multiple players bets
Lottery Manager of the lottery and different players that gamble on a lottery pool
  • Slot Machine

Slot Machine with three spin wheels, seven symbols and a steady cost of 2 LCC (Lucky Casino Coins) per spin.
There are several winning combinations, each with different corresponding sums. The game is in the main casino.sol contract and uses the random generation function found in the same contract.

  • Coin Flip

This game synergizes with the main casino contract. :D As a user you can gamble a sum of money to the coinflip, predicting the outcome. It's either heads or tails with a possibility of 49.5% each, which would give you a profit of 2x. You can also be extremely lucky and the coin lands on its side which will give you 99x profit.

  • Roulette

The roulette accepts bets from multiple participants at the same time. The bet types and options are listed in the roulette.sol contract comments. One of the players should use the Spin Wheel function which will generate the next roulette number and all bets will be dealt with accordingly.

  • Lottery

    ​ Creating a lottery contract, you become the manager and only you can pick a winner. Players can participate but only if they send at least 1Ether to the prize pool. The winner gets the entire prize pool.

    Players Manager
    Screenshot_69 Screenshot_72

    ​ The winner is chosen randomly calling the random function keccak256 and take the modulo from the number of players.

    Screenshot_70

    ​ The entire idea is that you can deploy a new lottery contract, people start playing and they get added to the players dynamic array, the managers chooses the winner and then we empty the player list for the next round.

    Screenshot_71

proiect-blockchain's People

Contributors

dodoposa avatar iliescu-dorin avatar d3der avatar soniapoj avatar

Watchers

 avatar

Forkers

iliescu-dorin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.