Nxt Forum

Nxt Discussion => Nxt Asset Exchange => Topic started by: SwissAlps on December 27, 2014, 06:44:46 am

Title: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on December 27, 2014, 06:44:46 am
We start with following lotteries, that we will use as Test Case, to validate our implementations and ideas. These test cases are devised to use a most simple environment. The ticket prices are set very low. Of these, CasinoTool will keep 4.77 percents; this income will be used mainly to sponsor devs that help us and the rest, if any, will go into the yearly dividends.

All these lotteries are kind of linked together because some of the weekly jackpots flies to the monthly lotteries, and some of the monthly jackpots go to the yearly lotteries.

    Short descriptionCode     Ticket prices         Full description
Yearly Lottery, single winner  Y1     1'050 NXThttps://nxtforum.org/index.php?topic=7143.msg143967#msg143967 (https://nxtforum.org/index.php?topic=7143.msg143967#msg143967)
Monthly Lottery, single winner  M1       105 NXThttps://nxtforum.org/index.php?topic=7143.msg144337#msg144337 (https://nxtforum.org/index.php?topic=7143.msg144337#msg144337)
Monthly Lottery, many winners  M2       105 NXT
Weekly Lottery, single winner  W1       105 NXThttps://nxtforum.org/index.php?topic=7143.msg145994#msg145994 (https://nxtforum.org/index.php?topic=7143.msg145994#msg145994)
Weekly Lottery, 5 winners  W2       105 NXT
Weekly Lottery, very wild, only for statisticians  W3       105 NXT

So if you want to support CasinoTool, you just start buying lottery tickets.

Myself, I will buy ticket Nr 1 of all lotteries. This is the first time that I buy lottery tickets and hope that I do not win; imagine after winning having to convince the nxters that the random methodology was correct !  ;D ;D ;D  (see the random note !)
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on December 27, 2014, 07:32:53 am
The random question

We would like to use a simple random number that would be posted in the blockchain as a simple AM (arbitrary message) sent to the CasinoTool account NXT-FKSF-53F7-TQ2A-GJHU9, so that everybody can easily check the lotttery draw without having to compute it.

For more info about how the random number is extracted, see https://nxtforum.org/index.php?topic=7730.msg152374#msg152374 (https://nxtforum.org/index.php?topic=7730.msg152374#msg152374)
For all the lotteries, we use the first block after the end of the corresponding period; this means for the monthly lottery the first block of the next month. For the weekly lotteries, the first block of every Sunday.

Question : How do we know the winning TicketNr using this ?

Answer : x = total nr of tickets sold during the week (let's say it is 17)
             y = the random number (in the example 9 062 747)
             r = modulus operation, remainder of the division y / x   (r=13)
             Winning TicketNr = r + 1 (Winning TicketNr 14)
 
PS : Some people seem to have very good random values, I would really want to have more knowledge about how they did it at  http://news.bbc.co.uk/2/hi/africa/621895.stm (http://news.bbc.co.uk/2/hi/africa/621895.stm)
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on December 28, 2014, 07:03:36 am
Code Y1 Yearly Test Case Lottery started (Christmas lottery)

We make this one very simple, only one winner, a single ticket wins the entire prize money.

If no winners for the Jackpot, it goes credited to the next lottery period.

To buy a ticket, nothing more easy, just send the exact amount 1'050 NXT to LotYear2015.

The computation of your TicketNr is straighforward, it is the attributed in the same sequence as the incoming ticket buying transactions in the lottery account. 

Buying a ticket after the deadline means you are buying for the next period, it means also that the ticket numbering starts afresh with TicketNr 1.

You cannot buy more than one ticket at a time in a single transaction, you have to make many transactions if you need more tickets.

You cannot resell or give away your tickets, it remains attached to the sending Nxt account (via the transaction Id).


CasinoTool welcome suggestions from all nxters on how to improve both these Test Case Lotteries.
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on December 29, 2014, 05:51:27 pm
Code M1 Monthly Test Case Lottery

To buy a ticket, nothing more easy, just send the exact amount 105 NXT to LotJan2015.

If no winners for the Jackpot, it goes credited to the next lottery period.

The computation of your TicketNr is straighforward, it is the attributed in the same sequence as the incoming ticket buying transactions in the lottery account. 

Buying a ticket after the deadline means you are buying for the next period, it means also that the ticket numbering starts afresh with TicketNr 1.

You cannot buy more than one ticket at a time in a single transaction, you have to make many transactions if you need more tickets.

You cannot resell or give away your tickets, it remains attached to the sending Nxt account (via the transaction Id).


Monthly Test Case Lottery  January 2015

Already 9 tickets sold, prize money is now 900 NXT !

Still a very small lottery, but working fine. Thanks, all of you.
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: capodieci on January 05, 2015, 06:11:22 am
Ah, too bad I saw this tread only now, I would have bought the other tickets too.

Still I been to both account marketplace, but no tickets on sale there...

(http://s2.postimg.org/8q5gutgvt/Screen_Shot_2015_01_05_at_2_08_42_PM.png)

(http://s7.postimg.org/4k6q2k12j/Screen_Shot_2015_01_05_at_2_09_23_PM.png)
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: capodieci on January 05, 2015, 06:13:09 am
To buy a ticket, nothing more easy, just send the exact amount 105 NXT to LotJan2015 or 1'050 NXT to LotYear2015. You can compute your ticket Nr by dividing the account balance by 1'000, after your transaction has been validated.

Oh, I see this now. Man, I need more coffee...
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: capodieci on January 05, 2015, 06:16:45 am
Ok, sent. The balance/10 to calculate my number is the balance BEFORE or AFTER my deposit?

(http://s9.postimg.org/m3f1gru33/Screen_Shot_2015_01_05_at_2_14_54_PM.png)

So my number is 85? or...

R
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 05, 2015, 06:38:16 am
Code W1 Weekly Test Case Lottery

To buy a ticket, nothing more easy :

- just send the exact amount 105 NXT to LotteryW1 (account NXT-AFG7-MPFY-7ATW-D96FQ)

Your lottery TicketNr is attributed from 1 to N, using the same order as the list of incoming 105 NXT transactions in this lottery account, starting every sunday. Example: You are the first to buy a ticket on a Monday, and Sunday already 4 tickets were sold, then your TicketNr would be 5.

And now the goodies, we have a new feature now in these lotteries, the Jackpot.

And it doesn't cost one dime more.

NEW : JACKPOT 3'060 NXT

Each time you buy a ticket, you can also try to crack the jackpot. For W1, the jackpot is now 3'000 NXT.

For more info about this, the Jackpot Rules post https://nxtforum.org/index.php?topic=7143.msg145999#msg145999 (https://nxtforum.org/index.php?topic=7143.msg145999#msg145999)
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 05, 2015, 06:51:27 am
Jackpot Rules
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 05, 2015, 06:59:30 am
Do not want to disadvantage players that have already bought a ticket :

exceptionally, they can send a message to the lottery account,  with their chosen Nr, one only per bought ticket. Normally these messages have to be part of the buying transaction.
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: whatnxt on January 05, 2015, 11:01:34 am
Do not want to disadvantage players that have already bought a ticket :

exceptionally, they can send a message to the lottery account,  with their chosen Nr, one only per bought ticket. Normally these messages have to be part of the buying transaction.
Are you referring to people who bought Monthly and yearly tickets?
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 06, 2015, 09:23:37 am
Do not want to disadvantage players that have already bought a ticket :

exceptionally, they can send a message to the lottery account,  with their chosen Nr, one only per bought ticket. Normally these messages have to be part of the buying transaction.
Are you referring to people who bought Monthly and yearly tickets?
Yes, exactly.
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 06, 2015, 09:36:24 am
Ok, sent. The balance/10 to calculate my number is the balance BEFORE or AFTER my deposit?

(http://s9.postimg.org/m3f1gru33/Screen_Shot_2015_01_05_at_2_14_54_PM.png)

So my number is 85? or...

R
TicketNr 8

I agree, seems too complicate. I update the conditions a bit to better explain this.

The TicketNr is simply the same as the order that you can see when you list the transactions of the lottery account.

The first transaction with 105 NXT gets TicketNr 1, the next, TicketNr 2, etc... 

After a draw has been done, we start afresh attributing the ticketNr from position 1, this means for example that for the weekly W1 lottery, if your are the first to buy a ticket on a Sunday (Saturday night is the last possible ticket buy for a specific week, the draw for W1 is always on Sundays), you will be attribute the TicketNr 1.
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: capodieci on January 06, 2015, 09:41:29 am
TicketNr 8


Oh, ok...

I agree, seems too complicate. I update the conditions a bit to better explain this.


Why you just don't sell the tickets as store products? And when delivering the goods you send the ticket#?

R
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 06, 2015, 10:14:34 am
TicketNr 8


Oh, ok...

I agree, seems too complicate. I update the conditions a bit to better explain this.


Why you just don't sell the tickets as store products? And when delivering the goods you send the ticket#?

R

Very good question.

CasinoTool principal objective is to create of few tools, open source, written in simple JavaScript, that would allow anyone that want to start a new gambling game to do it with the lowest possible investment of time and technical complexities; this is the NxtInside part of the project.

If we can incite a lot of third parties to start lotteries and other gambling games, pokers, roulette, that use NXT as underlying backbone, then we have fullfilled the important goal of thousands of new NXT users.

We try to increase the value of NXT; the real value of CasinoTool will be automaticall derived from this. Of course if we can also find ways to add a bit to this value, we will do it.

Example : The W1Lottery was started and implemented in less than ONE HOUR !

Nxt tools are already very great, just as they are (the AE is a big plus); we just need to show other people how to use them.
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 07, 2015, 08:56:32 am
Hi everybody, here is the first tool provided by CasinoTool, whoa !

As I said somewhere else, I just started learning JavaScript, HTML and all these nice little things, so this little HTML page needs a little work to make it nicer, and  we will implement better looking versions.

To do this, we need devs, not high specialised guys, but obviously a bit more than my current state. Just PM me if you think you can help.

But the thing works, and shows well the difference between using your localhost or calling external peers (thanks, Jones work). 

To use it, copy it locally somewhere on your machine, and use your browser to call it (this message is for people that have even less knowledge than me !).

TOOL 1 : How to display the detailed transactions of all the TestCase Lottery accounts
Code: [Select]
<!DOCTYPE html>
<html>

<head>
<title>CasinoTool Show Lottery Transactions</title>
</head>
<body>

<h1>CasinoTool Show Lottery Transactions</h1>
<h2>Calling your own blockchain</h2>
<p>Use the following if you have started the Nxt client on your machine.</p>
<p></p>
<form method="post" action="http://localhost:7876/nxt?requestType=getAccountTransactions&account=NXT-CDB6-V476-PRLC-CC9VJ">
  <input type="submit" value="Code Y1 Yearly Testcase Lottery, account NXT-CDB6-V476-PRLC-CC9VJ"/>
</form>
<p></p>
<form method="post" action="http://localhost:7876/nxt?requestType=getAccountTransactions&account=NXT-QP3U-8ZPR-E48D-FCVW2">
  <input type="submit" value="Code M1 Monthly Testcase Lottery, account NXT-QP3U-8ZPR-E48D-FCVW2"/>
</form>
<p></p>
<form method="post" action="http://localhost:7876/nxt?requestType=getAccountTransactions&account=NXT-AFG7-MPFY-7ATW-D96FQ">
  <input type="submit" value="Code W1 Weekly TestCase Lottery, account NXT-AFG7-MPFY-7ATW-D96FQ"/>
</form>
<p></p>
<p></p>
<h2>Calling Jones blockchain</h2>
<p>Use the following if you want to call other blockchains from stable peers on the internet.</p>
<p>This is less secure because you don't know
if the blockchain info you are getting reflects the real state.</p>
<p></p>
<form method="post" action="http://jnxt.org:7876/nxt?requestType=getAccountTransactions&account=NXT-CDB6-V476-PRLC-CC9VJ">
  <input type="submit" value="Code Y1 Yearly Testcase Lottery, account NXT-CDB6-V476-PRLC-CC9VJ"/>
</form>
<p></p>
<form method="post" action="http://jnxt.org:7876/nxt?requestType=getAccountTransactions&account=NXT-QP3U-8ZPR-E48D-FCVW2">
  <input type="submit"  value="Code M1 Monthly Testcase Lottery, account NXT-QP3U-8ZPR-E48D-FCVW2"/>
</form>
<p></p>
<form method="post" action="http://jnxt.org:7876/nxt?requestType=getAccountTransactions&account=NXT-AFG7-MPFY-7ATW-D96FQ">
  <input type="submit"  value="Code W1 Weekly TestCase Lottery account NXT-AFG7-MPFY-7ATW-D96FQ"/>
</form>

</body>
</html>
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 08, 2015, 05:38:50 am
For the moment, we will take the Joker from the portuguese state lottery, as seen at the following link http://www.alllotto.com.pt/ (http://www.alllotto.com.pt/)  They draw it every sunday, I do not know exactly at what time. It's 7 digits. The next draw is Sunday Jan.11
CasinoTool : Weekly Testcase Lottery (code W1) Draw is on Sunday Jan.11

Question : How do we know the winning TicketNr using this ?

Answer : x = total nr of tickets sold during the week (let's say it is 17)
             y = the draw (last draw on Sunday 4th was 9 062 747)
             r = remainder of the division y / x   (r=13)
             Winning TicketNr = r + 1 (Winning TicketNr 14)
 
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 09, 2015, 05:30:19 am
CasinoTool : Weekly Testcase Lottery (code W1)

Remember, the first NXT lottery draw will be next sunday, deadline to buy W1 tickets saturday night !

And may be you can crack the 3'000 NXT jackpot ! 

GOOD LUCK TO ALL
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 09, 2015, 06:52:44 am
For the moment, you find here all the JackpotNr bets for the W1 lottery

Account  JackpotNr
NXT-X3LR-Y26X-EYF9-FEGH5   346
NXT-PYRJ-PZ6R-S6UV-9EGC8   invalid, has sent an encrypted message !   :( ???
NXT-SBSP-BPHH-E7BR-9USXU   007
NXT-XFAH-7N9C-6AS6-B3GLZ   379

We will later have a tool to tally and show them automatically. For the moment, it's done by hand.

If one of these numbers matches the last 3 digits of the future sunday draw, he gets the jackpot !  3'000 NXT !

I hope it will be 007, it's my fetish number... ;D
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 10, 2015, 06:20:04 am
CasinoTool

Today is the last day if you want to be part of the first Nxt W1 Testcase Weekly Lottery.

You should really try it. Why ?  First, because it's fun; second, because it could very well be the case that sometimes in the future, if we decide to launch an IPO, you would see a block of shares with special conditions dedicated to the first n accounts that were using the TestCase Lotteries !!!  :) 

Draw tomorrow Sunday, around midday (don't know the exact the time), see http://www.alllotto.com.pt/ (http://www.alllotto.com.pt/)

TicketNr    AccountJackpotNr
1NXT-XFAH-7N9C-6AS6-B3GLZ    379
2NXT-SBSP-BPHH-E7BR-9USXU    007
3NXT-PYRJ-PZ6R-S6UV-9EGC8    invalid, has sent an encrypted message !
4NXT-X3LR-Y26X-EYF9-FEGH5    346
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: capodieci on January 10, 2015, 08:44:11 am
I don't see my #8 as I participated at another lottery?
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 10, 2015, 10:43:05 am
I don't see my #8 as I participated at another lottery?
Hi capodieci,

Yes, probably the M1 Monthly lottery, deadline to get tickets 31th January, draw the first Sunday of February, same procedure as the W1. To be sure, check in the following table.

You will note that the 3'000 NXT Jackpot is not yet implemented for the M1, but we will probably do it, so the best to participate also to this free jackpot draw is to give your JackpotNr at the same time that you buy your M1 lotttery ticket, using the unencrypted message.

Note that each lottery, W1, M1 and Y1, has a separate Jackpot, and use the corresponding draw to find the winner.

The Jackpot idea has been recently implemented,  so the 8 participants that have not yet chosen one should send an unencrypted message, see https://nxtforum.org/index.php?topic=7143.msg146001#msg146001 (https://nxtforum.org/index.php?topic=7143.msg146001#msg146001)


CasinoTool   INFO ABOUT THE M1 MONTHLY TESTCASE LOTTERY

TicketNr  Account    JackpotNr
1NXT-SBSP-BPHH-E7BR-9USXU    missing, should send a message
2NXT-FKSF-53F7-TQ2A-GJHU9    missing, should send a message
3NXT-ECBU-G3RB-W4HN-DD75D    missing, should send a message
4NXT-D8EY-9VDS-TMUY-GMN59    missing, should send a message
5NXT-QW4Y-76KT-FN6Z-54RRY    missing, should send a message
6NXT-MAEF-Y5ND-K63M-4ZPCG    missing, should send a message
7NXT-UAPC-3T43-FFT6-HW5BZ    272
8NXT-XFAH-7N9C-6AS6-B3GLZ    missing, should send a message
9NXT-9ZX2-YW4S-2YY5-ERV8E    missing, should send a message
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: PureVision on January 10, 2015, 02:59:39 pm
Bought myself a ticket for the weekly lottery.
Now keeping my fingers crossed  :)

Love these little contests and lottery's. Keeps it fun!
Also have some casinotool shares, so it's logical i support this and help with the testing.

Keep up the good work!
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 12, 2015, 02:39:59 pm
Casino Tool Sunday 11th. 2014  W1 draw

Here, the detail of all W1 tickets valid for this draw (deadline saturday)

TicketNr    AccountJackpotNr
1NXT-XFAH-7N9C-6AS6-B3GLZ    379
2NXT-SBSP-BPHH-E7BR-9USXU    007
3NXT-PYRJ-PZ6R-S6UV-9EGC8    invalid, has sent an encrypted message !
4NXT-X3LR-Y26X-EYF9-FEGH5    346
5NXT-PJ4S-P5MU-LFBV-6ARBY    018
6NXT-TH5L-YUSA-B79L-D8PXL    372

Sunday Jan.11 2014, evening draw at the Portuguese National Lottery (don't know the exact the time), see http://www.alllotto.com.pt/ (http://www.alllotto.com.pt/)

Joker is 8926805 

From this, we derive

Nobody has won the 3'000 NXT jackpot, this amount is reported to week ending Jan.18th

The repartition goes as follow :
 6 tickets x 100 NXT =https://nxtforum.org/Themes/core/images/bbc/underline.gif 600 NXT

Congratulations, NXT-TH5L-YUSA-B79L-D8PXL, you are the first winner of a CasinoTool lottery !
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: PureVision on January 12, 2015, 03:36:17 pm
Héhé, I won! Cool!  :)
Thanks
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 16, 2015, 06:09:46 am
CasinoTool The Weekly Lottery

Here, the details of all W1 tickets of the week ending on Saturday, Jan.17 2014
Lottery draw on Sunday, Jan.18 2014

TicketNr    AccountJackpotNr
1NXT-C7XD-MPJS-2E8E-BKCDY     777
2NXT-Y7B3-DAYW-FH6R-7YY9Q     548
3NXT-SBSP-BPHH-E7BR-9USXU     007
4NXT-NFQC-J77K-Z4GW-32UW6     517
5NXT-PYRJ-PZ6R-S6UV-9EGC8     666
6NXT-6H9P-S9AJ-QYDP-84E4Y     800
7NXT-8436-CDK9-VVDD-8H87M     612
8NXT-GMP6-4RRF-TJDX-4ZDYC     234
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 17, 2015, 06:24:16 am
CasinoTool

Today Saturday is the last day if you want to be part of the Nxt W1 Testcase Weekly Lottery.

You should really try it. Why ?  First, because it's fun; second, because it could very well be the
case that sometimes in the future, if we decide to launch another IPO, you would see a block of
shares with special conditions dedicated to the first n accounts that were using the CasinoTool
projects !!!  :) 

Draw tomorrow Sunday evening (don't know the exact the time), see http://www.alllotto.com.pt/ (http://www.alllotto.com.pt/)

Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: mcjavar on January 17, 2015, 11:40:20 pm
A lot of blabla... but what do I need to do to participate? :)
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 18, 2015, 06:21:26 am
CasinoTool The Weekly Lottery

Here, the latest details of all W1 tickets of the week ending on Saturday, Jan.17 2014
Lottery draw on Sunday evening, Jan.18 2014

TicketNr    AccountJackpotNr
1NXT-C7XD-MPJS-2E8E-BKCDY     777
2NXT-Y7B3-DAYW-FH6R-7YY9Q     548
3NXT-SBSP-BPHH-E7BR-9USXU     007
4NXT-NFQC-J77K-Z4GW-32UW6     517
5NXT-PYRJ-PZ6R-S6UV-9EGC8     666
6NXT-6H9P-S9AJ-QYDP-84E4Y     800
7NXT-8436-CDK9-VVDD-8H87M     612
8NXT-GMP6-4RRF-TJDX-4ZDYC     234
9NXT-TH5L-YUSA-B79L-D8PXL     372
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 18, 2015, 06:48:30 am
A lot of blabla... but what do I need to do to participate? :)
Hi mcjavar,

Here, the link showing how to get a ticket for the next W1 CasinoTool lottery draw, Sunday, 25th Jan. :
https://nxtforum.org/index.php?topic=7143.msg145994#msg145994 (https://nxtforum.org/index.php?topic=7143.msg145994#msg145994)

You should also read the Jackpot rules :
https://nxtforum.org/index.php?topic=7143.msg145999#msg145999 (https://nxtforum.org/index.php?topic=7143.msg145999#msg145999)

And if you did not notice, CasinoTool also started a Nxt Roulette, see description here :
https://nxtforum.org/index.php?topic=7730.0

For the moment, this roulette is not spinning very fast  ???, only once a week !  It must be the slowest 'roulette table' in the world  :o. But also the The First NXT Roulette In The World  ;D, and I hope there will be a lot more, once third parties see how easy it is to set one. And then you will also see nice clients... That's the future. But for the moment, do not despair, we will make it spin much faster. First, every day. Then in real fast mode, after 5 blocks validation (or something like that).

I wish you GOOD LUCK with your gambling  :) :) :)
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: Amalgamus on January 18, 2015, 11:01:53 pm
I believe the account 5 (NXT-PYRJ-PZ6R-S6UV-9EGC8 ) has won. Happy for the lucky winner! But will have to wait for SwissAlps to confirm.
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 19, 2015, 01:56:35 pm
I am travelling just now, and will post my computations tonight.

What is good about the blockchain is that everybody can easily check that everything goes as intended and as boasted.

Amalgamus is going faster than the wind !  :)

It's nice to have some double check !
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 19, 2015, 05:10:19 pm
Draw Jan.18  4 867 548   

From this, we derive
 JackpotNr 548
 TicketNr 7

Could not believe my eyes, some guys are really lucky, NXT-Y7B3-DAYW-FH6R-7YY9Q has won the 3'060 NXT jackpot

There were 9 bets, 900 NXT repartition :
.90 NXT to the W1 jackpot, the new jackpot for week ending Jan.25th. is now 90 NXT
.810 NXT to TicketNr 7  NXT-8436-CDK9-VVDD-8H87M

Amalgamus, sorry, something seems to go wrong with the way you compute the results; the double checking was not working this time ?!  here the computation to be done on an excel cell     MOD(4867548; 9) + 1  = 7
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: Amalgamus on January 19, 2015, 07:01:22 pm
My apologies SwissAlps. I took the last number of last month instead of January.

I am also on the moon cause I won The Jackpot. But I am wondering where the money from the Jackpot comes (the first 3000 Nxt) and as a long term investor in casinotool I wouldn't like you to dip into your own pocket, so let me know...
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 20, 2015, 08:01:58 am
CasinoTool info
Payments have just been made to both winners of the CasinoTool Weekly Lottery W1.

The new W1 Jackpot is now 90 NXT !
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 20, 2015, 08:38:27 am
My apologies SwissAlps. I took the last number of last month instead of January.

I am also on the moon cause I won The Jackpot. But I am wondering where the money from the Jackpot comes (the first 3000 Nxt) and as a long term investor in casinotool I wouldn't like you to dip into your own pocket, so let me know...

CasinoTool is a tightly closed system
Just to appease your fears concerning my own pocket, on Dec.22, I made a loan to the CasinoTool account NXT-FKSF-53F7-TQ2A-GJHU9, of 1'200 NXT, so that the CasinoTool asset could be created. This loan without interest, I will someday transfer back to my own account.

Now we are operating on a very closed system, revenues keep coming from the lotteries and the roulette to the CasinoTool account; this account will keep growing, and I hope very fast, if these operations take a little speed. The first 3'000 NXT jackpot has been financed by this same account. The following jackpots, currently 90 NXT, are financed by taking 10 percent of the weekly bets, this is self-financing.

Today, from the Sunday Jan.18 draw, the NXT-FKSF-53F7-TQ2A-GJHU9 CasinoTool account has received following revenues :

Not a single NXT goes astray (and everybody can check this on the blockchain).

If you buy some CasinoTool asset, then you never lose by playing Lottery or Roulette; your money goes from your left pocket to your right pocket. Isn't it nice ?  ;D
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: Amalgamus on January 20, 2015, 11:08:04 am

If you buy some CasinoTool asset, then you never lose by playing Lottery or Roulette; your money goes from your left pocket to your right pocket. Isn't it nice ?  ;D


That's exactly what I said on a thread yesterday.

Thanks for the 3060 Nxt I received. I still can't believe my luck!  :D
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 24, 2015, 11:13:25 am
CasinoTool

Today Saturday is the last day if you want to be part of this week following games :

Draw tomorrow Sunday evening (don't know the exact the time), see http://www.alllotto.com.pt/ (http://www.alllotto.com.pt/)
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 25, 2015, 01:26:40 pm
CasinoTool The Weekly Lottery

Here, the latest details of all W1 tickets of the week ending on Saturday, Jan.24 2015
Lottery draw on Sunday evening, Jan.25 2015

TicketNr    AccountJackpotNr
1NXT-Y7B3-DAYW-FH6R-7YY9Q     invalid because it is encrypted
2NXT-C7XD-MPJS-2E8E-BKCDY     036
3NXT-SBSP-BPHH-E7BR-9USXU     007
4NXT-6H9P-S9AJ-QYDP-84E4Y     451
5NXT-PYRJ-PZ6R-S6UV-9EGC8     666
6NXT-GMP6-4RRF-TJDX-4ZDYC     234
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 26, 2015, 07:51:34 am
CasinoTool The Weekly Lottery

Draw Sunday Jan.25   3502407   

From this, we derive
 JackpotNr 407
 Winning TicketNr 4

Nobody has won the jackpot.

There were 6 bets, 600 NXT repartition :
.60 NXT to the W1 jackpot, the new jackpot for week ending Saturday Jan.31th is now 150 NXT
.540 NXT to TicketNr 4  NXT-6H9P-S9AJ-QYDP-84E4Y
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on January 31, 2015, 05:22:03 pm
CasinoTool

Today Saturday is the last day if you want to be part of this week following games :

Draw tomorrow Sunday evening (don't know the exact the time), see

http://www.alllotto.com.pt/ (http://www.alllotto.com.pt/)
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: xiahui135 on February 01, 2015, 12:33:51 am
there are some other dices. If these game can integrate to one tool or page, then it will be very useful for who play games. Just share the users.
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: Amalgamus on February 02, 2015, 02:47:37 am
there are some other dices. If these game can integrate to one tool or page, then it will be very useful for who play games. Just share the users.
Good point. These games need more visibility.
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on February 02, 2015, 01:45:31 pm
CasinoTool The M1 Monthly Lottery

Draw Sunday Feb.01   0680389   

From this, we derive
 JackpotNr 389
 Winning TicketNr 7

The jackpot for January was empty.

There were 11 bets, 1100 NXT repartition :


1NXT-SBSP-BPHH-E7BR-9USXU
2 NXT-FKSF-53F7-TQ2A-GJHU9
3 NXT-ECBU-G3RB-W4HN-DD75D
4 NXT-D8EY-9VDS-TMUY-GMN59
5 NXT-QW4Y-76KT-FN6Z-54RRY
6 NXT-MAEF-Y5ND-K63M-4ZPCG
7 NXT-UAPC-3T43-FFT6-HW5BZ
8 NXT-XFAH-7N9C-6AS6-B3GLZ
9 NXT-9ZX2-YW4S-2YY5-ERV8E
10 NXT-C7XD-MPJS-2E8E-BKCDY
11 NXT-Y7B3-DAYW-FH6R-7YY9Q
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: capodieci on February 02, 2015, 01:48:32 pm
From this, we derive
 JackpotNr 389
 Winning TicketNr 7

Ah, didn't win, but glad I been part of this :)
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on February 02, 2015, 01:53:42 pm
CasinoTool The Weekly W1 Lottery

Draw Sunday Feb.01   0680389   

From this, we derive
 JackpotNr 389
 Winning TicketNr 1

Nobody has won the W1 jackpot.

There were 1 bet, 100 NXT repartition :


TicketNr    Account  JackpotNr
1NXT-Y7B3-DAYW-FH6R-7YY9Q  162

Playing alone a lottery  ???, AND winning !  of course ;D ;D ;D !
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on February 02, 2015, 02:11:05 pm
there are some other dices. If these game can integrate to one tool or page, then it will be very useful for who play games. Just share the users.
Good point. These games need more visibility.
I agree with this.

These games are statistically very fair for the players, so they should deserve to be successful.

We should have an easy way to play and select the game we want to play with. It would be nice to be able to do that and hide from the user the effective sending of the bets to the various accounts (M1, W1, R1, etc...).

But keep in mind the most important point of these TestCase games, THEY ONLY REFER TO A NXT ACCOUNT and the Blockchain. This means that once they are started and people begin using them regularly, nobody knows the accounts owners, and as long as they provide a good service, they are just unstoppable ! Of course, I am not speaking here about the TestCase games, they belong to CasinoTool, everybody knows that !
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on February 03, 2015, 06:02:35 pm
CasinoTool

Payments done. A bit late, sorry !
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: whatnxt on February 03, 2015, 07:33:33 pm
Received, thanks and good luck to you all.
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on February 08, 2015, 08:04:49 am
CasinoTool

A special message to the winners of W1 Lottery ending Saturday Feb.7th. and Saturday Feb.14th. !!!

During the next few days, I have the good luck to go sailing. Coming back Feb.18th. And because everything is done manually, I will treat it when I come back.

Good luck to all.
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on February 19, 2015, 02:30:18 am
CasinoTool The Weekly W1 Lottery

Closing date for the bets : Saturday Feb.07th
Draw Sunday Feb.08th   3911799

From this, we derive
 JackpotNr 799
 Winning TicketNr 1

Nobody has won the W1 jackpot.

There were 1 bet, 100 NXT repartition :


TicketNr    Account  JackpotNr
1NXT-Y7B3-DAYW-FH6R-7YY9Q  162

Playing alone a lottery  ???  Where are the players ?  :( :( :(
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on February 19, 2015, 06:38:41 am
CasinoTool

Payments done !
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on February 25, 2015, 07:19:22 am
CasinoTool The Weekly W1 Lottery

-PAYMENT DONE-

Week from Sunday Feb.15th to Saturday Feb.21th
Draw Sunday Feb.22th   7 914 511

From this, we derive
 JackpotNr 511
 Winning TicketNr 1

Nobody has won the W1 jackpot.

There were 5 bets, 500 NXT repartition :


TicketNr    Account  JackpotNr
1NXT-Y7B3-DAYW-FH6R-7YY9Q  162
2NXT-6H9P-S9AJ-QYDP-84E4Y  140
3NXT-8436-CDK9-VVDD-8H87M  201
4NXT-AZ9B-4KUK-FEG7-BBQ9N  067
5NXT-C7XD-MPJS-2E8E-BKCDY  852
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on February 27, 2015, 07:55:25 am
CasinoTool The Weekly W1 Lottery

Closing date for the bets : Saturday Feb.28th

CasinoTool The Monthly M1 February Lottery

Closing date for the bets : Saturday Feb.28th
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on March 02, 2015, 09:36:36 am
CasinoTool The Weekly W1 Lottery

Week from Sunday Feb.22th to Saturday Feb.28th

Last bet Saturday Feb.28th
Draw Sunday Mar.1th   7 888 735

From this, we derive
 JackpotNr 735
 Winning W1 Weekly Lottery TicketNr 4

There were 4 bets :

TicketNr    Account  JackpotNr
1NXT-Y7B3-DAYW-FH6R-7YY9Q  278
2NXT-C7XD-MPJS-2E8E-BKCDY  632
3NXT-AZ9B-4KUK-FEG7-BBQ9N  JackpotNr missing
4NXT-8436-CDK9-VVDD-8H87M  513

The jackpot for the week was 220 NXT. Nobody has won the jackpot.

Here, the 400 NXT repartition :


Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on March 02, 2015, 09:40:00 am
CasinoTool The M1 Monthly Lottery


February 2015

Last bet Saturday Feb.28th
Draw Sunday Mar.1th   7 888 735

From this, we derive
 JackpotNr 735
 Winning TicketNr 4

There were 4 bets :

TicketNr    Account  JackpotNr
1NXT-Y7B3-DAYW-FH6R-7YY9Q  042
2NXT-C7XD-MPJS-2E8E-BKCDY  250
3NXT-AZ9B-4KUK-FEG7-BBQ9N  878
4NXT-8436-CDK9-VVDD-8H87M  512

The jackpot for February was 110 NXT. Nobody has won the jackpot.

Here, the 400 NXT repartition :


Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on March 02, 2015, 09:59:37 am
Il y a 17 paris en tout:
9 à la roulette
4 à la loterie de la semaine
4 à la loterie du mois

Pour chaque jeu gain de 20000 CasinoTool/17=1176

Nombre de CasinoTool par addresse:

NXT-Y7B3-DAYW-FH6R-7YY9Q: 8 (6 paris à la roulette, 1 pari loterie semaine, 1 pari loterie mois) 1176x8=9408 CasinoTool

NXT-8436-CDK9-VVDD-8H87M: 5 (3 paris à la roulette, 1 pari loterie semaine, 1 pari loterie mois) 1176x5=5880 CasinoTool

NXT-AZ9B-4KUK-FEG7-BBQ9N: 2 (1 pari loterie semaine, 1 pari loterie mois) 1176x2=2352 CasinoTool

NXT-C7XD-MPJS-2E8E-BKCDY: 2 (1 pari loterie semaine, 1 pari loterie mois) 1176x2=2352 CasinoTool

Amalgamus has been giving a free gift to each player of R1 Roulette, M1 Monthly Lottery and W1 weekly lottery.

Thank you to Amalgamus !  :)
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: Amalgamus on March 02, 2015, 03:41:31 pm
Nice to know some people appreciate the giveaway. :D

This week I am going to do it on this forum.

Giveaway of 20k CasinoTool assets to share between all bets that will be made on the weekly lottery and the roulette for the games ending on the 8th of March.

I hope it will have more success than on the French forum.

The more bets you make the more CasinoTool you'll receive.

Enjoy your games. :D


Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on March 03, 2015, 09:44:16 am
Jackpot Rules
  • When you buy a lottery ticket, you can add in the message a 2 digits number from 00 to 99
  • The weekly draw nr is 7 digits large, it was for example 9072747, and our jackpot nr are the last two digits, so the jackpot would be split between all tickets who have 47 in their message
  • If no winners, the jackpot goes to the next week draw
  • Ten percent of the prize money is set aside for the following jackpot, this means the jackpot start to increase if no winners
  • Make sure that your message is NOT encrypted, the other players must have a way to see them

We have now new rules to crack the jackpot on the W1 and M1 lottteries; starting now, you only need to find the last two digits of the weekly draw !  It makes it a lot easier.  Good Luck !
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: Amalgamus on March 08, 2015, 10:44:51 am
This week there were 16 bets on CasinoTool:

4 on the Weekly Lottery
12 on the Roulette

For each bet placed, there is a bounty of 20000/16 = 1250 CasinoTool


Number of CasinoTool per account:

NXT-Y7B3-DAYW-FH6R-7YY9Q: 7 (6 bets for the Roulette, 1 bet for the Weekly Lottery) 1250x7= 8750 CasinoTool

NXT-8436-CDK9-VVDD-8H87M: 4 (3 bets for the Roulette, 1 bet for the Weekly Lottery) 1250x4= 5000 CasinoTool

NXT-AZ9B-4KUK-FEG7-BBQ9N: 4 (3 bets for the Roulette, 1 bet for the Weekly Lottery) 1250x4= 5000 CasinoTool

NXT-C7XD-MPJS-2E8E-BKCDY: 1 (1 bet for the Weekly Lottery)                                  1250x1= 1250 CasinoTool

The giveaway doesn't seem to attract more players for the time being.
I still will be giving a 20k CasinoTool bounty for the following week as I have still too many CasinoTool in my account.

So get ready and play either the Roulette or the Lottery Weekly for the draw on the Sunday 15th of March.
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on March 09, 2015, 05:45:19 am
CasinoTool The Weekly W1 Lottery

Week from Sunday Mar.1st to Saturday Mar.7th

Last bet Saturday Mar.7th
Draw Sunday Mar.8th   0 806 396

From this, we derive
 JackpotNr 96
 Winning W1 Weekly Lottery TicketNr 1

There were 4 bets :

TicketNr    Account  JackpotNr
1NXT-C7XD-MPJS-2E8E-BKCDY  33
2NXT-Y7B3-DAYW-FH6R-7YY9Q  19
3NXT-8436-CDK9-VVDD-8H87M  50
4NXT-AZ9B-4KUK-FEG7-BBQ9N  JackpotNr missing

The jackpot for the week was 260 NXT. Nobody has won the jackpot.

Here, the 400 NXT repartition :



- PAYMENT DONE -
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: Amalgamus on March 15, 2015, 06:49:49 am
This week there were 13 bets on CasinoTool:

3 on the Weekly Lottery
10 on the Roulette

For each bet placed, there is a bounty of 20000/13 = 1538 CasinoTool


Number of CasinoTool per account:

NXT-Y7B3-DAYW-FH6R-7YY9Q: 7 (6 bets for the Roulette, 1 bet for the Weekly Lottery) 1538x7= 10766 CasinoTool

NXT-AZ9B-4KUK-FEG7-BBQ9N: 4 (3 bets for the Roulette, 1 bet for the Weekly Lottery) 1538x4= 6152 CasinoTool

NXT-C7XD-MPJS-2E8E-BKCDY: 2 (1 bet for the Roulette, 1 bet for the Weekly Lottery)   1538x2= 3076 CasinoTool

I won't be giving out any more assets of CasinoTool for the time being as it doesn't attract many more people to play. I keep sending back the CasinoTool to myself most of the time  :D

It's really a pity because the assets cover the cost of the bet and then the players would actually bet for free, with the possibility of winning. May be another time I will give a better bounty and give it more visibility by starting a new thread. I call it quits for the time being.

I still believe more assetholders should be playing just to bring more value to their investment and gain more interest by the rest of the community.

Good luck with the game.  :)
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on March 17, 2015, 07:17:41 am
CasinoTool The Weekly W1 Lottery

Week from Sunday Mar.8th to Saturday Mar.14th

Last bet Saturday Mar.14th
Draw Sunday Mar.15th   5 170 570

From this, we derive
 JackpotNr 70
 Winning W1 Weekly Lottery TicketNr 2

There were 3 bets :

TicketNr    Account  JackpotNr
1NXT-Y7B3-DAYW-FH6R-7YY9Q  19
2NXT-C7XD-MPJS-2E8E-BKCDY  33
3NXT-AZ9B-4KUK-FEG7-BBQ9N  JackpotNr missing

The jackpot for the week was 300 NXT. Nobody has won the jackpot.

Here, the 300 NXT repartition :



-PAYMENT DONE-
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on March 20, 2015, 06:27:30 am
block 380000:25dafc3db2f28d4804838c008765ea0e2365afab31e15023f4aeb067fc4b825c
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on March 24, 2015, 05:57:08 am
CasinoTool The Weekly W1 Lottery

Week from Sunday Mar.15th to Saturday Mar.22th

Last bet Saturday Mar.22th
Draw Sunday Mar.23th   8 851 971

From this, we derive
 JackpotNr 71
 Winning W1 Weekly Lottery TicketNr 1

There were 3 bets :

TicketNr    Account  JackpotNr
1NXT-8436-CDK9-VVDD-8H87M  55
2NXT-Y7B3-DAYW-FH6R-7YY9Q  19
3NXT-C7XD-MPJS-2E8E-BKCDY  33

The jackpot for the week was 300 NXT. Nobody has won the jackpot.

Here, the 300 NXT repartition :



-PAYMENT DONE-
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on March 27, 2015, 11:10:20 am
CasinoTool : the W1, M1 and Y1 lotteries

Now that we are able to get a true random number for each block of the blockchain, we do not need anymore to use the Joker draw of the Portuguese National Lottery, that was on http://www.alllotto.com.pt/ (http://www.alllotto.com.pt/). We use now always the first block of the next period; this means that for the Weekly W1 Lottery that closes every saturday midnight, we are using the first block of sunday. And for Monthyl M1 Lottery the first block of the following month. Same for the Yearly Y1 lottery. 
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on March 30, 2015, 01:15:19 pm
CasinoTool The Weekly W1 Lottery

Week from Sunday Mar.23th to Saturday Mar.29th

Last bet Saturday Mar.23th

Draw, first block of Sunday
   block=390748
   id=10147175265416671974
   timestamp=42293784
   date=Sun, 29 Mar 2015 00:16:24 GMT
   hashchain=a8e1f64f8b3c474a02d8d6332e9e9bccd798dc8d41073cc3628b901e3de7c253
   randomHash=8dcbd9bc5789329a95f191f2b0218d556d87260afecb63841d4e0a524d4affee
   shorthash=4affee
   random=4915182

From this, we derive
 JackpotNr 82
 Winning W1 Weekly Lottery TicketNr 1

There were 2 bets :

TicketNr    Account  JackpotNr
1NXT-Y7B3-DAYW-FH6R-7YY9Q  19
2NXT-6H9P-S9AJ-QYDP-84E4Y  12

The jackpot for the week was 360 NXT. Nobody has won the jackpot.

Here, the 300 NXT repartition :



-PAYMENT DONE-
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on April 04, 2015, 10:08:56 am
CasinoTool The M1 Monthly Lottery

 For the M1 March 2015 Monthly Lottery, there were following bets :

TicketNr    Account  JackpotNr
1NXT-Y7B3-DAYW-FH6R-7YY9Q  34
2NXT-6H9P-S9AJ-QYDP-84E4Y  42

block=393137,
 timestamp=42552152,
 date=Wed, 01 Apr 2015 00:02:32 GMT
 id=225256448352768316
 hashchain=65f6fd8622d03516410c784c6782a122e6f6e3c23c50534d8a06fe43e0baf02f
 randomHash=8daffda1fd8df22c95ea2c542a1b8da73afa85a9bfb11c498625e91f60b47d85,
 shorthash=b47d85
 random=11828613
 jackpotNr=13
 rouletteDraw=09
 M1WinningTicketNr=2
 

The jackpot for the month was 150 NXT. Nobody has won the jackpot.

Here, the 200 NXT repartition :



-PAYMENT DONE-
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on April 07, 2015, 07:25:17 am
CasinoTool programs

For some applications, it is obvious that we need to store them in a free space that is not subject to some byzantine administrations decisions.

I have stored a CasinoBoot program as the second AM of the account NXT-WQFQ-W64L-HT3P-C9YNM. It is encrypted but the key to the account is "a", so you can try this in three easy steps :


If you have some CORS problems, edit the nxt-default.properties and set CORS=true

This is so easy that even a beginner like me can do this (I am really not fluent at all in those Java, JavaScript and HML stuff).

Nice, is it not  ;)
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: whatnxt on April 07, 2015, 09:53:17 am
If you have some CORS problems, edit the nxt-default.properties and set CORS=true

This is so easy that even a beginner like me can do this (I am really not fluent at all in those Java, JavaScript and HML stuff).

Nice, is it not  ;)

There are not many beginners like you :)

Yes this is indeed a great use of the properties of the blockchain.
There may be an issue if summary block chains are used in low memory devices. This is because there is no way to tell if the message is needed or not. That is for the future though, for now its great.

Only problem is, it does not appear to do anything for me. I get the boot button but clicking it does nothing on a windows machine with the supernet version of the client running.
 
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on April 08, 2015, 06:25:32 am
CasinoTool programs

For some applications, it is obvious that we need to store them in a free space that is not subject to some byzantine administrations decisions.

I have stored a CasinoToolBoot program as the second AM of the account NXT-WQFQ-W64L-HT3P-C9YNM. It is encrypted but the key to the account is "a", so you can try this in three easy steps :
  • copy the message to notepad
  • save it as CasinoToolBoot.html
  • run it in your browser (your local NRS must also be running)


If you have some CORS problems, edit the nxt-default.properties and set CORS=true

This is so easy that even a beginner like me can do this (I am really not fluent at all in those Java, JavaScript and HML stuff).

Nice, is it not  ;)
Yes this is indeed a great use of the properties of the blockchain.
There may be an issue if summary block chains are used in low memory devices. This is because there is no way to tell if the message is needed or not. That is for the future though, for now its great.

Only problem is, it does not appear to do anything for me. I get the boot button but clicking it does nothing on a windows machine with the supernet version of the client running.

If the boot button does nothing, it is probably because we try to access locally "http://localhost:7876" and CORS=false in the nxt.property file. I have added now a new boot message that uses "http://jnxt.org:7876" (it's the 3rd message) in the account NXT-WQFQ-W64L-HT3P-C9YNM (private key "a"). This boot program is working even if you do not have a local NRS running; you only need internet connection and trust that jnxt.org is sending the correct datae (which we do, of course !   ;D).
Title: Re: CasinoTool : THE LOTTERY PROJECT
Post by: SwissAlps on April 09, 2015, 08:02:34 am
CasinoTool programs

For some applications, it is obvious that we need to store them in a free space that is not subject to some byzantine administrations decisions.

This is the second program that CasinoTool has stored directly on the chain, using the simple AM. The first one was two days ago, see https://nxtforum.org/index.php?topic=7143.msg172657#msg172657 (https://nxtforum.org/index.php?topic=7143.msg172657#msg172657). To see this program, you have to run a very simple CasinoToolBoot program that you will find as the last AM of the account NXT-WQFQ-W64L-HT3P-C9YNM. You can try this in three easy steps :


And this very simple boot can execute big programs, stored on many AM. If we get the 40kb AM length, the price should be adapted, ie 40NXT for 40000 bytes, else we will get the blockchain very quickly bloated, IMHO  (of course, it was expensive, we had to pay 1NXT by message  ;D).
elective-stereophonic
elective-stereophonic
assembly
assembly