fix bug with reshuffling waste
This commit is contained in:
parent
1f8ec660da
commit
4a35e9795a
11
kodiak.tal
11
kodiak.tal
|
@ -165,8 +165,7 @@
|
||||||
POP2 JMP2r ( )
|
POP2 JMP2r ( )
|
||||||
|
|
||||||
@deal-tableau ( -> )
|
@deal-tableau ( -> )
|
||||||
.stock #34 find-top ( top^ )
|
top-stock LIT2r -tableau 00 ( top^ [tab^ 0^] )
|
||||||
LIT2r -tableau 00 ( top^ [tab^ 0^] )
|
|
||||||
&loop STH2kr deal-column ( top2^ [tab^ c^] )
|
&loop STH2kr deal-column ( top2^ [tab^ c^] )
|
||||||
LIT2r 1301 ADD2r ( top2^ [tab+19^ c+1^] )
|
LIT2r 1301 ADD2r ( top2^ [tab+19^ c+1^] )
|
||||||
STHkr #07 LTH ?&loop ( top2^ [tab+19^ c+1^] )
|
STHkr #07 LTH ?&loop ( top2^ [tab+19^ c+1^] )
|
||||||
|
@ -448,14 +447,13 @@
|
||||||
|
|
||||||
@deal-from-stock
|
@deal-from-stock
|
||||||
.stock LDZk ?&deal POP !reshuffle-stock ( root^ )
|
.stock LDZk ?&deal POP !reshuffle-stock ( root^ )
|
||||||
&deal DUP #34 find-top ( root^ src^ )
|
&deal DUP #34 find-top top-waste INC STH ( root^ src^ [dst^] )
|
||||||
.waste #18 find-top INC STH ( root^ src^ [dst^] )
|
|
||||||
|
|
||||||
LDZk #40 EOR STHkr STZ #00 OVR STZ ( root^ src^ [dst^] ; dst<-src, src<-0 )
|
LDZk #40 EOR STHkr STZ #00 OVR STZ ( root^ src^ [dst^] ; dst<-src, src<-0 )
|
||||||
#01 SUB INCr GTHk ?&done ( root^ src-1^ [dst+1] )
|
EQUk ?&done #01 SUB INCr ( root^ src-1^ [dst+1] )
|
||||||
|
|
||||||
LDZk #40 EOR STHkr STZ #00 OVR STZ ( root^ src-1^ [dst+1^] ; dst+1<-src-1, src-1<-0 )
|
LDZk #40 EOR STHkr STZ #00 OVR STZ ( root^ src-1^ [dst+1^] ; dst+1<-src-1, src-1<-0 )
|
||||||
#01 SUB INCr GTHk ?&done ( root^ src-2^ [dst+2] )
|
EQUk ?&done #01 SUB INCr ( root^ src-2^ [dst+2] )
|
||||||
|
|
||||||
LDZk #40 EOR STHkr STZ #00 OVR STZ ( root^ src-2^ [dst+2^] ; dst+2<-src-2, src-2<-0 )
|
LDZk #40 EOR STHkr STZ #00 OVR STZ ( root^ src-2^ [dst+2^] ; dst+2<-src-2, src-2<-0 )
|
||||||
&done POP2 POPr JMP2r ( )
|
&done POP2 POPr JMP2r ( )
|
||||||
|
@ -464,7 +462,6 @@
|
||||||
.Mouse/x DEI2 #0008 LTH2 ?&no1 ( ; x<8 )
|
.Mouse/x DEI2 #0008 LTH2 ?&no1 ( ; x<8 )
|
||||||
.Mouse/x DEI2 #0017 GTH2 ?&no1 ( ; x>=23 )
|
.Mouse/x DEI2 #0017 GTH2 ?&no1 ( ; x>=23 )
|
||||||
.Mouse/y DEI2 #0020 GTH2 ?&no1 ( ; y>=32 )
|
.Mouse/y DEI2 #0020 GTH2 ?&no1 ( ; y>=32 )
|
||||||
top-stock STHk #00 EQU ?&no2 ( [z^] ; unset card )
|
|
||||||
deal-from-stock draw #01 JMP2r ( 1^ )
|
deal-from-stock draw #01 JMP2r ( 1^ )
|
||||||
&no2 POPr &no1 #00 JMP2r ( 0^ )
|
&no2 POPr &no1 #00 JMP2r ( 0^ )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue