New Posts  All Forums:Forum Nav:

Crazy 8's Game

post #1 of 10
Thread Starter 


I got bored with the start of the school year and decided to throw together a few card games. Here's the first one in my series. The game is "Crazy 8's". Rules are included with the game, so feel free to test it out and point out any flaws or improvements you find. It's uploaded as an executable Jar file, so you should just be able to download and double click to make it work. You will need the Java runtime environment. It should also work on all platforms. Let me know what you think.

Known Issues:
  • Occasional image buffering glitches remain when a player discards a card.
  • FIXED - When maximizing or restoring a window cards do not appear correctly.
  • FIXED - If the game proceeds long enough to shuffle the deck, there is a glitch with how the draw pile is display.
  • FIXED - The window likes to default to it's original open state (ie. certain size, not maximized, etc.)
  • FIXED - When a player accumulates more than 11 cards in a hand, there is some cut off and only half of the cards are visible.
Considered Improvements:
  • I may implement double buffering to cut down on drawing glitches.

RAID0R
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 750 4.0GHz MSI P55-GD80 GTX 470 | 8800GT PhysX 2x2GB G.Skill Ripjaws 
Hard DriveOptical DriveCoolingOS
60GB Agility 2|1TB RAID0|1.5TB Pioneer DVR-217D XSPC Raystorm | XSPC RX240 Windows 7 Professional x64 
MonitorKeyboardPowerCase
27" Dell 2709W | 17" Samsung Logitech G15 Corsair HX850 Corsair 650D 
Mouse
Microsoft IntelliMouse 
  hide details  
Reply
RAID0R
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 750 4.0GHz MSI P55-GD80 GTX 470 | 8800GT PhysX 2x2GB G.Skill Ripjaws 
Hard DriveOptical DriveCoolingOS
60GB Agility 2|1TB RAID0|1.5TB Pioneer DVR-217D XSPC Raystorm | XSPC RX240 Windows 7 Professional x64 
MonitorKeyboardPowerCase
27" Dell 2709W | 17" Samsung Logitech G15 Corsair HX850 Corsair 650D 
Mouse
Microsoft IntelliMouse 
  hide details  
Reply
post #2 of 10
I love it, and this was made in Java, correct? If so i might be ineterested in learning java
Forever Young
(13 items)
 
  
CPUMotherboardGraphicsRAM
E8400 Q815A182 @3.42 (Stock Volts) Asus P5E Sapphire 5850 G.Skill 4GBPQ 1000 
Hard DriveOptical DriveOSMonitor
Seagate 7200.12 1TB Samsung 22X SATA DVD Burner (Ordered) Vista Home Premium x64/ Ubuntu 10.04 x64 Samsung T240 24' 
KeyboardPowerCaseMouse
Saitek Eclipse Corsair 750TX Antec P180 MX518 
Mouse Pad
Allsop Raindrops 
  hide details  
Reply
Forever Young
(13 items)
 
  
CPUMotherboardGraphicsRAM
E8400 Q815A182 @3.42 (Stock Volts) Asus P5E Sapphire 5850 G.Skill 4GBPQ 1000 
Hard DriveOptical DriveOSMonitor
Seagate 7200.12 1TB Samsung 22X SATA DVD Burner (Ordered) Vista Home Premium x64/ Ubuntu 10.04 x64 Samsung T240 24' 
KeyboardPowerCaseMouse
Saitek Eclipse Corsair 750TX Antec P180 MX518 
Mouse Pad
Allsop Raindrops 
  hide details  
Reply
post #3 of 10
you should make it MULTIPLAYER, that would be one hell of a project and a ton of fun.
I'm Jelly.
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel 2500k Gigabyte Z68X-UD4-B3 MSI GTX 460 Cyclone 748MB 8GB DDR3-1600 Ripjaws 9-9-9-27 
Hard DriveOSKeyboardPower
OCZ 60GB Vertex 2 + 500GB 7200.12 Raid 0 Windows 7 Metadot DAS Professional S 850W XFX 
CaseMouse
HAF 932 MX518 
  hide details  
Reply
I'm Jelly.
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel 2500k Gigabyte Z68X-UD4-B3 MSI GTX 460 Cyclone 748MB 8GB DDR3-1600 Ripjaws 9-9-9-27 
Hard DriveOSKeyboardPower
OCZ 60GB Vertex 2 + 500GB 7200.12 Raid 0 Windows 7 Metadot DAS Professional S 850W XFX 
CaseMouse
HAF 932 MX518 
  hide details  
Reply
post #4 of 10
This is addicting lol.
    
CPUGraphicsRAMHard Drive
Core i5 M 520 NVS 3100M G.SKILL 8GB (2 x 4GB) 204-Pin DDR3 SO-DIMM DDR3... OCZ Vertex 3 128GB 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
Core i5 M 520 NVS 3100M G.SKILL 8GB (2 x 4GB) 204-Pin DDR3 SO-DIMM DDR3... OCZ Vertex 3 128GB 
  hide details  
Reply
post #5 of 10
Thread Starter 
Thanks for the interest guys!

Yes it is programmed 100% in java, quite easily too. The only tricky part was that my card deck image was a single file, and I had to extract subsections of that file to produce the image on each card. However, I can give you my solution for that if you're going to make a card game as well.

As for the networking comment... that's in the works. I was reading up on client-server type classes in Java and I'm still a tad fuzzy on it. I'd like to just send the entire windows contents using the send(Object) method, but I'm not sure how that would work as far as bandwidth goes. I think what I'll end up doing is just setting up a transaction sending/recieving where it checks the move clientside and does all the processing, then simply sends an int to represent card value and suit. That card then gets decoded and put on the top of the other player's deck. There's also a drawback because at the moment I have to invoke a couple extra methods for the AI to recognize the card that was played, and play the best possible card in the hand.

Either way it's a work in progress, and glad you're enjoying it. If you find any bugs that I haven't listed or improvements you could see, let me know.
RAID0R
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 750 4.0GHz MSI P55-GD80 GTX 470 | 8800GT PhysX 2x2GB G.Skill Ripjaws 
Hard DriveOptical DriveCoolingOS
60GB Agility 2|1TB RAID0|1.5TB Pioneer DVR-217D XSPC Raystorm | XSPC RX240 Windows 7 Professional x64 
MonitorKeyboardPowerCase
27" Dell 2709W | 17" Samsung Logitech G15 Corsair HX850 Corsair 650D 
Mouse
Microsoft IntelliMouse 
  hide details  
Reply
RAID0R
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 750 4.0GHz MSI P55-GD80 GTX 470 | 8800GT PhysX 2x2GB G.Skill Ripjaws 
Hard DriveOptical DriveCoolingOS
60GB Agility 2|1TB RAID0|1.5TB Pioneer DVR-217D XSPC Raystorm | XSPC RX240 Windows 7 Professional x64 
MonitorKeyboardPowerCase
27" Dell 2709W | 17" Samsung Logitech G15 Corsair HX850 Corsair 650D 
Mouse
Microsoft IntelliMouse 
  hide details  
Reply
post #6 of 10
Quote:
Originally Posted by C-bro View Post


I got bored with the start of the school year and decided to throw together a few card games. Here's the first one in my series. The game is "Crazy 8's". Rules are included with the game, so feel free to test it out and point out any flaws or improvements you find. It's uploaded as an executable Jar file, so you should just be able to download and double click to make it work. You will need the Java runtime environment. It should also work on all platforms. Let me know what you think.

Known Issues:
  • Occasional image buffering glitches remain when a player discards a card.
  • FIXED - When maximizing or restoring a window cards do not appear correctly.
  • FIXED - If the game proceeds long enough to shuffle the deck, there is a glitch with how the draw pile is display.
  • FIXED - The window likes to default to it's original open state (ie. certain size, not maximized, etc.)
  • FIXED - When a player accumulates more than 11 cards in a hand, there is some cut off and only half of the cards are visible.
Considered Improvements:
  • I may implement double buffering to cut down on drawing glitches.
Hmmmm.. That great...Thanks for Posting nice game with us. i like your post and all you share with us is update and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. I like your work and would love to send this page to my friends so they can read more about mcp with my friend. i like to see more post form you on the same way as you have done in past and love to visit you again with hosting reseller. keep working like this.... Have a wonderful time.
post #7 of 10
hmm interesting project.

I should do this, maybe make it multiplayer. Good practice.
    
CPUMotherboardOSMonitor
2500k P8P67 Windows 7 Ultimate x64 22" phillips 
KeyboardPowerMouseMouse Pad
Cheap Logitech Antec Earthwatts 650W Razer Deathadder Razer eXactMat 
  hide details  
Reply
    
CPUMotherboardOSMonitor
2500k P8P67 Windows 7 Ultimate x64 22" phillips 
KeyboardPowerMouseMouse Pad
Cheap Logitech Antec Earthwatts 650W Razer Deathadder Razer eXactMat 
  hide details  
Reply
post #8 of 10
Hey!
Seems like an interesting app but I can't find the link to download the .jar file...
Is it hidden or am I blind ?
post #9 of 10
I know this is a week old, but @gtoto00726 The link is in the OP's signature

@OP, I would be interested in your solution for the deck. Last time I made a card game in Java (Solitaire using ancient number systems for my history of mathematics class) I just made 52 separate images. Wasn't the best solution but it worked. When you say you just had a single image file, do you mean it was basically tiled? So 52 different images all in a single file, then calculated the pixels to cut out the individual image?

i.e.
Code:
int HEARTS = 0;
int SPADES = 1;
int CLUBS = 2;
int DIAMONDS = 3;

//Assuming each card is 150px*200px and the large image has 13 cards per row

int topRightX = card.value * 150;
int topRightY = card.suit * 200;
int topLeftX = topRightX - 150;
int topLeftY = topRightY;
int bottomLeftX = topLeftX;
int bottomLeftY = topLeftY + 200;
int bottomRightX = topRightX;
int bottomRightY = topRightY + 200;

//Cut out the rectangle within the four (x,y) points
post #10 of 10
Quote:
Originally Posted by gtoto00726 View Post

Hey!
Seems like an interesting app but I can't find the link to download the .jar file...
Is it hidden or am I blind ?

The link in the op signature just refreshes the page
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming