Z80-21 Yet Another "BlackJack"

General games-related topics
User avatar
sanello
Posts: 100
Joined: Sat Jul 23, 2022 9:26 pm

Re: Z80-21 Yet Another "BlackJack"

Post by sanello »

I am confusing myself trying to go back and forth looking at each set of codes. I think I am going to leave this thread alone for a while so I can improve my own version with some of the things I've learned here. I want to address things like actually having multiple decks of cards and some other things. Making sure I can split when I have enough money etc etc
-sanello
User avatar
XavSnap
Posts: 1940
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Z80-21 Yet Another "BlackJack"

Post by XavSnap »

Hi Sanello,

Yes, on a true ZX81 you can't have a look to the hole of the listing:
new2.bas.txt
(17.64 KiB) Downloaded 93 times
ZxPrinter output;
Blackjack_Z8021.pdf
(1.07 MiB) Downloaded 99 times
Last update:
BLACKJACKZ8021.P
(13.59 KiB) Downloaded 97 times
ps: "2" to force player cards to a natural blackjack, type "S" after "2"
Blackjack from player & dealer = "draw push" (not a "loser")
"Split" infos updated.

Have fun as soon as possible.
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
Andre
Posts: 46
Joined: Sat Jun 21, 2008 7:28 pm
Location: Chateauguay-Quebec-Canada
Contact:

Re: Z80-21 Yet Another "BlackJack"

Post by Andre »

Previously S. Anello mentioned a program "JOTTO" that he tried to adapt to the ZX81 but was running out of memory(16K). I told him I would look to the possibility to adapt the program to the ZX. Since the version he supplied me was in 3 parts, made for a PC running under QBASIC. Eventualy I will try to combine all 3 parts into one part. Meanwhile here is the first part "the rules". It will take a little longer to get a running 2nd part. Have fun!
Attachments
JOTTORUL.P
(2.38 KiB) Downloaded 83 times
The ZX81 pleasure is spreading, ANDRE***
http://zx81.ordi5.free.fr/andre
http://zx81.de/andre
User avatar
XavSnap
Posts: 1940
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Z80-21 Yet Another "BlackJack"

Post by XavSnap »

Yep,

Interesting program to convert to ZX81...
In "DONE.TXT", 13725 bytes to store in the BASIC and the VAR memory and a long way to scan them.

We had to be clever, and organize all strings as a string compressor.
We had to code a word with 255 bits as a string data for the first 3 characters, and the 2 last characters.(two butes)

Exemple: "ABA" + "SH" =1+4 =CHR$ 1+CHR$ 4="ABASH" word.
Buy, it will be better to create a new tread to expand the most claver ideas.
Last edited by XavSnap on Fri Aug 12, 2022 2:03 am, edited 1 time in total.
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
Andre
Posts: 46
Joined: Sat Jun 21, 2008 7:28 pm
Location: Chateauguay-Quebec-Canada
Contact:

Re: Z80-21 Yet Another "BlackJack"

Post by Andre »

I already started writing the program. Yes! Time is a factor on the ZX. But so far so good.
The playing screen is working and so are many messages on/off.
The word picked by the player for the computer is checked. The computer can pick his word and the word is also checked ok.
I am now at the stage of the player and the computer to play. It is progressing well.
I agree with you "JOTTO" should have its own topic.
The ZX81 pleasure is spreading, ANDRE***
http://zx81.ordi5.free.fr/andre
http://zx81.de/andre
User avatar
sanello
Posts: 100
Joined: Sat Jul 23, 2022 9:26 pm

Re: Z80-21 Yet Another "BlackJack"

Post by sanello »

I didn't expect anyone to try. Go ahead and make a new thread. My version works on an XT so I figured it was at least relevant as a program that works on an 8 bit machine. On the Commodore, done.txt was an array and not a separate file. Hurray 128 kb! My word list expanded when it got to an ms-dos machine so I don't know if it would fit the Commodore now.
-sanello
User avatar
sanello
Posts: 100
Joined: Sat Jul 23, 2022 9:26 pm

Re: Z80-21 Yet Another "BlackJack"

Post by sanello »

OK, thinking about making a thread under development fo JOTTO. However, consider my news first. It is good and bad news. The good news is that I found a way to quickly get a complete list of 5 letter words. The bad news is that I found a way to quickly get a complete list of 5 letter words. There are 9066 of them. Here is updated JOTTO that reflects that.
Jotto.zip
(206.64 KiB) Downloaded 81 times
-sanello
User avatar
1024MAK
Posts: 5101
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Z80-21 Yet Another "BlackJack"

Post by 1024MAK »

If you want me to split the Jotto posts into a new topic, please let me know,

Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
User avatar
sanello
Posts: 100
Joined: Sat Jul 23, 2022 9:26 pm

Re: Z80-21 Yet Another "BlackJack"

Post by sanello »

@mark

Please.
-sanello
User avatar
1024MAK
Posts: 5101
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Z80-21 Yet Another "BlackJack"

Post by 1024MAK »

Okay, there is now a new topic for Jotto here.

For any further discussion on Jotto, please post in the new topic thread. Thank you.

I have not removed any posts about Jotto from this topic yet. Because I would like the members that have posted here to review the posts that I have copied to the new topic for Jotto, so that they can check that they are happy. Please also check that the attachments also download okay.

If everyone is happy with the posts in the new topic, I will then edit or delete the posts relating to Jotto in this topic. And will edit this post appropriately.

Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
Post Reply