/Operating-Systems-Game

A game project to practice the concepts of threads and semaphores, of the discipline Operating Systems.

Primary LanguageC++

Operating-Systems-Game ๐ŸŽฎ

A simple game in C++ to learn more about threads ๐Ÿงต and semaphores ๐Ÿšฆ!

๐Ÿ“š SSC0140 - Operating Systems I (USP - ICMC)

  • A thread is a basic unit of CPU utilization, consisting of a program counter, a stack, and a set of registers, (and a thread ID.)

  • Traditional processes have a single thread of control.

  • A semaphore is a variable or abstract data type used to control access to a common resource by multiple processes in a concurrent system such as a multitasking operating system.

  • In this game, we will use those concepts to create a really fun mechanic! ๐Ÿ˜Š

How to Install

  • Dowload the file

  • Run make

  • Type make run and the game is about to start!

How to Play

  • 'Who Wants to be a Milionaire' is a classic game, where the player must get all the questions right to win!

  • The player has 30 seconds to answer each question. Just type the answer and the timer stops.

  • If the player runs out of time or answers incorrectly, then he lost everything! ๐Ÿ˜ข

  • If the player doesn't know the answer, he can type 'E' and skip it, this way, he doens't get any points but also is not out of the game.

  • If the player answers correctly all the 20 questions, then he is the big winner! ๐Ÿฅณ