Page 11 of 11

Re: Z80-21 Yet Another "BlackJack"

Posted: Thu Aug 11, 2022 10:05 am
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

Re: Z80-21 Yet Another "BlackJack"

Posted: Thu Aug 11, 2022 10:54 am
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 103 times
ZxPrinter output;
Blackjack_Z8021.pdf
(1.07 MiB) Downloaded 105 times
Last update:
BLACKJACKZ8021.P
(13.59 KiB) Downloaded 105 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.

Re: Z80-21 Yet Another "BlackJack"

Posted: Thu Aug 11, 2022 4:24 pm
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!

Re: Z80-21 Yet Another "BlackJack"

Posted: Thu Aug 11, 2022 5:15 pm
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.

Re: Z80-21 Yet Another "BlackJack"

Posted: Thu Aug 11, 2022 11:02 pm
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.

Re: Z80-21 Yet Another "BlackJack"

Posted: Thu Aug 11, 2022 11:44 pm
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.

Re: Z80-21 Yet Another "BlackJack"

Posted: Sun Aug 14, 2022 4:35 am
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 91 times

Re: Z80-21 Yet Another "BlackJack"

Posted: Sun Aug 14, 2022 6:18 am
by 1024MAK
If you want me to split the Jotto posts into a new topic, please let me know,

Mark

Re: Z80-21 Yet Another "BlackJack"

Posted: Sun Aug 14, 2022 8:55 am
by sanello
@mark

Please.

Re: Z80-21 Yet Another "BlackJack"

Posted: Sun Aug 14, 2022 12:17 pm
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