can you explain in a few words...
how AT could be use to implement a simple gambling like lottery or dice game??
Our very first "use case" was a Lottery (which runs on Burst with a new draw once per week) so the raw assembly code for it is as follows:
00000000* BNZ $00000000 :0000004c
00000006 SET @00000001 #0000002e90edd000
00000013 FUN @00000000 0x0301
0000001a SET @00000002 $00000000
00000023 SET @00000003 #0000000000000000
00000030 SET @00000004 #0000000000002760
0000003d FUN @00000000 0x0406 $00000000 $00000004
0000004c FUN 0x0304 $00000002
00000053 FUN @00000004 0x0125
0000005a BNZ $00000004 :00000061
00000060 FIN
00000061 FUN @00000005 0x0307
00000068 BLT $00000005 $00000000 :00000077
00000072 JMP :00000110
00000077 FUN @00000006 0x0306
0000007e FUN 0x030a
00000081 FUN @00000004 0x0104
00000088 FUN 0x030b
0000008b FUN @00000007 0x0104
00000092 BEQ $00000007 $00000004 :00000102
0000009c FUN @00000004 0x0305
000000a3 BNZ $00000004 :000000f4
000000a9 BEQ $00000006 $00000001 :000000b8
000000b3 JMP :00000156
000000b8 FUN @00000004 0x0308
000000bf FIZ $00000004
000000c4 FUN 0x030a
000000c7 FUN 0x0110 $00000004
000000ce FUN 0x0405
000000d1 ADD @00000003 $00000001
000000da BLE $00000004 $00000008 :000000f4
000000e4 SET @00000008 $00000004
000000ed FUN @00000009 0x0104
000000f4 SET @00000002 $00000005
000000fd JMP :0000004c
00000102 ADD @00000003 $00000006
0000010b JMP :000000f4
00000110 BZR $00000003 :00000148
00000116 BZR $00000008 :00000148
0000011c FUN 0x0116 $00000009
00000123 FUN @0000000a 0x0300
0000012a BEQ $0000000a $00000000 :00000140
00000134 FUN 0x0402 $00000003
0000013b JMP :00000184
00000140 FUN 0x0403
00000143 JMP :00000184
00000148 SET @00000002 $00000005
00000151 JMP :00000023
00000156 FUN 0x030a
00000159 BLE $00000006 $00000001 :00000178
00000163 SUB @00000006 $00000001
0000016c FUN 0x0402 $00000006
00000173 JMP :000000b8
00000178 FUN 0x0402 $00000006
0000017f JMP :000000f4
00000184 SET @00000002 $00000000
0000018d SET @00000008 #0000000000000000
0000019a SET @00000009 #0000000000000000
000001a7 JMP :00000023
Perhaps @vbcs might post a nicer version for you that was created using AT Assembler (which has variable *names* and *labels* rather than just addresses as yes I realise that the above is more than a little hard to decipher).
We are working on the idea of some quicker random games of chance and will be sure to let people know when we have a simple example that they can study (we might perhaps make a simple "highest random value wins" for two consecutive players).
One limitation that AT hosts do have is how quickly they can generate "random" data (on Burst that is currently set at 14 blocks from memory) so you could have a dice kind of game but it won't be "instant" (the same AT could work much faster on a blockchain that can produce entropy quicker).