Final project for my programming foundations course.
- C - standard libraries
- Variables
- Arrays
- Loops
- Structures
- Functions
- File manipulation
- Dynamic memory allocation
- Clone the repository.
- Make sure you have
gcc
installed. - Open terminal on project's directory.
- Run
gcc maingame2.c -o maingame
to compile. ./maingame
to run the program.
As this project runs entirely on the command line, the only control is the keyboard.
- When running the program you'll be received with this screen.
- First you'll need to register to play. (press
2
)
Set username and password, and you'll be brought back to the main screen.
- Press
1
to start playing. You will first need to sign in.
Chose your starting suitcase, then start picking other cases using the numbers on the keyboard.
- After you've opened a certain amount of cases, the bank will make an offer.
Press 1
to accept the offer or 2
to decline and continue playing.
- If you decline all the offers and reach the last case, you'll be granted a choice. Keep the first case you chose or take home the remaining case.
Press 1
to keep your case or 2
take the remaining case.
- After finishing every game, your stats will be saved, and you'll return to the main screen. Press
3
and enter your username to view your stats.
- Finally, you can press
4
to exit the program. And don't worry, your stats will be saved.
Manuel Rodriguez Urdapilleta
29/01/2021
![Slide2](https://github.com/manuelrurda/DealorNoDeal/assets/62727899/0effb98e-1044-4979-b2e4-0767a829f0b9)