Skip to content

adacienciala/MultithreadedMiscellaneous

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multithreaded Miscellaneous

Those are the luckiest tasks that I've chosen to save. They were a part of the additional homework for my Operating Systems class about multithreading. It wasn't supposed to be much advanced - and it's still not - but I think it's funny enough to save.

Requirements and installation

To be able to run them, you need to have the ncurses library. Install it with:

sudo apt-get install libncurses5-dev libncursesw5-dev

Every folder has a makefile, so just compile and then run, using the programs' name - you're ready to go!

Ex 1 - Memory game

Running:

make
./memory

Description

The rules are simple:

  1. Type letters in the presented order.
  2. Use only: w, s, a, d.
  3. 10 rounds to win.

Good luck.

Ex 2 - Stopwatch

Running:

make
./stopwatch

Description

Simple stopwatch. No time limit, get crazy.

Controls:

  • s - start
  • p - toggle pause
  • h/b - add/minus 1min
  • j/n - add/minus 1s
  • r - restart

Ex 3 - Matrix

Running:

make
./matrix

Description

It's just fun to look at, isn't it?

Ex 4 - Space Race

Running:

make
./spaceRace

Description

Space race.
Move left and right to not crash into the enemy's fleet.
Up and down to catch a shield which takes hostile spaceships down.
Time is running out.
Godspeed.

Ex 5 - Cyclists

Running:

make
./cyclists

Description

Cycling race where participants occasionally get and lose motivation. At the top of that... strange accidents may happen.
Gotta see 'em all!

Ex 6 - Treasure Hunt

Running:

make
./treasureHunt

Description

4 bots trying to score 5 points faster than their oppontents. There are a few surprises on the map, though:

  • teleport
  • nerf
  • boost

Ex 7 - Exam

Running:

make
./exam

Description

The ultimate challenge - passing Operating Systems' final exam. The luck was not on our side. The proffesors weren't bothered with our critically low chances. This simulator shows how easy it was to fail that class.

PS Jk, it wasn't that hard, most of us passed just fine. Most.

Notes

This repo was used mainly to play around with the readme. Turn a blind eye ;)

About

The Chosen Seven exercises from multithreading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published