Create a game in C similar to that of snake. It will start by asking the user for their name, and then it will check a file to see if that name has been used before. If the name is found, then it asks if the user wants to start playing from their previous score. The user will select to continue or start from 0. If the name is not found it will say "welcome _______" and put their name into the file. The game has no graphics, it is completely text based (no color either). The borders are made from "-" and "|". The board consists of 4 walls about 10x10 or 15x15 (length and width should be defined and then used throughout the program so it can be changed). The "snake" is the letter "C" which does not grow in length. The objective is to move around the map and collect the "$" which must be randomly generated onto the map. After the player decides to start a new game or continue they will be given instructions. "press 'a' 's' 'd' 'w' followed by enter to move(or 'x' to exit), each move will reduce the score by 1, and each time you collect a '$' your score goes up by 5. Hitting the wall will cause you to lose and your score to go back to 0" Once the player either hits 'x' to exit or hits the wall, their score is recorded back into the txt file. Whether it be 0 if they lost, or their score at the time that they exited.
For full credit my project will need:
interactive input and output
input and output from/to files
a sorting function (that is used)
a searching function (that is used)
some randomness, using the random number generator( which is the '$')
well organized code using functions
I know very basic C. I know how to use arrays, strings, basic sorting, basic searching, basic random, pretty basic scanfs, printfs, fscanfs, fprintfs, etc, and very basic input and output of data to txt files using strings. Also, great stress has been put on the use of functions in this course, so the use of good functions is important. This program has to be as simple as possible to make it believable that it was written by me, since this is my first programming class ever.
6 pekerja bebas membida secara purata $47 untuk pekerjaan ini
I have 4 years experience in C/C++ programming. I can handle this project. Could you please give me more details (What compiler would you like to use? What operating system will the game run in ...)? Thank you!