From 4cefe0f4053b0bb4f76c8c09f0012edef2367193 Mon Sep 17 00:00:00 2001 From: jy330545 Date: Sun, 10 Jul 2016 23:27:36 -0400 Subject: [PATCH 1/6] Add files via upload --- finalproject.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 finalproject.txt diff --git a/finalproject.txt b/finalproject.txt new file mode 100644 index 0000000..ef574a7 --- /dev/null +++ b/finalproject.txt @@ -0,0 +1,8 @@ +Justin Yu +my idea is to design a text adventure game that simulates an event with the ending totally depending to user's decisions. This will be done using mostly printf and scanf command, although other concepts are also being applied. +The game will give out instructions using printf and the code will recognize player's decision through scanf. +The game will use loop to determine when to exit and end the game. +The game will use structrues to store data and progress a player has made while array will be more specificly storing the terms used. +My reason for picking this game is that I personally am a big fan of text based games and I think it will be cool if I can design one myself. Also, it enables me to apply everything I have learned about C which really makes this idea even better. +I don't think my game will be using any external library. + From a8c293116db8a625016a87c11499b025fe26b837 Mon Sep 17 00:00:00 2001 From: jy330545 Date: Fri, 15 Jul 2016 09:43:59 -0400 Subject: [PATCH 2/6] Add files via upload --- README.txt | 21 ++++++ a.out | Bin 0 -> 12870 bytes final.c | 188 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 209 insertions(+) create mode 100644 README.txt create mode 100644 a.out create mode 100644 final.c diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..a364165 --- /dev/null +++ b/README.txt @@ -0,0 +1,21 @@ +This is a game about you being trapped in a dungeon and you have to make decisions in order to escape. +You may type in the number that represents your decision. +The game will proceed towards different endings based on your input. +You will be given the choice of either restart the game or terminate the game whenever you reach the end of that round, so you may make a second attempt if you would like to. +If you input a variable other than the options provided, you will be immediately notified that it was not a valid move. +Simply reenter ./a.out to manually restart the game. +Instruction is also stated at the beginning of the game in case if you forget. + +I did make a change that do not follow my original proposal, which is how structures are used in my code. +I think the reason behind that is: I feel that I was rushing through the project because I was running out of time. + +This is what I have accomplished: +Instructions will be given out through printf and player's input can be recognized by scanf. +Player has the ability to decide when to end the game due to a do-while loop I Implemented. + +Structures will not be used to store data and progress, but instead give out an evaluation I wrote based on player's performance. + +Strings will be printed whenever they are set to. + +Only one function is necessary throughout my code and it is void main(). +Variables are used everywhere across the code. \ No newline at end of file diff --git a/a.out b/a.out new file mode 100644 index 0000000000000000000000000000000000000000..938ff7ebe7eafde14403482269a4ab85f32cf618 GIT binary patch literal 12870 zcmeHNeQ;dWb-&v6hYYqPJ5CU|!Pf~MOk%G;Fd&-{@5+|_1o8)#456)AJ?(p|edz6b z>-XW6fF=sUB#L9=rj&8gB;#pFOFHe;(?41@osI;~*iELBaTwY#EtxV5PzgiF36xQ3 zlkM-^kJauN6-7f%LA5wOFPSskDP?FoA^L{Hj}G%T`t zHU23EsJ-=T_x|?N-~5IBZ^xhf{;?k?Q{#X0lLtvw{{#HMWeYf0Ex>)lRp@K4LhrZ= zeb-g!_kzyx-&n2%VIg}M{Fftl-OjREC-ieWc4Whx>E&4|jzZAF$jl98bA_R7-gI1| z<_c!ON`d1=d9;%}F$Gb!XgVG!gGJv{lq}oV)7`l{yDfD`71~~fwxw=^RSEnh#gk^F z2{8Fv$HjGyvx4aTindzdN%oM!;~Si1q$2`OWp-`9s3`_(C~3RObPr4geM6XG81NBeQ$H$WY_`Q1f4!VIdVT`>#6aIYI!R5HS6bJO5^aJo z&HvnN68y&a^Tu;;?lPJ#89$wkA^ZbkG)}w_y?fLczaZsbRq~^EErY!*UU>wP)1QYS zM=vaX?|ROf-Z@YHGRE$D_Bt>`H&#tpePog&tAf9B>FCTO5NTb@WL~{dZ_MDd=Of zO|2(>hDe+oCW*r&yQB?}K~M`ppOsn)^R&c53(=t^UNhNF+--upYt$IOIK2q)%=e-E z5Ci)_}u=owErO9EEI7_mxtOE2j zK{Et>m7re|^qACFny2q?(Qxtv(WUL|BjD~6+|qUf@XXujMsp=F!cP)cs)p+m#C5TT zE7^MDGh|zuI2WOH@(Mxk|2Lo~Rs*_1(9;CHLD07edYPc_67&Kfj6a%Z?=q-5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 @@ +#include +#include + +void main() { + +printf("\n"); +printf("\n"); + +printf("Hello User. You don't know me, but I know you.\n"); +printf("I want to play a game.\n"); +printf("You are trapped in a dugeon, and you have to escape by making decisions.\n"); +printf("Every move you make is crucial to your life.\n"); +printf("Know that I'm not lying. Better hurry up.\n"); +printf("Live or die, make your choice.\n"); +printf("\n"); +printf("Enter 1 whenever you think choice 1 is the one you want to go with and do the same for other choices\n"); + +//introduction of the game// + +struct user { + + char user [20]; + char grade [3]; +} user_failed, user_succeed; +//a structure that will be used later on to give players their grade// + +char goodEnd[] = "Safe and Sound"; +char badEnd[] = "Endless Nightmare"; +char gameOver[] = "GAME OVER"; +char invalidMove[] = "That's not a valid move"; +//a few characters that serve different purposes// + +int choice1; +int choice2; +int choice3; +int choice4; +int choice5; +int again; +int i; +//a few variables that will be used to receive player's choice// + +do { //a do while loop that will terminate the game when requested// + +printf("\n"); +printf("\n"); + +printf("You woke up in a small room with the wall painted red. the door is not locked. It seems like you are experiencing a memory loss. You can't recall anything asaide from a voice you heard from a doll with a creepy mask. You are not sure if you cam trust it. What should you do?\n"); +printf("1. exit the room.\n"); +printf("2. stay in the room.\n"); +scanf("%d", &choice1); + +//a user will read the text and be given two options where he or she has to enter an integer. The integer will be scanned through scanf and output a following text based on the input integer// + +if(choice1 == 1) { + printf("You left the room and found yourself ended up in a hallway. You have to decide which direction you want to explore. What will your choice be?\n"); + printf("1. left\n"); + printf("2. right\n"); + scanf("%d", &choice2); + + if(choice2 == 1) { + printf("You walked towards the left side of the hallway. Unfortunately, you ran into a creature ten times your size. It seems like he doesn't appreciate outsiders like you.\n"); + printf("%s\n", gameOver); + } + + else if(choice2 == 2) { + printf("You ended up in front of the stairs, you can choose to either go up or down. Also, on your way to the stairs, you found a key. So, would you like to go up or down?\n"); + printf("1. up\n"); + printf("2. down\n"); + scanf("%d", &choice3); + + if(choice3 == 1) { + printf("You walked up the stairs and took a quick glance at the floor you just arrived. You noticed that there are three doors all shut on this floor. The one on the left has a painting of devil on it, while the one on the right has a painting of angel, and the middle one, a painting of a monkey. So, what will your choice be? The angel? The devil? Or... The monkey?\n"); + printf("1. angel\n"); + printf("2. devil\n"); + printf("3. monkey\n"); + scanf("%d", &choice4); + + if(choice4 == 1) { + printf("God: Where did your humanity go...\n"); + printf("%s\n", gameOver); + } + + else if(choice4 == 2) { + printf("Satan: You belong with me!\n"); + printf("%s\n", gameOver); + } + + else if(choice4 == 3) { + printf("Thank to Darwin, you made it to the ground! You are now right in front of the gate that separates you from the outside world. Suddenly, you heard the creepy voice again:\n"); + printf("Congragulations, User. I'm really glad that you made it this far. Now, all you have to do is answer one simple question and then I will set you free.\n"); + printf("Do you hate me?\n"); + printf("1. Yes\n"); + printf("2. No\n"); + printf("3. Obviously\n"); + scanf("%d", &choice5); + + if(choice5 == 1 | choice5 == 3) { + printf("Sure\n"); + printf("The gate slowly opened and you finally made it out of the dungeon. In front of you, stood a giant maze and you heard a mechanic sound: \n"); + printf("Welcome to stage 2\n"); + printf("BAD END: %s\n", badEnd); //char badEnd is used here// + } + + else if(choice5 == 2) { + printf("Awwwwwwwwwwwwwwwwwww\n"); + printf("The gate slowly opened and you finally made it out of the dungeon. In front of you, is the park that you walk around every afternoon. Right after you step on to the ground, the entrance closed and disappeared as if it never existed. You are safe now.\n"); + printf("GOOD END: %s\n", goodEnd); //char goodEnd is used here// + struct user user_succeed; //struct user is applied here to print out the username and grade// + strcpy(user_succeed. user, "User"); + strcpy(user_succeed. grade, "A+"); + printf("name: %s\n", user_succeed. user ); + printf("grade: %s\n", user_succeed. grade ); + } + + else { + printf("%s\n", invalidMove); //else is used to ensure if the player input a variable other than 1 and 2, it will notify them that the input is invalid along with char invalidMove// + } + + } + + else { + printf("%s\n", invalidMove); + } + + } + + else if(choice3 == 2) { + printf("You decided to go further down and that's definitely not a wise choice you made. No one has seen you ever since...\n"); + printf("%s\n", gameOver); //char gameOver will be the output of a false move that leads to the end of game// + } + + else { + printf("%s\n", invalidMove); + } + + } + + else { + printf("%s\n", invalidMove); + } + +} + +else if(choice1 == 2) { + printf("After a while, the light suddenly went out. You are terrified. You heard the sound of something moving towards you, faster and faster. And...\n"); + printf("%s\n", gameOver); +} + +else { + printf("%s\n", invalidMove); +} + +if(choice5 != 2) { //struct is implemented here again along with a condition that choice5 != 5, when choice5 == 5, another struct: struct user user_succeed will be the output rather than this one// +struct user user_failed; +strcpy(user_failed. user, "User"); +strcpy(user_failed. grade, "F"); +printf( "user: %s\n", user_failed. user ); +printf( "grade: %s\n", user_failed. grade ); +} + +printf("\n"); +printf("Do you wish to try again?\n"); +printf("1. Yea\n"); +printf("2. Nope\n"); +scanf("%d", &again); + while(again == 2) { + printf("\n"); + for(i = 0; i < 10; i++) { + printf("Promise me you will come back later qwq!!!\n"); + printf("Have a nice day qwq!!!\n"); } + break; + } + + while(again != 1 && again != 2) { + printf("%s\n", invalidMove); + printf("Enter ./a.out to restart the game qwq!!!\n"); + break; + } + +} + +while(again == 1); //gives the option of cotinue/terminate the game// + +return; + +} + + From 96255bb59bf1c303945cc440a25226ad6322858f Mon Sep 17 00:00:00 2001 From: jy330545 Date: Fri, 15 Jul 2016 10:00:32 -0400 Subject: [PATCH 3/6] Delete a.out --- a.out | Bin 12870 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 a.out diff --git a/a.out b/a.out deleted file mode 100644 index 938ff7ebe7eafde14403482269a4ab85f32cf618..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12870 zcmeHNeQ;dWb-&v6hYYqPJ5CU|!Pf~MOk%G;Fd&-{@5+|_1o8)#456)AJ?(p|edz6b z>-XW6fF=sUB#L9=rj&8gB;#pFOFHe;(?41@osI;~*iELBaTwY#EtxV5PzgiF36xQ3 zlkM-^kJauN6-7f%LA5wOFPSskDP?FoA^L{Hj}G%T`t zHU23EsJ-=T_x|?N-~5IBZ^xhf{;?k?Q{#X0lLtvw{{#HMWeYf0Ex>)lRp@K4LhrZ= zeb-g!_kzyx-&n2%VIg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@NB{jNqrAjk;Pq$g~mnwEJU9YdRDU1^=UwJr~uo z=NjW5j#`NmgU$o`Jkts~`ID|cQnAI8v9+MLAwCNYdTvtu`n;#u*{2nMqkryD{B*C9 ziulbK^=ClmL}(~c7@aOL;z-G{S1-MxL; zEW@X9dyu}l1lg#V#YY;?4%q^vY}WF#gRVbdx>+m2H{q-q4>P=3;&UB+u(^H59k)XB z0!&$Y$CYoaS^63@!sI)y6&H&m5UIhk^lDtsN+0Be&3g~yQe+k%$Y8V_frjgZESBB# zz=6#E?%m+3X%XKZSax5}!Ol!i_Tb*Vyh(`kJhnr=R4 zyZiQM=e*Uoe>eH6&m3@VM(^743bnX~-5_X-S8=Jj@q+do>vnZVdyXP{ZM?AE*j&?f z!&PofM(Ahp*%6=2Vf{fEXgOXM--h6$xe=3(7$ycp<)bWqG*Ga-B7XPr>|qroyInI3 c5h3-L&*zM~11)fko+t8|4yHPfiK$`#3#5Nnpa1{> From 1b830002a7fe2e885d0c07ff5e99e21f2028e647 Mon Sep 17 00:00:00 2001 From: jy330545 Date: Fri, 15 Jul 2016 10:00:51 -0400 Subject: [PATCH 4/6] Add files via upload --- final | Bin 0 -> 12870 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 final diff --git a/final b/final new file mode 100644 index 0000000000000000000000000000000000000000..938ff7ebe7eafde14403482269a4ab85f32cf618 GIT binary patch literal 12870 zcmeHNeQ;dWb-&v6hYYqPJ5CU|!Pf~MOk%G;Fd&-{@5+|_1o8)#456)AJ?(p|edz6b z>-XW6fF=sUB#L9=rj&8gB;#pFOFHe;(?41@osI;~*iELBaTwY#EtxV5PzgiF36xQ3 zlkM-^kJauN6-7f%LA5wOFPSskDP?FoA^L{Hj}G%T`t zHU23EsJ-=T_x|?N-~5IBZ^xhf{;?k?Q{#X0lLtvw{{#HMWeYf0Ex>)lRp@K4LhrZ= zeb-g!_kzyx-&n2%VIg}M{Fftl-OjREC-ieWc4Whx>E&4|jzZAF$jl98bA_R7-gI1| z<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#`NmgU$o`Jkts~`ID|cQnAI8v9+MLAwCNYdTvtu`n;#u*{2nMqkryD{B*C9 ziulbK^=ClmL}(~c7@aOL;z-G{S1-MxL; zEW@X9dyu}l1lg#V#YY;?4%q^vY}WF#gRVbdx>+m2H{q-q4>P=3;&UB+u(^H59k)XB z0!&$Y$CYoaS^63@!sI)y6&H&m5UIhk^lDtsN+0Be&3g~yQe+k%$Y8V_frjgZESBB# zz=6#E?%m+3X%XKZSax5}!Ol!i_Tb*Vyh(`kJhnr=R4 zyZiQM=e*Uoe>eH6&m3@VM(^743bnX~-5_X-S8=Jj@q+do>vnZVdyXP{ZM?AE*j&?f z!&PofM(Ahp*%6=2Vf{fEXgOXM--h6$xe=3(7$ycp<)bWqG*Ga-B7XPr>|qroyInI3 c5h3-L&*zM~11)fko+t8|4yHPfiK$`#3#5Nnpa1{> literal 0 HcmV?d00001 From 088682d086f6294c381c28f95d1345e6b97427a7 Mon Sep 17 00:00:00 2001 From: jy330545 Date: Fri, 15 Jul 2016 10:21:09 -0400 Subject: [PATCH 5/6] Add files via upload --- README.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.txt b/README.txt index a364165..2d15cfa 100644 --- a/README.txt +++ b/README.txt @@ -18,4 +18,11 @@ Structures will not be used to store data and progress, but instead give out an Strings will be printed whenever they are set to. Only one function is necessary throughout my code and it is void main(). -Variables are used everywhere across the code. \ No newline at end of file +Variables are used everywhere across the code. + +Here is what you have to actually input in order to beat the game: +1 +2 +1 +3 +either 1 or 2 or 3 (1 and 3 leads to bad end while 2 leads to good end) \ No newline at end of file From 8d68a578e157c65d596f4790564eb9db485a0112 Mon Sep 17 00:00:00 2001 From: jy330545 Date: Fri, 15 Jul 2016 10:34:44 -0400 Subject: [PATCH 6/6] Add files via upload --- final | Bin 12870 -> 12870 bytes final.c | 6 ++---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/final b/final index 938ff7ebe7eafde14403482269a4ab85f32cf618..bf8c9c44bddb75051455866fbcc5e69f69208c28 100644 GIT binary patch delta 44 zcmX?>ax7&-3zLXyQpoK6&sceOCng*3RF1W