Crazy Eights game

J

Jimnbigd

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

McKirahan

Jimnbigd said:
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.
 
S

Sandfordc

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 (e-mail address removed)

Best Regards,
Sandfordc
www.JavaScript-Central.tk
 
J

Jimnbigd

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

Jimnbigd

Sandfordc said:
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...
 
J

Jimnbigd

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

You can email at --> (e-mail address removed)
....Jim...
 
M

Mick White

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top