sedang Berlangsung

create a typing game in C++. (C++ language only) (should be working in eclipse CDT)

This is to implement a simple typing lesson game. Computer will generate a random string of 7 characters and you need to reproduce it within 7 seconds. You will lose points significantly if you fail to produce the same string within the set time interval.

You have 1000 points in the beginning of the game. Given 7 randomly generated letters being mixed with lower and upper cases, you need to type them correctly within 7 seconds (7000 msec). You will get 500 points every time you produce the matching string within the interval. You will loose an amount of delayed time in millisecond, e.g., your typing ended in 7350 msec, so you would loose 350 points.

If you misspell, you will be penalized by the total offset of mistaken letters. You will loose this offset from your points. The offset is computed by accumulating the absolute distance between two characters in the same position, one from the generated string and another from the input. For instance, the offset of "Game" and "Mag" is 81. The shorter string is padded with space(s). Therefore, |G - M| = 6, |a - a| = 0, |m - g| = 6, |e - (space)| = 69. Use ASCII table ([url removed, login to view]) to see the assigned number to each alphabet under "char" and "html". If you misspell and overtime, you will be penalized the double score of the offset, plus delayed amount of time. The game ends if you reach score 5000 or 0.

With 20% of chance of each character generation, a resulting string may contain wild letters, [0-9] and [%-&], which respectively indicate any number letter and any symbol letter, that means that either of the two wild letters is chosen with the probability of 0.2 when generating a random letter. Symbol excludes digits and upper/lowercase letters. Typing error is treated as an offset from '0' and '*' respectively. For instance, the offset of Twv[0-9]JG[%-&] and TwvxJG2 is 80.

There were a few ways to approximate elapsed time. The new C++ 2011 standard has a good way to do it by including <chrono> library. See the item 17 of this post ([url removed, login to view]) to adapt into your logic. Furthermore, to activate C++ 2011 standard, you need to instruct g++ compiler with -std=c++11 option. Refer to this post #143 ([url removed, login to view]) to realize it. See the next sample game session:

Your current points 1000, just type -> PEq[0-9]R[%-&][0-9]: PEq0R%0

4958 milliseconds, you made it within the interval of 7000...

Your current points 1500, just type -> nELJSgd: nELJSgd

4297 milliseconds, you made it within the interval of 7000...

Your current points 2000, just type -> gP[0-9][0-9]uCO: gP00uCO

5816 milliseconds, you made it within the interval of 7000...

Your current points 2500, just type -> [0-9][0-9]nQp[0-9]m: 00nQp0m

6131 milliseconds, you made it within the interval of 7000...

Your current points 3000, just type -> UIqIaBX: UIqIaBX

5861 milliseconds, you made it within the interval of 7000...

Your current points 3500, just type -> [%-&]ErooJ[%-&]: %-&ErooJx

8966 milliseconds, you *failed* it within the interval of 7000...

String offset is 381, your total penalty is 2728...

Your current points 772, just type -> [%-&]pXwMFm: %pXmS2g

10698 milliseconds, you *failed* it within the interval of 7000...

String offset is 42, your total penalty is 3782...

Bye...

Use isdigit() and isalnum() utility functions wisely. Finally, like the previous assignment, implement the specified task with your shortest possible coding.

Keahlian Adobe Air, Desain Permainan, Pembuatan Game, Objective C, Swift

Lihat lebih lanjut: android game maker create application, blackberry game typing speed, game menu create photoshop, easy game server create, trading card game design create, league game list create excel, 2d physics game create world, download flash game typing maniac, physics game flash create, clean non working xbox game disc, card game flash create, text browser game create, experience working unity game development tool, spot difference game pics create, flash fight game create, best language game macro, flash game child create, online multiplayer racing game can create car, use game create bot warcraft, flash game create server, flash game create track race, browser game create php, racing game flash create track, working language english, flash game avatar create

Tentang Pemberi kerja:
( 6 ulasan ) SUNNYSIDE, United States

ID Proyek: #11597579

Diberikan kepada:

$15 USD dalam 1 hari
(0 Ulasan)
0.0

8 freelancer menawar pada rata-rata $42 untuk pekerjaan ini

$25 USD dalam 1 hari
(6 Ulasan)
4.9
perunandrej

Hi. Contact me to discuss problem over chat. It would be great if you give me more information .

$25 USD dalam 1 hari
(1 Ulasan)
0.6
$70 USD dalam 1 hari
(0 Ulasan)
0.0
HygorLBM

I'm used to this kind of game (in C/C++) because I already worked with many similar university projects/works. Also, C/C++ are my favorite languages, and I'm well oriented at how to build, debug and optmize codes of th Lagi

$55 USD dalam 3 hari
(0 Ulasan)
0.0
usamamw141

Hello there, Award me this project, I am willing to do your project in a perfect way will provide after delivery support and teaching of this [url removed, login to view] free to inbox me now.

$70 USD dalam 1 hari
(0 Ulasan)
0.0
techvision3

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have c Lagi

$25 USD dalam 1 hari
(0 Ulasan)
0.0
bellamystraat

Dear Customer, I read carefully your specifications and they seem to be pretty clear. The core of the project can be solved finding the edit distance [url removed, login to view] My bid is related to Lagi

$50 USD dalam 3 hari
(0 Ulasan)
0.0
bawenang

Greetings, I'm interested in your job offering. I'm a seasoned game developer, and especially in Unity 3D. I've worked with Unity 3D for the last 3 years now. And before that, I have worked using lots of other game Lagi

$25 USD dalam 1 hari
(0 Ulasan)
0.0