Crazy Eights game

Discussion in 'Javascript' started by Jimnbigd, May 26, 2005.

  1. Jimnbigd

    Jimnbigd Guest

    Here's a Crazy Eights game. This was fun to write. So far it only works in
    IE. I'm working on a Netscape version. I haven't installed other browers
    (yet). I'm open to comments and suggestions. I'm sure there are ways to
    improve it. Note that I do not use cache for the card images. Instead, I
    build 52 <img>'s and use hidden/visible and position to move and display
    them. This seems to be faster than caching. Here's the URL...

    http://home.comcast.net/~jimnbigd/crazy8/crazy8.htm

    ....Jim...
    Jimnbigd, May 26, 2005
    #1
    1. Advertising

  2. Jimnbigd

    McKirahan Guest

    "Jimnbigd" <> wrote in message
    news:p...
    > Here's a Crazy Eights game. This was fun to write. So far it only works

    in
    > IE. I'm working on a Netscape version. I haven't installed other browers
    > (yet). I'm open to comments and suggestions. I'm sure there are ways to
    > improve it. Note that I do not use cache for the card images. Instead, I
    > build 52 <img>'s and use hidden/visible and position to move and display
    > them. This seems to be faster than caching. Here's the URL...
    >
    > http://home.comcast.net/~jimnbigd/crazy8/crazy8.htm
    >
    > ...Jim...


    Pretty good!

    I'd probably rename the images from, say, "twospades.gif" to "2S.gif".
    (And the corners of the cards are little funny.)

    I'd layout it out differently and make the buttons the same width via CSS.

    I haven't looked at the code behind.

    Good luck.
    McKirahan, May 26, 2005
    #2
    1. Advertising

  3. Jimnbigd

    Sandfordc Guest

    Well let me first comend the effort.
    The detail put in was great!
    Once you finish any modifications and/or clean up parts of the code you
    want to I would like to put this on my website. If you are interesed
    you can email me at

    Best Regards,
    Sandfordc
    www.JavaScript-Central.tk
    Sandfordc, May 27, 2005
    #3
  4. Jimnbigd

    Jimnbigd Guest


    > "McKirahan" <> wrote...
    > I'd probably rename the images from, say, "twospades.gif" to "2S.gif".
    > (And the corners of the cards are little funny.)


    Yeah, I agree. I cheated. I stole these images from someone elses web
    page. Oh well, I'm lazy on some things.<lol>.
    If you know of a site that has better card images, let me know.

    > I'd layout it out differently and make the buttons the same width via CSS.


    Good idea. I need to get more familiar with CSS. I tend to "brute force"
    some things that I know could be done better.
    I also want to add cookies to keep a cummulative score, with a user
    name input to allow multiple users on the same computer.
    ....Jim...
    Jimnbigd, May 27, 2005
    #4
  5. Jimnbigd

    Jimnbigd Guest

    "Sandfordc" <> wrote...
    > Once you finish any modifications and/or clean up parts of the code you
    > want to I would like to put this on my website.


    I'm an old IBM mainframe assembler programmer. I still do "procedural"
    rather than "object oriented" coding -- but I'm trying change. My programs
    are always being modified and improved. That's one reason I want
    suggestions from this group -- both on the game itself, and in the
    Javascript coding. I know my Javascript could be better. (I can see this
    code now in a Javascript book chapter called "Don't let this happen to
    you" -- <lol>)
    ....Jim...
    Jimnbigd, May 27, 2005
    #5
  6. Jimnbigd

    Sandfordc Guest

    Lol

    I could try to go over your script and offer some suggestions if you
    would like.

    Best Regards,
    Sandfordc
    www.JavaScript-Central.tk
    Sandfordc, May 27, 2005
    #6
  7. Jimnbigd

    Jimnbigd Guest

    "Sandfordc" <> wrote in message
    news:...
    > Lol
    >
    > I could try to go over your script and offer some suggestions if you
    > would like.
    >
    > Best Regards,
    > Sandfordc
    > www.JavaScript-Central.tk
    >

    I'd like that. Thanks...Jim...
    Jimnbigd, May 27, 2005
    #7
  8. Jimnbigd

    Jimnbigd Guest

    "Sandfordc" <> wrote...
    > I could try to go over your script and offer some suggestions if you
    > would like.


    You can email at -->
    ....Jim...
    Jimnbigd, May 27, 2005
    #8
  9. Jimnbigd

    Mick White Guest

    Jimnbigd wrote:

    [snip]

    >
    > Good idea. I need to get more familiar with CSS. I tend to "brute force"
    > some things that I know could be done better.
    > I also want to add cookies to keep a cummulative score, with a user
    > name input to allow multiple users on the same computer.


    http://www.brainjar.com/css/cards/

    No need for images at all.
    Mick
    Mick White, May 27, 2005
    #9
  10. Jimnbigd

    Jimnbigd Guest

    "Mick White" <> wrote...
    > http://www.brainjar.com/css/cards/
    > No need for images at all.
    > Mick
    >

    A graphic was still needed for part of the jack, queen, & king. Clever idea
    though.
    ....Jim...
    Jimnbigd, May 28, 2005
    #10
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. BlackHawke
    Replies:
    12
    Views:
    1,552
    Andrew Thompson
    Jan 26, 2004
  2. judith
    Replies:
    0
    Views:
    1,630
    judith
    Nov 1, 2006
  3. Max Kubierschky
    Replies:
    10
    Views:
    1,832
    pabloreda
    Mar 31, 2007
  4. Advertiser for `2D Games Development Central`

    {Game Development} 2D Game Development Central

    Advertiser for `2D Games Development Central`, May 7, 2008, in forum: Java
    Replies:
    2
    Views:
    403
    RedGrittyBrick
    May 8, 2008
  5. Advertiser for `2D Games Development Central`

    {Game Development} 2D Game Development Central

    Advertiser for `2D Games Development Central`, May 7, 2008, in forum: C++
    Replies:
    0
    Views:
    382
    Advertiser for `2D Games Development Central`
    May 7, 2008
Loading...

Share This Page