473,386 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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

....Jim...


Jul 23 '05 #1
9 2139
"Jimnbigd" <ji******@comcast.net> wrote in message
news:Pa********************@comcast.com...
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.
Jul 23 '05 #2
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 sa*******@gmail.com

Best Regards,
Sandfordc
www.JavaScript-Central.tk

Jul 23 '05 #3
"McKirahan" <Ne**@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.)
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...


Jul 23 '05 #4

"Sandfordc" <sa*******@gmail.com> 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...
Jul 23 '05 #5
Lol

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

Best Regards,
Sandfordc
www.JavaScript-Central.tk

Jul 23 '05 #6

"Sandfordc" <sa*******@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
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...
Jul 23 '05 #7

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


You can email at --> ji******@comcast.net
....Jim...
Jul 23 '05 #8
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

Jul 23 '05 #9

"Mick White" <mw***********@rochester.rr.com> 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...
Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: tjland | last post by:
Okay now im pretty sure this is really easy and pretty stupid but i need to create this. To make it simple ill use another program as an example. A guessing game that has an input field and button...
138
by: theodp | last post by:
--> From http://www.techdirt.com/articles/20040406/1349225.shtml Microsoft Patents Saving The Name Of A Game Contributed by Mike on Tuesday, April 6th, 2004 @ 01:49PM from the...
1
by: fowle040 | last post by:
I underlined and bold print my files. I need to know how to make this code into a working game. The object of the game is to have two players 1- belle and 2-beast. I want them to lose and gain...
7
by: Gasten | last post by:
Hello. The last weeks I've been coding a roguelike (you know, like nethack) in python using the nCurses library. Some week ago I ran into a problem: When I made the object for messagebar-output, I...
29
by: töff 93722 | last post by:
Long story short, I built a website based primarily on JavaScript: http://www.sjcga.com The site renders *great* in WinIE6/7 and in Mac/Win Opera9. It has problems in Mac/Win Firefox2, and...
22
by: sheldonlg | last post by:
I am going nuts with IE problems. Here is my problem: Firefox: Shows things properly; javascripts work; etc. etc. IE6: The "onClick" doesn't invoke the javascript that is designated. I know...
2
by: LilMeechc20 | last post by:
Hello, I have a group assignment that I have to do. We have to write a Tic Tac Toe game. One person in my group has managed to write the code for a multiplayer (human -vs- human) game and I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.