Find Jobs
Hire Freelancers

****Homework Project Need Help!****

$30-250 USD

Abgeschlossen
Veröffentlicht vor fast 16 Jahren

$30-250 USD

Bezahlt bei Lieferung
Budget: $100 Hi I need someone to help me develop this card game in java called "WAR" it's a school project but due to time contraints I dont have the time to go through this myself. This is a class assignment for a beginners course, so it shouldn't be too bad for you programmers out there! This should also be completed within 24-48 hrs Thank you for your interest! (This should be simple text based or very simple gui in java) Here is the assignment: War is a game played by two players using a deck of cards. There are several variations of War; we'll use the rules from [login to view URL] These rules differ from Hoyle's "official" rules in that wars only require each player to play two cards, not three. Before we get into the rules of the game, here are a few helpful hints regarding data structures for your program. Each player can have at most 51 cards (if a player runs out of cards, he loses the game), but you should use an ArrayList for each player rather than an array. This will help you to avoid the problem of "wrapping around" the end of the array if the game goes on too long. To resolve a single war, you can get away with using ordinary arrays; to play it safe, make them at least 26 elements in length. War operates on the principle of "high card takes all." In each round, the player who draws the highest card wins all of the cards played during that round. The object of the game is to win all of the cards in the deck. This can take an extremely long time to accomplish, so most games are instead played until one player has won three wars. Each player begins the game with 26 cards. If a card is played face up, you should display it. Face down cards can be represented by "XX" or "??". Each round of the game is played as follows: 1. Each player turns over and displays the top card of his deck. The player with the high card (by face value) wins both cards, and adds them to the bottom of his deck. Aces beat kings, and 2 is the lowest possible card value. 2. If both cards have the same face value, a war occurs. Wars are played as follows: 1. Each player deals two cards from the top of his deck. The first card is played face down (is displayed as "X"), and the second card is played face up. 2. The player with the highest face up card wins all of the war cards, and adds them to the bottom of his deck. 3. If both face up cards show the same value, the war continues. Each player draws two more cards (one face down and one face up) and adds them to the war cards. Return to Step 2 to determine the winner of all of the war cards. 3. Play continues until one player has won three wars, or until one player runs out of cards (and thereby loses). 4. If a player runs out of cards during a war, he loses the game. If both players run out of cards at the same time, the game is a draw. Write a two-player version of War. As you may have noticed, the game doesn't require very much (or any) player interaction. Once the game begins, it can run automatically, displaying the cards that are drawn and the final outcome. For each round of the game, you should print out the number of cards in each player's deck. Atleast two of these: Extra Credit 1. Implement the "Trunks" variation of War, from [login to view URL] This is actually a simpler variation of War, so it should be pretty easy after you complete the main assignment! ( 2. Implement the "Addition War" variation from [login to view URL] ( 3. Implement one or more additional variants of War from the page listed above. 4. Develop a GUI for your project code. This does not need to be very fancy; at minimum, it should use a window to display program output and use JTextField or JButton widgets to obtain user input.
Projekt-ID: 290305

Über das Projekt

4 Vorschläge
Remote Projekt
Aktiv vor 16 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
Hi, I can start right now and complete the project in a few hours today, including extra credit requirements 1 and 2.
$70 USD in 1 Tag
5,0 (1 Bewertung)
2,0
2,0
4 Freelancer bieten im Durchschnitt $93 USD für diesen Auftrag
Avatar des Nutzers
Dear sir, Please see PMB for more details. Thanks
$100 USD in 2 Tagen
4,9 (55 Bewertungen)
5,5
5,5
Avatar des Nutzers
Hi, Please check PM. Regards, Jainam Shah, iSoft Solutions.
$100 USD in 2 Tagen
4,8 (5 Bewertungen)
4,8
4,8
Avatar des Nutzers
I will provide good commented code. Regards, Bohdan.
$100 USD in 1 Tag
4,9 (14 Bewertungen)
3,6
3,6

Über den Kunden

Flagge von UNITED STATES
fsd, United States
5,0
6
Mitglied seit Juli 22, 2008

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.