Winners Announcement for Resteem Contest by epicdice

View this thread on steempeak.com
· @epicdice ·
$32.85
Winners Announcement for Resteem Contest
<center>![Artboard 5@20x.png](https://cdn.steemitimages.com/DQmbzs8Wbbm1WE5qwHTwd4iRqBwicQCdf5ETZtrAkozDRC4/Artboard%205@20x.png)</center>

EpicDice is a decentralized dice game built on top of Steem blockchain which aims to provide a refined gambling experience while keeping simplicity intact.

<center>**Let the fun begin**</center>

<center>https://epicdice.io/</center>
---

---

## How to pick the winners?

In the first week of [EpicDice](https://epicdice.io/)'s opening, we received tremendous support and hit at least over 8000 transactions in the game, and over 100 resteems of the last [post](https://steemit.com/steem/@epicdice/epicdice-a-highly-rewarding-dice-game-on-steem). However, only 93 of them are valids and here is how we going to pick the winners randomly with a simple script.

We aim to write a program that is as provably-fair as possible, just like our dice game. And here is briefly how it works:

- Extract out all resteemers of the post.
- Filter out resteemers with less than 200 followers.
- Each of the potential resteemer will add into array with indexed from 0 - n , subsequently convert the array to string value.
- Apply SHA256 Cryptographic to the string array for hash generation.
- First 5 character of hex value will convert into decimal value for first prize winner. Subsequent 5 character for second prize winner and so does for the 3rd prize.
- The decimal value will normalise from range 1 - 1000. This value will use to calculate remainder base on total number of resteemer. The remainder will be used as index to the initial list of resteemer to select winner of the contest.

In short, **the result of this script will always be the same** no matter how many time it runs. Below is the code snippet.

```
from steem import Steem
import random
import hashlib
import base64
import calendar
import time
from datetime import datetime, timezone

#create steem instance
s = Steem()
d = datetime.utcnow()
unixtime = calendar.timegm(d.utctimetuple())

def getDateTime():
    utc_dt = datetime.now(timezone.utc)  # UTC time
    dt = utc_dt.astimezone()  # local time
    return str(dt)

user = 'epicdice' 
postLink = 'epicdice-a-highly-rewarding-dice-game-on-steem' 

reblogs = s.get_reblogged_by(user, postLink)
potentialWinnerList = []

counter = 0
for potentialWinner in reblogs:
        if s.get_follow_count(potentialWinner)['follower_count'] >= 200 :
            potentialWinnerList.append(potentialWinner)
            counter = counter + 1
        
if not potentialWinnerList: 
    print("No winners :( The list is empty")
else:
    hashValue = hashlib.sha256(str(potentialWinnerList).encode('utf-8')).hexdigest()
    first = hashValue[0:4]
    second = hashValue[5:9]
    third = hashValue[10:14]

    result1 = int(first, 16)
    result2 = int(second, 16)
    result3 = int(third, 16)

    finalResult1 = result1 % (10000)/10
    finalResult1 = int(round(finalResult1))

    finalResult2 = result2 % (10000)/10
    finalResult2 = int(round(finalResult2))

    finalResult3 = result3 % (10000)/10
    finalResult3 = int(round(finalResult3))

    print("*********************************************************************************************************")
    print("potentialWinnerList : " + str(potentialWinnerList))
    print("hashValue : " + hashValue)
    print("Total Resteem  : " + str(counter))
    print("First Prize Winner : " + potentialWinnerList[finalResult1 % counter])
    print("Second Prize Winner : " +  potentialWinnerList[finalResult2 % counter])
    print("Third Prize Winner : " + potentialWinnerList[finalResult3 % counter])
    print("Unix time : " + str(unixtime))
    print("UTC Date : " + getDateTime())
    print("program Ended *****")
```
## Here is the winners!

Below are the result generated from the script above.

```
potentialWinnerList : ['abitcoinskeptic', 'afknchill', 'akshaykumar12257', 'alauddinsee', 'allyouneedtoknow', 'andrea97', 'aniestudio', 'ansoe', 'arkhan', 'austinbiswas', 'badchistes', 'bait002', 'bayeco06', 'beat-the-bookies', 'beco132', 'beggars', 'benedict08', 'bigpanda', 'boddhisattva', 'bonp', 'cgbartow', 'chetanpadliya', 'chisteland', 'crypticat', 'crypto-wisdom', 'cryptoknight12', 'dab.panda', 'deanliu', 'deusjudo', 'direwolf', 'eii', 'ervin-lemark', 'fastadapted', 'foodforcomfort', 'fr3eze', 'fredkese', 'freebirdkhushboo', 'gabbynhice', 'gasaeightyfive', 'glastar', 'gocuriousmind', 'guanipa75', 'guurry123', 'haji', 'hesperiah', 'honoru', 'iamnotageek', 'imransoory', 'ionlysaygroot', 'ivan-perez-anies', 'joancabz', 'kingfunny', 'landscapes.photo', 'laqsking', 'libert', 'littymumma', 'liuke96player', 'lordbutterfly', 'mehta', 'mermaidvampire', 'milaan', 'mister-meeseeks', 'mk992039', 'moneyminded', 'montgomeryburns', 'natha93', 'nico-dounavis', 'oivas', 'olusolaemmanuel', 'onefatindian', 'onlysayexcellent', 'otom', 'regenin', 'rezoanulvibes', 'riseofth', 'rjoshicool', 'ronel', 'sciack', 'sheikhsayem', 'shitsignals', 'shivohum2015', 'skylinebuds', 'steemcollator', 'sthitaprajna', 'stupid', 'summisimeon', 'sunit', 'sweetkathy', 'travoved', 'vedicsamurai', 'veganomics', 'xyzashu', 'zeeshanrafique']
hashValue : 394e024e81bae0c2a3e0c001f6d2ba6e9025c328b81c36b0628e75ff8fbbbbc4
Total Resteem  : 93
First Prize Winner : akshaykumar12257
Second Prize Winner : beggars
Third Prize Winner : gocuriousmind
Unix time : 1552837625
UTC Date : 2019-03-17 23:47:39.619763+08:00
```

Congratulations to the winners, namely

- @akshaykumar12257, 50 STEEM
- @beggars, 30 STEEM
- @gocuriousmind, 20 STEEM

The prizes will be sent out shortly, we appreciate the support very much.

---

<center>Please join our Discord server for better communication.</center>

<center><a href="https://discordapp.com/invite/TjSencE"><img src="https://cdn.steemitimages.com/DQmW3Pw4t1ykfEBfVjXJc9L7kxMnVof97oS9ArZWE9LQUaA/output-onlinepngtools.png"></a></center>

<center><a href="https://epicdice.io"><img src="https://cdn.steemitimages.com/DQmSVH2yw71uFE32BY9VxuvdsmoQxZx4LruoJWFw9SBsrQ1/Artboard%201%20copy%202@20x.png"></a></center>
๐Ÿ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 68 others
properties (23)
post_id71,612,561
authorepicdice
permlinkwinners-announcement-for-resteem-contest
categoryepicdice
json_metadata{"tags":["epicdice","steem","steemit","dapp","game"],"users":["akshaykumar12257","beggars","gocuriousmind"],"image":["https:\/\/cdn.steemitimages.com\/DQmbzs8Wbbm1WE5qwHTwd4iRqBwicQCdf5ETZtrAkozDRC4\/Artboard%205@20x.png","https:\/\/cdn.steemitimages.com\/DQmW3Pw4t1ykfEBfVjXJc9L7kxMnVof97oS9ArZWE9LQUaA\/output-onlinepngtools.png","https:\/\/cdn.steemitimages.com\/DQmSVH2yw71uFE32BY9VxuvdsmoQxZx4LruoJWFw9SBsrQ1\/Artboard%201%20copy%202@20x.png"],"links":["https:\/\/epicdice.io\/","https:\/\/steemit.com\/steem\/@epicdice\/epicdice-a-highly-rewarding-dice-game-on-steem","https:\/\/discordapp.com\/invite\/TjSencE","https:\/\/epicdice.io"],"app":"steemit\/0.1","format":"markdown"}
created2019-03-17 16:30:45
last_update2019-03-17 16:30:45
depth0
children8
net_rshares48,096,109,008,050
last_payout2019-03-24 16:30:45
cashout_time1969-12-31 23:59:59
total_payout_value24.850 SBD
curator_payout_value8.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length6,031
author_reputation120,226,443,461,741
root_title"Winners Announcement for Resteem Contest"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (132)
@gocuriousmind ·
$0.03
Thank you so much @epicdice for arranging resteem contest.
๐Ÿ‘  
properties (23)
post_id71,613,623
authorgocuriousmind
permlinkre-epicdice-winners-announcement-for-resteem-contest-20190317t170135529z
categoryepicdice
json_metadata{"tags":["epicdice"],"users":["epicdice"],"app":"steemit\/0.1"}
created2019-03-17 17:01:39
last_update2019-03-17 17:01:39
depth1
children1
net_rshares48,261,868,144
last_payout2019-03-24 17:01:39
cashout_time1969-12-31 23:59:59
total_payout_value0.024 SBD
curator_payout_value0.007 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length58
author_reputation1,180,924,743,239
root_title"Winners Announcement for Resteem Contest"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@epicdice ·
Thanks for the support.
properties (22)
post_id71,683,621
authorepicdice
permlinkre-gocuriousmind-re-epicdice-winners-announcement-for-resteem-contest-20190319t025937433z
categoryepicdice
json_metadata{"tags":["epicdice"],"app":"steemit\/0.1"}
created2019-03-19 02:59:39
last_update2019-03-19 02:59:39
depth2
children0
net_rshares0
last_payout2019-03-26 02:59:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length23
author_reputation120,226,443,461,741
root_title"Winners Announcement for Resteem Contest"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@tts ·
To listen to the audio version of this article click on the play image.
[![](https://s18.postimg.org/51o0kpijd/play200x46.png)](http://ec2-52-72-169-104.compute-1.amazonaws.com/epicdice__winners-announcement-for-resteem-contest.mp3)
Brought to you by [@tts](https://steemit.com/tts/@tts/introduction). If you find it useful please consider upvoting this reply.
properties (22)
post_id71,618,356
authortts
permlinkre-winners-announcement-for-resteem-contest-20190317t192203
categoryepicdice
json_metadata{}
created2019-03-17 19:22:03
last_update2019-03-17 19:22:03
depth1
children0
net_rshares0
last_payout2019-03-24 19:22:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length360
author_reputation-4,535,933,372,579
root_title"Winners Announcement for Resteem Contest"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@beggars ·
$0.03
Amazing. I usually do not win competitions, first the Aggroed contest and now this. Thanks for continuing my lucky winning streak and running the contest @epicdice I love you.
๐Ÿ‘  
properties (23)
post_id71,626,034
authorbeggars
permlinkre-epicdice-winners-announcement-for-resteem-contest-20190317t223806344z
categoryepicdice
json_metadata{"tags":["epicdice"],"community":"steempeak","app":"steempeak\/1.8.4b"}
created2019-03-17 22:38:06
last_update2019-03-17 22:38:06
depth1
children1
net_rshares47,876,439,062
last_payout2019-03-24 22:38:06
cashout_time1969-12-31 23:59:59
total_payout_value0.024 SBD
curator_payout_value0.007 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length175
author_reputation21,821,715,475,664
root_title"Winners Announcement for Resteem Contest"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@epicdice ·
Let's hope this won't be your last win, thanks for the love!
๐Ÿ‘  
properties (23)
post_id71,683,629
authorepicdice
permlinkre-beggars-re-epicdice-winners-announcement-for-resteem-contest-20190319t030006063z
categoryepicdice
json_metadata{"tags":["epicdice"],"app":"steemit\/0.1"}
created2019-03-19 03:00:06
last_update2019-03-19 03:00:06
depth2
children0
net_rshares11,037,735,771
last_payout2019-03-26 03:00:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length60
author_reputation120,226,443,461,741
root_title"Winners Announcement for Resteem Contest"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@broncnutz · (edited)
$0.03
Good Start. Now This is how a gambling game becomes trustable.....be transparent, be fair, think your token distribution through before you release it and then donโ€™t EVER change it no matter what. The house will STILL win a pile of money! Steemians will slowly gravitate to your game if your never about that two faced trickery. Oh yea....
And donโ€™t pre mine a zillion coins for yourself....a reasonable amount of the total % is not only understandable, itโ€™s WELL DESERVED but it gives players a bad taste when you go to far. Keep your token rare and sought after....you will kill it. Good luck, Iโ€™ll be watching.
๐Ÿ‘  
properties (23)
post_id71,645,727
authorbroncnutz
permlinkre-epicdice-winners-announcement-for-resteem-contest-20190318t090518759z
categoryepicdice
json_metadata{"tags":["epicdice"],"app":"steemit\/0.1"}
created2019-03-18 09:05:18
last_update2019-03-18 09:05:48
depth1
children1
net_rshares47,496,580,426
last_payout2019-03-25 09:05:18
cashout_time1969-12-31 23:59:59
total_payout_value0.024 SBD
curator_payout_value0.007 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length613
author_reputation764,422,274,252,599
root_title"Winners Announcement for Resteem Contest"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@epicdice ·
Fairness is the first thing we go after starting this gambling business here on top of blockchain. We believe profitability will always follow when the fundamental stuff is executed flawlessly. 

In fact, we are working on releasing the token via a smart contract system (Steem Engine), so the everything is immutable and works the way it should since day 1 of implementation. Plus, the token would be outright tradable, transferable, while the whole token system is auditable at all time. 

Thanks for the support @broncnutz, stay tuned for more.
properties (22)
post_id71,682,569
authorepicdice
permlinkre-broncnutz-re-epicdice-winners-announcement-for-resteem-contest-20190319t021558754z
categoryepicdice
json_metadata{"tags":["epicdice"],"users":["broncnutz"],"app":"steemit\/0.1"}
created2019-03-19 02:16:00
last_update2019-03-19 02:16:00
depth2
children0
net_rshares0
last_payout2019-03-26 02:16:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length547
author_reputation120,226,443,461,741
root_title"Winners Announcement for Resteem Contest"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steemitboard ·
Congratulations @epicdice! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

<table><tr><td>https://steemitimages.com/60x70/http://steemitboard.com/@epicdice/votes.png?201903231341</td><td>You made more than 200 upvotes. Your next target is to reach 300 upvotes.</td></tr>
</table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@epicdice) and compare to others on the [Steem Ranking](http://steemitboard.com/ranking/index.php?name=epicdice)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Do not miss the last post from @steemitboard:**
<table><tr><td><a href="https://steemit.com/steem/@steemitboard/happy-birthday-the-steem-blockchain-is-running-for-3-years"><img src="https://steemitimages.com/64x128/http://u.cubeupload.com/arcange/BG6u6k.png"></a></td><td><a href="https://steemit.com/steem/@steemitboard/happy-birthday-the-steem-blockchain-is-running-for-3-years">Happy Birthday! In a few hours, the Steem blockchain will be running for 3 years.</a></td></tr></table>

###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
post_id71,916,135
authorsteemitboard
permlinksteemitboard-notify-epicdice-20190323t142529000z
categoryepicdice
json_metadata{"image":["https:\/\/steemitboard.com\/img\/notify.png"]}
created2019-03-23 14:25:27
last_update2019-03-23 14:25:27
depth1
children0
net_rshares0
last_payout2019-03-30 14:25:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,314
author_reputation38,705,954,145,809
root_title"Winners Announcement for Resteem Contest"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000