Closed

code breakers (python)

This project received 19 bids from talented freelancers with an average bid price of $108 CAD.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
$30 - $250 CAD
Total Bids
19
Project Description

CODE BREAKERS
In this problem you are to design a game called “Code Breakers” which is played
between 2 players. Each player takes a turn to setup a code that the other player has to
break. Players get points based on how close they get to breaking the code.
Your game should begin by some welcome message welcoming the players into the
game. Next the players have to determine how many rounds they want to play the game
for. This has to be a positive integer number. In each round one player sets up the code
and the other players tries to break it and vice versa.
At each round the player who is setting up the code asks the other player to look away
and then types in the codeword. Once the player is done and presses enter, the screen is
cleared [perhaps print many newlines]. It will be wise to convert the codeword to all
lowercase at this point as it will make it easier for you to code the rest of the program
[see list of useful functions below].
After setting up the code, the next thing a player sets up is the number of guesses he/she
will allow the opponent player to have to break the code. This should be a positive
integer (i.e. an integer greater than 0).
At this point the opponent player (who is trying to break the code) starts his play. He
guesses one character (again picking some character from a to z) at a time until he either
guesses the string correctly (breaks the code) or runs out of number of guesses that he/she
is allowed in that round of play by the other player. After each guess by the opponent you
should display the partially guessed word [see Sample Input and Output].
When the opponent player reaches his/her limit for the number of guesses, or better yet
guesses the whole word correctly, the players change their roles, i.e. – the one who was
setting up the code before now tries to guess the code setup by his/her opponent.
At the end of each round the players get to see their scores up to that point in the game
[see Sample Input and Output].
After all rounds are over (determined by the players at the beginning of the game) you
should determine who wins/loses/if it’s a draw. Then you should print a game over
message and end the game.

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