Skip to content

Commit f49c4d7

Browse files
committed
Fixed bug where Drawdeck variable was not being
decremented correclty when drawing cards from the deck. added a version number in Atari Client, so I know which version is being used by others when they report bugs. removed debuging Get K for AI folding
1 parent 780d88a commit f49c4d7

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

Client/Atari/FujiLlama.bas

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
' @version September 2025
55
' This is a client for the Fuji-Llama game server
66

7+
8+
79
' FujiNet AppKey settings. These should not be changed
810
AK_LOBBY_CREATOR_ID = 1 ' FUJINET Lobby
911
AK_LOBBY_APP_ID = 1 ' Lobby Enabled Game
@@ -212,7 +214,7 @@ DATA colorThemeMap() = $B4,$88, $84,$08, $22,$28, $04,$08,' NTSC
212214
DATA = $A4,$78, $74,$08, $12,$18, $04,$08 ' PAL
213215
colorTheme=-1
214216

215-
217+
gameversion=1
216218
serverEndpoint$="N:https://fujillama.spysoft.nz"
217219
'serverEndpoint$="N:http://192.168.68.100:8080" ' Local server for testing
218220

@@ -360,14 +362,14 @@ PROC MoveAnimation
360362
@POS 1,2: @PrintUpper &PlayerName$(a):@printUpper &" is:"
361363
if dummy$="drew"
362364
@POS 1,3: @PrintUpper &"Drawing"
365+
inc Drawdeck
363366
@UpdateScreenBuffer
364367
@DrawCardFromDeck xStart(a),yStart(a),9
365368
elif dummy$="play"
366369
@POS 1,3: @PrintUpper &"Discarding"
367370
@PlayCard a
368371
elif dummy$="fold"
369372
@POS 1,3: @PrintUpper &"Folding"
370-
get K
371373
Endif
372374
EndProc
373375

@@ -417,6 +419,7 @@ PROC TitleScreen
417419
X=(32-len(MyName$))/2
418420
@POS X,18:@Print &"WELCOME ":@Print &MyName$
419421
@POS 7,20:@Print &"PRESS ANY KEY TO CONTINUE"
422+
@POS 37,25:@Print &"V0": @PrintVAL gameversion
420423
@POS 5,25:@Print &"H-HELP C-COLOR N-NAME Q-QUIT"
421424
@DrawBufferEnd
422425
@ShowScreen
@@ -960,7 +963,7 @@ Proc DealCards
960963
data xend4()=38,36,34,32,30,28
961964
data xend5()=38,36,34,32,30,28
962965
for cardnumber=1 to 6
963-
for player=0 to 5
966+
for player=0 to 5
964967
if player=0 and playerName$(player)<>"" then @DrawCardFromDeck xend0(cardnumber-1),yend(player),VAL(PlayerHand$(player)[cardnumber,1])
965968
if player=1 and playerName$(player)<>"" then @DrawCardFromDeck xend1(cardnumber-1),yend(player),9
966969
if player=2 and playerName$(player)<>"" then @DrawCardFromDeck xend2(cardnumber-1),yend(player),9
@@ -1035,6 +1038,9 @@ ENDPROC
10351038

10361039
Proc DrawCardFromDeck _endX _endY _card
10371040
SOUND 0,121,1,8
1041+
dec Drawdeck
1042+
@POS 19,13: @PrintVal Drawdeck
1043+
@UpdateScreenBuffer
10381044
dx=18:dy=10: endX=_endX : endY=_endY : card=_card
10391045
xchange=-1:ychange=-1
10401046
if endX>dx then xchange=1
@@ -1050,8 +1056,7 @@ Proc DrawCardFromDeck _endX _endY _card
10501056
@DrawCard dx,dy,card
10511057
endif
10521058
until dx=endx and dy=endy
1053-
dec Drawdeck
1054-
@POS 19,13: @PrintVal Drawdeck
1059+
' @POS 19,13: @PrintVal Drawdeck
10551060
@UpdateScreenBuffer
10561061
sound
10571062
ENDPROC

Client/Atari/bin/FujiLlama.xex

12 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)