Sedang Disiapkan

Psudo snake game in C

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

arrays

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.

Kemahiran: Pengaturcaraan C

Lihat lebih lanjut: snake game using, programming random snake, x interactive, strings programming, searching strings, searching program, searching programming, score time length, programming instructions, programming board game, length score, input board game, game programming code, functions programming, function programming, exit letter, programming strings, programming random number, programming input output, programming functions, programming function, programming continue, programming arrays, basic game programming, game board instructions

Tentang Majikan:
( 0 ulasan ) United States

ID Projek: #1572782

Dianugerahkan kepada:

dobreiiita

Hi, I am C expert and can surely help you here, Please check your inbox,Thanks

$30 USD dalam sehari
(40 Ulasan)
5.1

6 pekerja bebas membida secara purata $47 untuk pekerjaan ini

diepbp

I am confident to handle your project. Please check your inbox for details, thank you.

$30 USD dalam sehari
(36 Ulasan)
4.8
minhtridn2001

Hey! I can do this!

$30 USD dalam sehari
(16 Ulasan)
4.3
Algotrade

Please see PMB

$60 USD dalam 2 hari
(9 Ulasan)
3.5
ducle

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!

$35 USD dalam 2 hari
(6 Ulasan)
3.2
aleexaibi

confident to do this job i am expert in c, c++ and java ..!

$99 USD dalam 7 hari
(2 Ulasan)
1.9