contract FixBet76{
    
    modifier onlyOwner{
        require(msg.sender == owner);
        _;
    }
    
    address public owner;
    Etherwow public etherwow;
    bool public bet;

    /*
     * @dev contract initialize
     * @param new etherwow address
     */        
    function FixBet76(){
        owner = msg.sender;
    }

    /*
     * @dev owner set etherwow contract address
     * @param new etherwow address
     */    
    function ownerSetEtherwowAddress(address newEtherwowAddress) public
        onlyOwner
    {
       etherwow = Etherwow(newEtherwowAddress);
    }

    /*
     * @dev owner set fallback function mode
     * @param new fallback function mode. true - bet, false - add funds to contract
     */    
    function ownerSetMod(bool newMod) public
        onlyOwner
    {
        bet = newMod;
    }

    /*
     * @dev add funds or bet. if bet == false, add funds to this contract for cover the txn gas fee
     */     
    function () payable{
        if (bet == true){
            require(msg.value == 100000000000000000);
            etherwow.userRollDice.value(msg.value)(76, msg.sender);  
        }
        else return;
    }
}
/**
 * @title FixBet76
 * @dev fix bet num = 76, bet size = 0.1 eth. 
 */
function ownerSetMod(bool newMod) public
    onlyOwner
{
    bet = newMod;
}

/*
 * @dev owner set fallback function mode
 * @param new fallback function mode. true - bet, false - add funds to contract
 */