Find Jobs
Hire Freelancers

Design a game program in C++ only

$10-30 USD

Mbyllur
Postuar almost 3 years ago

$10-30 USD

Paguhet në dorëzim
PROGRAM DESCRIPTION: This program you will design a game that guesses the location of a pair of numbers in a matrix with hidden elements. PROGRAM REQUIREMENTS: 1. As with all projects in this course, your program’s output will display your name, your EUID, your email address, the department name, and course number. This means that your program will print this information to the terminal (see the sample output). 2. See the provided SAMPLE OUTPUTS to better understand the requirements. 3. Declare an integer constant named SIZE and initialize with the value of 5. 4. You need to declare two 2D array of integers of using the integer constant SIZE. The number of rows and columns are equal for both arrays. • One of the 2D arrays contains the actual data, name it hidden_board. DO NOT display this array on the screen. It will only be used for processing the data. Using a suitable nested loop, assign a seeded random number between 1 and 25 inclusive to the members of the array. • The second array will be displayed on the screen, name it disp_board. This array will gradually display numbers hidden in the array when you reveal them as the game progresses. Using a suitable nested loop, assign -1 to each member of this array. Here -1 works as a mask behind which the data is hidden. SEE SAMPLE OUTPUT1 5. Display the disp_board matrix. It should just be an array of -1. 6. Using a suitable message, ask the user for the co-ordinates of the disp_board matrix to reveal a number behind the mask. • Check if the user has entered valid values for the co-ordinates. If not, provide a suitable message and ask for the co-ordinates again. You must keep on asking for the co-ordinates until the user gets it right. • If the co-ordinates are valid, reveal the number hidden behind the mask. HINT: To reveal the number, you will copy the corresponding number from the hidden_board matrix to the disp_board matrix. In other words, the number -1 in the disp_board array will be replaced the corresponding number of the same location of the hidden_board array. SEE SAMPLE OUTPUT1 7. Now the game begins. The user has to guess the co-ordinates of the matching number that has just been revealed. For example, in SAMPLE OUTPUT1, 25 has been revealed. So, the user has to guess the location of another 25 that is possibly hidden in the matrix. Of course, the user cannot see where it is, so they are guessing where it is. • Using the suitable message, ask the users to enter the co-ordinates for the guess to match the revealed number. As in Step 6, if the co-ordinates are out of range, keep on asking the user to reenter them until the user enters valid co-ordinates. 8. If the user enters valid co-ordinates, there are three possibilities. 8.1 First Scenario • The user makes the correct guess. To check this, you will check what the number is at the guess co-ordinates in the hidden_board. If it matches a revealed number, the user wins the game. Note that there may be more than one revealed number-- see Scenario 8.2.
ID e Projektit: 30606683

Rreth projektit

13 propozime
Projekt në distancë
Aktive 3 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
13 freelancers are bidding on average $25 USD for this job
Avatari i Përdoruesit
Hi there, I went through the requirements and I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details.
$30 USD në 1 ditë
5,0 (643 përshtypje)
7,3
7,3
Avatari i Përdoruesit
Dear Client! I've read your all description carefully and understood your requirement, so i think i can do your project perfectly. I have good experience in this field. So far, I have accomplished many tasks like this. If you select me, I will work full time to finish this. Let's discuss about budget and deadline on private chat. Thanks. Best regards
$20 USD në 7 ditë
5,0 (66 përshtypje)
5,7
5,7
Avatari i Përdoruesit
I have read all your description. I am professional C++ developer and I am ready to start now. I am sure high quality, good communication. Please contact me and Let's go ahead ! Thanks.
$50 USD në 1 ditë
5,0 (8 përshtypje)
4,6
4,6
Avatari i Përdoruesit
Hi I have a good skill in C/C++, C#, JAVA programing. I have finished many projects using C/C++, C#, JAVA. I can do it perfectly in your timeline. Let's discuss more details in private chat. Thanks.
$20 USD në 1 ditë
5,0 (6 përshtypje)
4,2
4,2
Avatari i Përdoruesit
Dear sir! I'm interested in your project. I have 5 years experience of dealing with C/C++. I can finish your project on time. I hope to work on the project with you. Regards.
$20 USD në 2 ditë
4,9 (6 përshtypje)
3,1
3,1
Avatari i Përdoruesit
★★★★★ C/C++ EXPERT ★★★★★ Hello, there? I can start right now. I have read your description. I am appropriate to your description. I am full-stack, full-time senior developer and have rich experience with the similar projects over 6 years. I promise I will finish this project with high quality on time. I hope you to contact me so that we will have a full discuss with your project. %SKILL% : C/C++, Qt, GUI, ... Best regard! ***** From Josehusam *****
$30 USD në 1 ditë
5,0 (1 review)
2,7
2,7
Avatari i Përdoruesit
Hi, I've read your description carefully. I have more than 5 years experience with c++. **************************************************************** I'm confident in your project with high quality on time. Looking forward to discuss with you project more detail via chatting. I'm very happy to put my bid on your project. Thanks & Best regards!
$30 USD në 2 ditë
5,0 (3 përshtypje)
2,1
2,1
Avatari i Përdoruesit
It is simple game which is using 2D matrix, switch and while loop the code can be completed in 1 day and i have experience of 3+ years in C/C++.
$20 USD në 1 ditë
5,0 (2 përshtypje)
1,7
1,7
Avatari i Përdoruesit
Hello I am a game programmers worked a lot with C++. I made some game on console when I was a student, so I understand it very well. I will help you finish it.
$20 USD në 1 ditë
5,0 (1 review)
1,4
1,4
Avatari i Përdoruesit
Hi Dear. I read your requirement and checked attached file very carefully. I understood very well what you want. I have rich experience in C/C++/C# for 5+ years. I can help you. I ensure the best quality of the result and I will do this in time as you want. If my result will not be satisfied for you, even though you will pay me nothing, it is OKay. I hope your kind reply. Best Regards. Daring W.
$15 USD në 1 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
Hello, I can finish this task quickly. You will have it after a few hours. PM me if you are interested! Regards,
$30 USD në 1 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
Hello there, I have done a lot many projects like this in c++. I have solved such university quietions for people and believe me, they have always got a good grade. Feel free to reach out! Also it seems like you are short on time so hurry up! I can do this for you on time.
$15 USD në 1 ditë
0,0 (0 përshtypje)
0,0
0,0

Rreth klientit

Flamuri i UNITED STATES
Denton, United States
5,0
3
Mënyra e pagesës u verifikua
Anëtar që nga qer 20, 2021

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.