/DealorNoDeal

The final project for my programming fundamentals course.

Primary LanguageC

Deal or No Deal

Final project for my programming foundations course.

How was this built?

  • C - standard libraries

What did I learn?

  • Variables
  • Arrays
  • Loops
  • Structures
  • Functions
  • File manipulation
  • Dynamic memory allocation

Installation

  1. Clone the repository.
  2. Make sure you have gccinstalled.
  3. Open terminal on project's directory.
  4. Run gcc maingame2.c -o maingame to compile.
  5. ./maingame to run the program.

Usage

As this project runs entirely on the command line, the only control is the keyboard.

  1. When running the program you'll be received with this screen.

first-screen

  1. First you'll need to register to play. (press 2)

registration
Set username and password, and you'll be brought back to the main screen.

  1. Press 1 to start playing. You will first need to sign in.

first-choice
Chose your starting suitcase, then start picking other cases using the numbers on the keyboard.

  1. After you've opened a certain amount of cases, the bank will make an offer.

offer
Press 1 to accept the offer or 2 to decline and continue playing.

  1. 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.

last-offer
Press 1 to keep your case or 2 take the remaining case.

  1. 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.

stats

  1. Finally, you can press 4to 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)