Find Jobs
Hire Freelancers

easy project in C

€8-30 EUR

已完成
已发布超过 10 年前

€8-30 EUR

货到付款
Brief description: You will write a C code for a hangman game between the computer and a player but where the computer is "cheating" . Game Description: At the beginning of the game the player choses how many letters he wishes the word to have, that he will guess , how many rounds he will have in the game and the name of the file containing the dictionary . In the classic game of hangman , the computer picks a word and displays it on the screen with dashes instead for letters . In each round the player guesses a letter,and if that exists in the word , then it replaces the corresponding dash. The player wins if he could guess all the letters in the available rounds . In the game that you will create, the computer steals . For example , suppose the player already guessed all the letters except one, has only one round , and so far the word is as-en. There are only two words in the dictionary matching : ashen and aspen. The program must be written so that if the player guessed h, the computer will claim that the word was chosen was originally aspen, while if the player guessed p, the computer will claim that the word was ashen. Thus, the player has no hope of winning . At the beginning of the game , the computer only knows how many letters must be the word , but did not Choose something . Once the player guesses the first letter , the computer divides all words categories ( " equivalence classes " ) depending on the existence or not of the letter , and the locations in which will appear . For example , suppose that the dictionary has only the following 10 words : arts, dear, deer, feel, flew, pear, pend, perk, poor, rear The player in the first round guesses 'e'. The computer should display the points of the word in which they have the letter 'e' . How the computer would do that if he didn't even choose the word?It will split the available words in categories according to the positions in which there are 'e'. The categories are: ---- (Words without e: arts, poor) -e - ( words where e appears only in the second place : dear, pear, pend, perk, rear) -ee-( words where e appears in 2nd and 3rd place : deer, feel) - e-( where the words appear to e 3rd place : flew) Each category is represented by one representative . For example, the representative of the first class is the word " ---- " . The computer can now choose a category of words, and also to display 'e' to the corresponding positions . There are several strategies , but we will follow the simplest : each time the computer chooses the largest category. Therefore, in this example will choose the category with representative -e -. The final word will be one of the dear, pear, pend, perk but of course not yet chosen one particular of them. Suppose now that the second round of the player guesses r. The new categories are: -e - ( words without r: pend) -er ( words which r appears only in 4th place : dear, pear) -er-( words which r appears only in 3rd place : perk) re-r ( where r words displayed in the 1st and 4th place : rear) This time , the most populous category is -e-r, and possible words are dear and pear. Suppose that in the third round , the player guesses f. F does not exist in any word , so I found only one class : -e-r ( without words f: dear, pear) The game will continue the same way . If you run out of rounds without finding the word the player , and last category has more than one word , the computer selects one of them at random and argues that this was the word that had guessed from the beginning. Then , it asks the user if he wants to play more game . If not, the program terminates . If so , the process is repeated....( the continue is in the file named "project2013") I have attached 3 files the 2 of them will be needed for the code and the file named "project2013" gives more details for how to program the game.
项目 ID: 5278275

关于此项目

13提案
远程项目
活跃10 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my C and algorithm skills. I am focused mostly on doing computer science homework here in freelancer.com and I would like to help you get this project done if you would give me the opportunity. I am a computer science professor and practitioner and this assignment is one of the fields that I teach very well so I can assure you an accurate result.
€30 EUR 在1天之内
4.9 (431条评论)
6.7
6.7
13威客以平均价€28 EUR来参与此工作竞价
用户头像
Hello.I have written similar game with Java recently, and I would be able write it with C too..........
€21 EUR 在1天之内
4.9 (779条评论)
7.0
7.0
用户头像
hi this is Asad , i have a lot of experience in c,c++ and java programming,i can make this project for you, hire me ,wont disappoint you,cheers :D
€24 EUR 在3天之内
5.0 (17条评论)
5.2
5.2
用户头像
A proposal has not yet been provided
€77 EUR 在1天之内
5.0 (28条评论)
5.1
5.1
用户头像
hi... i can do this. Please let me know to start immediately. i can deliver you on time. Please initiate communication to discuss further. thanks
€27 EUR 在1天之内
4.9 (24条评论)
4.3
4.3
用户头像
Hi, I am an electronics engineer with more than 5 years of experience in C and I've written similar code for hangman in Python. And this task seems to be a very simple task. Kindly let me know, if you are interested... Thank You
€30 EUR 在5天之内
5.0 (9条评论)
3.8
3.8
用户头像
hello , can you plz provide the pdf in english ... thanx .... waiting for your reply ... regards ............................
€30 EUR 在5天之内
4.9 (12条评论)
3.5
3.5
用户头像
hi ka8igitis, i am interested on it. Professional freelancer ready for help you. I am experience with C Language ...pointers , structs and arrays are not problem for me. Lets Start!
€30 EUR 在7天之内
4.9 (6条评论)
3.0
3.0
用户头像
HI I am experienced programmer and I have all my projects in programming you can view them contact me for your solution i will available for the best solution thanks
€25 EUR 在2天之内
4.2 (1条评论)
0.8
0.8
用户头像
A proposal has not yet been provided
€23 EUR 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
A proposal has not yet been provided
€22 EUR 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
A proposal has not yet been provided
€19 EUR 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
Looks interesting, so I already started implementation and I will finish it anyway, I have like 167 lines of code for your project and if you choose me, you will get the source. I have no reputation here, so I put the minimal price. Cheers!
€8 EUR 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

GREECE的国旗
Ayia Fyla, Greece
5.0
1
付款方式已验证
会员自12月 28, 2013起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。