Find Jobs
Hire Freelancers

Pig Dice game- java

$30-5000 USD

Zamknięte
Opublikowano prawie 21 lat temu

$30-5000 USD

Płatne przy odbiorze
DUE DATE: June 16 8:00am Develop an Applet version of the dice game: Pig The rules: 1) Players take turns rolling two dice. 2) If a player rolls a single '1', he receives no points for that roll and loses the turn. 3) If a player rolls two '1's, he loses all accumulated points and loses the turn. 4) Any other values that are rolled are added to the players score and the player can continue to roll, or if desired, "pass" the turn to the other player to avoid the possibility of losing points by rolling a '1'. 5) The first player to reach 100 points wins. Hints for implementing the game: First, create a class named "Die" which implements a single die. This class will require a constructor (or two), a method to allow you to roll the die and a method to retrieve the value of a previously rolled die. Then, your Pig class can instantiate two dice for use in the game. You have three options for your Pig game. 1) Your game will allow two human players to play against each other. 2) Your game will serve as the "other" player for the game. So it will need to function as a game player at the appropriate times. To allow the computer to play the game at a slow enough pace to be followed by a lowly human observer, the game will need to wait a second or so between each roll. The Applet should not be tied up doing this as this leaves it unable to respond to user or OS activity. Instead, the Applet should create a separate thread to handle this task. So you'll need to do some research on Java Threads. When the computer "player" accumulates When the computer "player" accumulates 25 or more points in any given turn, he should pass the turn to the human player. When the computer is playing, the buttons to "roll" or "pass" should not be present. 3) Allow the player(s) to chose to either play in "two player" mode, or play against the computer. In other words, support both options 1) and 2) listed [login to view URL]://[login to view URL]~usnick/jsp/lab1/[login to view URL] ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. ## Platform Windows XP NOTE: I've discovered that some versions of MS Internet Explorer will not load and run Applets compiled under SDK 1.4 (which I recently upgraded the server to). I guess this is part of the ongoing Microsoft/Sun turf battle over Java. To avoid this problem, I'm now using Netscape to run my Applets. If you get an error "load: class XYZ not found", you'll need to do the same. This works on my comp,WinXP, IE 6
Identyfikator projektu: 2943320

Informację o projekcie

20 ofert
Zdalny projekt
Aktywny 21 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
20 freelancerzy składają oferty o średniej wysokości $41 USD dla tej pracy
Awatar Użytkownika
See private message.
$21,25 USD w 14 dni
5,0 (96 opinii)
6,6
6,6
Awatar Użytkownika
See private message.
$15,30 USD w 14 dni
4,9 (90 opinii)
5,6
5,6
Awatar Użytkownika
See private message.
$42,50 USD w 14 dni
4,7 (40 opinii)
4,7
4,7
Awatar Użytkownika
See private message.
$102 USD w 14 dni
5,0 (16 opinii)
4,6
4,6
Awatar Użytkownika
See private message.
$74,80 USD w 14 dni
4,9 (77 opinii)
4,6
4,6
Awatar Użytkownika
See private message.
$17 USD w 14 dni
5,0 (19 opinii)
4,2
4,2
Awatar Użytkownika
See private message.
$63,75 USD w 14 dni
5,0 (25 opinii)
4,1
4,1
Awatar Użytkownika
See private message.
$110,50 USD w 14 dni
5,0 (8 opinii)
4,0
4,0
Awatar Użytkownika
See private message.
$17 USD w 14 dni
4,9 (37 opinii)
4,0
4,0
Awatar Użytkownika
See private message.
$42,50 USD w 14 dni
5,0 (7 opinii)
3,8
3,8
Awatar Użytkownika
See private message.
$25,50 USD w 14 dni
4,8 (26 opinii)
3,6
3,6
Awatar Użytkownika
See private message.
$66,30 USD w 14 dni
5,0 (19 opinii)
3,2
3,2
Awatar Użytkownika
See private message.
$11,05 USD w 14 dni
4,9 (13 opinii)
2,4
2,4
Awatar Użytkownika
See private message.
$25,50 USD w 14 dni
5,0 (11 opinii)
2,3
2,3
Awatar Użytkownika
See private message.
$17 USD w 14 dni
4,6 (9 opinii)
1,8
1,8
Awatar Użytkownika
See private message.
$15,30 USD w 14 dni
3,0 (2 opinii)
1,6
1,6
Awatar Użytkownika
See private message.
$29,75 USD w 14 dni
5,0 (1 opinia)
0,0
0,0
Awatar Użytkownika
See private message.
$25,50 USD w 14 dni
0,5 (1 opinia)
0,0
0,0
Awatar Użytkownika
See private message.
$85 USD w 14 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
See private message.
$21,25 USD w 14 dni
0,0 (1 opinia)
0,0
0,0

O kliencie

Flaga UNITED STATES
United States
0,0
0
Członek od cze 9, 2003

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.