Crazy Eights game

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jimnbigd

    #1

    Crazy Eights game

    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...



    ....Jim...




  • McKirahan

    #2
    Re: Crazy Eights game

    "Jimnbigd" <jimnbigd@comca st.net> wrote in message
    news:PaqdnUnylu EVzAjfRVn-2Q@comcast.com. ..[color=blue]
    > Here's a Crazy Eights game. This was fun to write. So far it only works[/color]
    in[color=blue]
    > 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...[/color]

    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.


    Comment

    • Sandfordc

      #3
      Re: Crazy Eights game

      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 sandfordc@gmail .com

      Best Regards,
      Sandfordc


      Comment

      • Jimnbigd

        #4
        Re: Crazy Eights game

        [color=blue]
        > "McKirahan" <News@McKirahan .com> wrote...
        > I'd probably rename the images from, say, "twospades. gif" to "2S.gif".
        > (And the corners of the cards are little funny.)[/color]

        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.
        [color=blue]
        > I'd layout it out differently and make the buttons the same width via CSS.[/color]

        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...




        Comment

        • Jimnbigd

          #5
          Re: Crazy Eights game


          "Sandfordc" <sandfordc@gmai l.com> wrote...[color=blue]
          > 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.[/color]

          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...


          Comment

          • Sandfordc

            #6
            Re: Crazy Eights game

            Lol

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

            Best Regards,
            Sandfordc


            Comment

            • Jimnbigd

              #7
              Re: Crazy Eights game


              "Sandfordc" <sandfordc@gmai l.com> wrote in message
              news:1117160792 .388902.46360@g 14g2000cwa.goog legroups.com...[color=blue]
              > Lol
              >
              > I could try to go over your script and offer some suggestions if you
              > would like.
              >
              > Best Regards,
              > Sandfordc
              > www.JavaScript-Central.tk
              >[/color]
              I'd like that. Thanks...Jim...


              Comment

              • Jimnbigd

                #8
                Re: Crazy Eights game


                "Sandfordc" <sandfordc@gmai l.com> wrote...[color=blue]
                > I could try to go over your script and offer some suggestions if you
                > would like.[/color]

                You can email at --> jimnbigd@comcas t.net
                ....Jim...


                Comment

                • Mick White

                  #9
                  Re: Crazy Eights game

                  Jimnbigd wrote:

                  [snip]
                  [color=blue]
                  >
                  > 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.[/color]



                  No need for images at all.
                  Mick

                  Comment

                  • Jimnbigd

                    #10
                    Re: Crazy Eights game


                    "Mick White" <mwhite13BOGUS@ rochester.rr.co m> wrote...[color=blue]
                    > http://www.brainjar.com/css/cards/
                    > No need for images at all.
                    > Mick
                    >[/color]
                    A graphic was still needed for part of the jack, queen, & king. Clever idea
                    though.
                    ....Jim...


                    Comment

                    Working...