https://github.com/radosz99/f1-race
Formula One race simulation using ncurses lib and C++ threads.
https://github.com/radosz99/f1-race
cpp deadlock linux multithreading ncurses
Last synced: 9 months ago
JSON representation
Formula One race simulation using ncurses lib and C++ threads.
- Host: GitHub
- URL: https://github.com/radosz99/f1-race
- Owner: radosz99
- License: mit
- Created: 2020-05-07T13:19:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-10T21:14:43.000Z (over 5 years ago)
- Last Synced: 2025-01-12T00:27:06.778Z (10 months ago)
- Topics: cpp, deadlock, linux, multithreading, ncurses
- Language: C++
- Homepage:
- Size: 79.8 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**
Wrocław University of Science and Technology
**
** Computer Science, Faculty of Electronics, 6 semester
**
Radosław Lis, 241385
# Table of Contents
- [General info](#desc)
- [Run](#run)
- [Prerequisites](#pre)
# General info
F1-race simulation
- 14 F1 drivers - with randomly given skill, decreasing fuel condition, overtaking AI and obviously desire of winning the race
- 3 pitstops - with 3 engineers in each, unfortunately each pitstop can handle any driver
- 9 engineers - with randomly given skill, their job is changing wheels and refueling
- 2 storekeepers - with randomly given skill, their job is recycling used wheels and supplying fuel to the pitstop
```
$ mkdir build && cd build
$ cmake ..
$ make
$ ./f1-race
```
# Prerequisites
- [ncurses](https://en.wikipedia.org/wiki/Ncurses)
- [compiler with c++17 support](https://gcc.gnu.org/)
# Simulation
Best to see in 150%. Chill, they are not new Schumachers, just simulation is speeded 4x up. Only 8 bolides because of colours variations :(
