Hello community friends! Greetings from @mrdani12 to all my beautiful friends, Hopefully, you guys are doing well, Today I am going to share the Project which is given to us in the final Programming fundamental subject, Every individual has to make a project, Today Is my PF paper, This is our beginning in the programming you are unaware about the project that how to make project in c language, Other language are easy to make project, In c language it is more difficult to make a project.
I want to do a project that is different from another project, Many students in our class say that we will do a bank management system project, and some say for atm, But I want A little bit different because everyone wants to do that management project which is also good. I think about the game to make a game in c language.
I try many games but some games need graphics.h library which is a little bit difficult process, then I think about the Hangman Game, I heard much about this game from the seniors they said making the game will be easier for you and better than the management systems.
Let's discuss what is hangman game, A hangman game is a word guessing game, if you guess wrong your chances will be less and a picture of a man will be hanging with a wood, if you guess all the words wrong and you attempt will complete a hang man will hang from the wood.
I write code for Hangman game I which I use array, 2d arrays, function,s and many more things, First I use a code in which I use the name of the user first, you user enters the name then the next step is choice, where I use 2d arrays to give 2 options for word guessing one is fruits and the other is name of friends, You user enter their choice, The game will start, which get a random name from the selected test which I store in the array.
I use the rand function which will randomly select names in real time by using time.h library in the compiler.
After that I will ask for the letter to guess, I use the function for this, When the user enters a letter which is in the selected word then the choice will not be less, if the user makes wrong guesses then the chances will be less and finally the figure of hangman will be draw in the screen.
This is a very good experience in my beginning as a programmer, hopefully, I will make something big in the future.
You best-regarded @mrdani12
Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!
Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).
You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support.