Guessing game

This project received 15 bids from talented freelancers with an average bid price of $54 USD.

Get free quotes for a project like this
Employer working
Project Budget
$30 - $5000 USD
Total Bids
Project Description

BASIC SPECIFICATION You are required to develop a Java program which will play the following guessing [url removed, login to view] user has to guess a code consisting of 3 characters in the range 'a'-'e' which have been generated at random by the computer, but in such a way that all 3 characters are different. When the user inputs a guess the computer will print the number of bulls (i.e. characters correct and in the right position) and the number of hits (i.e. characters correct but in the wrong position). For example if the code to be guessed is 'ade', and 'eda' is input then the output would be 1 bull and 2 hits. This process continues with the user winning if he guesses correctly in a maximum of 4 guesses, otherwise the computer wins. In addition the user may give up at any point - this should be implemented with a button and will also count as a win for the computer. If the user loses the game, the code will be displayed. At the end of each game the winner will be identified. The program should validate the input guess - in particular it should reject any guess in which 2 or more of the characters are the same. Characters outside the range 'a'-'e' should also be rejected. Guesses consisting of the wrong number of characters should also be rejected. In each case an error message should be displayed and the user will then input another guess. Guesses may be input in either upper or lower case, or any combination of the two. While the game is being played the score will be displayed i.e. the number of games won by the user and the computer. The user will also be given the option of running the program in 'debug' mode - if this is chosen then the code to be guessed will be displayed on the screen while the game is being played. This is being done on JBuilder, I already have the GUI.

## Deliverables

Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.

## Deadline information

24 hours

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online