1 |
movement = Hash(default_value=0)
|
2 |
winner = Variable()
|
3 |
propietario = Variable()
|
4 |
jugador = Variable()
|
5 |
computadora = Variable()
|
6 |
|
7 |
@construct
|
8 |
def seed():
|
9 |
movement['piedra'] = 1
|
10 |
movement['papel'] = 2
|
11 |
movement['tijera'] = 3
|
12 |
jugador.set = movement['piedra']
|
13 |
computadora.set = movement['piedra']
|
14 |
propietario.set = ctx.caller
|
15 |
|
16 |
|
17 |
@export
|
18 |
def jugador():
|
19 |
resultado = jugador.get
|
20 |
return str(resultado)
|
21 |
|
22 |
@export
|
23 |
def propietario():
|
24 |
resultado = propietario.get
|
25 |
return str(resultado) |
e30000000000000000000000000500000040000000736a000000650064006401640264038d035a0165026401640464058d025a0365026401640664058d025a0465026401640764058d025a0565026401640864058d025a066409640a84005a07650864018301640b6407840083015a09650864018301640c6406840083015a0a640d5300290ee900000000da0a636f6e5f706f636f5f32da086d6f76656d656e742903da0d64656661756c745f76616c7565da08636f6e7472616374da046e616d65da0677696e6e6572290272050000007206000000da0b70726f706965746172696fda076a756761646f72da0b636f6d70757461646f726163000000000000000000000000030000004300000073380000006401740064023c006403740064043c006405740064063c0074006402190074015f0274006402190074035f0274046a0574065f026400530029074ee901000000da06706965647261e902000000da05706170656ce903000000da0674696a6572612907da0a5f5f6d6f76656d656e74da095f5f6a756761646f72da03736574da0d5f5f636f6d70757461646f7261da03637478da0663616c6c6572da0d5f5f70726f706965746172696fa90072180000007218000000da00da045f5f5f5f08000000730c00000000010801080108010a010a01721a000000630000000000000000010000000200000043000000730e00000074006a017d0074027c008301530029014e29037212000000da03676574da037374722901da09726573756c7461646f721800000072180000007219000000720900000011000000730400000000020601630000000000000000010000000200000043000000730e00000074006a017d0074027c008301530029014e29037217000000721b000000721c0000002901721d0000007218000000721800000072190000007208000000170000007304000000000206014e290bda04486173687211000000da085661726961626c65da085f5f77696e6e6572721700000072120000007214000000721a000000da085f5f6578706f7274720900000072080000007218000000721800000072180000007219000000da083c6d6f64756c653e01000000730e0000000e010c010c010c010c0308091006