Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.sinclair > #27

Re: Blackjack for the ZX80 (mostly) completed

From "Chris Young" <chris.usenet@mail-filter.com>
Subject Re: Blackjack for the ZX80 (mostly) completed
Message-Id <4D7000EB.MD-1.4.17.chris.young@unsatisfactorysoftware.co.uk>
References <5ecebf23-1a66-47d7-aff1-3b3917f617ca@r4g2000prm.googlegroups.com> <0acd516a-d32f-4f7c-b860-1791051fee7d@y31g2000prd.googlegroups.com>
Newsgroups comp.sys.sinclair
Organization virginmedia.com
Date 2011-03-03 20:58 +0100

Show all headers | View raw


On Thu, 3 Mar 2011 11:15:11 -0800 (PST) da kidz on comp.sys.sinclair were rappin'
to MC N.N. Thayer:

> On Mar 1, 6:09 pm, "N.N. Thayer" <nnthay...@gmail.com> wrote:
> > - There's one major gameplay flaw that was inherited from his original
> > code: when you're dealt an ace, you're not given the option to
> > designate it as 11 if doing so would not put you over 21.  The program
> > automatically designates it as 1.
> 
> I figure there must be something I'm not understanding about the game
> logic.  Any help would be appreciated :)

I can't help with that (not without examining the code more than I
have done, at least), but I think the RND is skewed incorrectly.

Surely the RND command should be RND(13), then
IF J>10 THEN LET J=10

Then you can just check for J=1 for an ace (with your subroutine), and
the probability of getting a 10 is increased to what it should be for
a pack of cards.

Chris


-- 
+-------------------------------------------+
| Unsatisfactory Software - "because it is" |
|  http://www.unsatisfactorysoftware.co.uk  |
| Your Sinclair: A Celebration              |
+- http://www.yoursinclair.co.uk -----------+

DISCLAIMER: I may be making all this stuff up again.

Back to comp.sys.sinclair | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Blackjack for the ZX80 (mostly) completed "N.N. Thayer" <nnthayer1@gmail.com> - 2011-03-03 11:15 -0800
  Re: Blackjack for the ZX80 (mostly) completed rwap <rich@rwapservices.co.uk> - 2011-03-03 12:25 -0800
    Re: Blackjack for the ZX80 (mostly) completed "N.N. Thayer" <nnthayer1@gmail.com> - 2011-03-03 12:45 -0800
      Re: Blackjack for the ZX80 (mostly) completed greenaum@yahoo.co.uk (greenaum) - 2011-03-11 06:33 +0000
  Re: Blackjack for the ZX80 (mostly) completed "Chris Young" <chris.usenet@mail-filter.com> - 2011-03-03 20:58 +0100
    Re: Blackjack for the ZX80 (mostly) completed "N.N. Thayer" <nnthayer1@gmail.com> - 2011-03-03 13:34 -0800
    Re: Blackjack for the ZX80 (mostly) completed "N.N. Thayer" <nnthayer1@gmail.com> - 2011-03-03 13:36 -0800
    Re: Blackjack for the ZX80 (mostly) completed gus <gdeldago@gmail.com> - 2011-03-04 04:17 -0800
      Re: Blackjack for the ZX80 (mostly) completed "N.N. Thayer" <nnthayer1@gmail.com> - 2011-03-04 05:17 -0800
        Re: Blackjack for the ZX80 (mostly) completed gus <gdeldago@gmail.com> - 2011-03-04 06:02 -0800
        Re: Blackjack for the ZX80 (mostly) completed "Chris Young" <chris.usenet@mail-filter.com> - 2011-03-04 17:44 +0100
          Re: Blackjack for the ZX80 (mostly) completed gus <gdeldago@gmail.com> - 2011-03-09 08:05 -0800
        Re: Blackjack for the ZX80 (mostly) completed Linards Ticmanis <ticmanis@gmx.de> - 2011-03-07 19:59 +0100
          Re: Blackjack for the ZX80 (mostly) completed Leiradella <leiradella@bigfoot.com> - 2011-03-08 07:31 -0800

csiph-web