Euchre Laboratory | ||||||||||||
|
Where? Well, here. But wait! That's one of the advantages of Java applets. As long as you know where on the internet the program files are, you can include the laboratory on any web page, anywhere! Another advantage is that the program files are retrieved from the server and run on your computer everytime you go to a page that has the lab. What's cool about that you ask? Anytime I upload changes, fixes, enhancements to the applet, your web pages will automatically have the latest and greatest. Just add the following HTML code to your page:
<applet code="Euchre.class" width="500"
height="400" archive="euchre.jar"
codebase="https://members.tripod.com/~Borf_Books/Euchre_Lab//"> All of the parameters are optional. The acceptable values for the parameters are as follows:
The cards are named with 2 characters. The first character is the rank (2,3,4,5,6,7,8,9,t,j,q,k,a) and the second character is the suit (s,d,h,c.) For example, the Queen of Hearts is named "qh." Since we're only playing with 9s and up, the only valid values for the first character are "9,t,j,q,k,a." The names of the cards should be separated with commas. For example, a parameter assigning West a "perfect" hand in Hearts would be written like so: <param name="west" value="jh,jd,ah,kh,qh"> |