Smart Contract info

Smart Contract info

  • Contracts
  • TodoList
  • Help
  • Github
  • Blog

›COMPLEXGAMES

BASIC

  • A
  • Factory
  • Marriage
  • MyContract
  • BugSquash
  • HelloWorld

BASIC / ECOM

  • Customer
  • Supplier

COMPLEXGAMES

  • Ownable
  • blackJack
  • PowerEther
  • Buffer
  • CBOR
  • OraclizeAddrResolverI
  • OraclizeI
  • Ownable
  • PowerEtherBase
  • PowerEtherHelper
  • PowerFour
  • PowerOne
  • PowerTwo
  • SafeMath
  • strings
  • usingOraclize

DATASTRUCT

  • LinkedList
  • Stack

FINANCE

  • CrowdBank
  • Mortgage

GAMES

  • CasinoRoulette
  • Itontine
  • Cplayer
  • Ctontine
  • PredictionMarket
  • RNGLottery
  • RecurringLottery
  • Roulette
  • SatoshiDice
  • SimpleLottery
  • WhatDoesNadiaThink

OTHER

  • e0x

OTHER / CREDVERT

  • ApplicantFactory
  • CredentialOrgFactory
  • CredentialFactory
  • CredentialOrgFactory
  • CredentialOrgFactory
  • Ownable
  • Pausable
  • SafeMath32

OTHER / MARKETPLACE

  • DigitalLocker
  • WorkbenchBase

SCHEMES

  • Government
  • GradualPonzi
  • SimplePonzi
  • SimplePyramid

TOKENS

  • BasicToken
  • ERC20
  • TokenSale

TOKENS / ATTENDANCETOKEN

  • EIP20
  • EIP20Interface
  • Migrations
  • ApproveAndCallFallBack
  • AttendanceCoinMembers
  • ERC20Interface
  • FixedSupplyToken
  • Owned
  • SafeMath
  • ApproveAndCallFallBack
  • ERC20Interface
  • FixedSupplyToken
  • Owned
  • SafeMath

UTIL

  • MarriageInvestment
  • Stock
  • SafeMath
  • Welfare
  • PromiseBox

UNCATEGORIZED

  • Authentication
  • TodoList
  • Users

blackJack

contract blackJack

is Ownable

Source: contracts/complexgames/EthBlackjack.sol

Index

  • _Hit
  • _Stand
  • _play
  • card2PowerConverter
  • checkGameState
  • dealerHit
  • donateEther
  • fallback
  • isBlackjack
  • processHandEnd
  • randgen
  • randgenNewHand
  • readCards
  • readPower
  • requireHandActive
  • requirePlayerActive
  • withdrawToOwnerCheck

Reference

Modifiers

  • requireHandActive

    modifier requireHandActive(bool truth)
    Parameters:
    truth - bool
  • requirePlayerActive

    modifier requirePlayerActive(bool truth)
    Parameters:
    truth - bool

Functions

  • _Hit

    function _Hit() public
    Modifiers:
    requireHandActive requirePlayerActive
  • _Stand

    function _Stand() public
    Modifiers:
    requireHandActive requirePlayerActive
  • _play

    function _play() public payable
  • card2PowerConverter

    function card2PowerConverter(uint[] cards) internal view returns (uint)
    Parameters:
    cards - uint[]
    Returns:
    uint
  • checkGameState

    function checkGameState() internal
    Modifiers:
    requireHandActive
  • dealerHit

    function dealerHit() internal
    Modifiers:
    requireHandActive requirePlayerActive
  • donateEther

    function donateEther() public payable
  • fallback

    function () public
  • isBlackjack

    function isBlackjack() internal
  • processHandEnd

    function processHandEnd(bool _win) internal
    Parameters:
    _win - bool
  • randgen

    function randgen() internal returns (uint)
    Returns:
    uint
  • randgenNewHand

    function randgenNewHand() internal returns (uint, uint, uint)
    Returns:
    uint
    uint
    uint
  • readCards

    function readCards() external view returns (uint[], uint[])
    Returns:
    uint[]
    uint[]
  • readPower

    function readPower() external view returns (uint, uint)
    Returns:
    uint
    uint
  • withdrawToOwnerCheck

    function withdrawToOwnerCheck() internal
← OwnablePowerEther →
Smart Contract info
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
User ShowcaseStack OverflowProject ChatTwitter
More
BlogGitHubStar
Copyright © 2019 David Li