Author Topic: HI-Lo (card game)  (Read 2764 times)

0 Members and 1 Guest are viewing this topic.

Offline mynameispaul

  • Newbie
  • Posts: 49
    • View Profile
HI-Lo (card game)
« on: October 25, 2020, 07:58:14 am »
Guess if the next card in the deck is higher or lower than the current card

Put all files in the ZIP file in the folder where you have QB64
should look something like the following...

(folder containing QB64)
$GameRecord.bas
ASCII_RGB.ini
Hi-Lo.bas
\PgmFiles
.\BlackJack
.\Hi-Lo

Create exe for $GameRecord.bas first, then Hi-Lo.bas
Hi-Lo screen shot.jpg
* Hi-Lo screen shot.jpg (Filesize: 12.86 KB, Dimensions: 417x179, Views: 179)
* HI-Lo.zip (Filesize: 153.99 KB, Downloads: 159)

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: HI-Lo (card game)
« Reply #1 on: October 25, 2020, 01:20:01 pm »
OK it works :)

I wonder if you can do this with half the Lines of Code? (Challenge!).

We use to do such to sharpen our coding skills.

ie Do you really need to load colors from a data file?




« Last Edit: October 25, 2020, 01:22:59 pm by bplus »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: HI-Lo (card game)
« Reply #2 on: October 26, 2020, 09:46:42 pm »
Here is what I came up with. I tried to make a more interesting game with this Doublings variation:

zip contains: bas source, cards.png sheet and Spriggsy's Marquee Moon ttf font.

* Hi Lo Doublings.zip (Filesize: 83.21 KB, Downloads: 127)
« Last Edit: October 27, 2020, 11:57:26 am by bplus »