/PROJET-C

C Language - A program in the shell (no graphic library)

Primary LanguageC

PROJET C

English

A school project which goal was to simulate a city's traffic in the Unix shell, as a first step to learn C language programming.

We've chosen to replicate Konigsberg's map in order to have an interesting dynamic with boats, cars, pedestrians, rabbits, tramways and helicopters traveling through the map.

Once the program is launched you can choose within two modes :

  • Normal
  • Danger

The main difference between the two modes is the traffic density (entities spawn more often in the Danger mode), and at the beginning of the Danger mode, there's a crash occurring between a car and a tramway.

The spawns of the entities are completly randomized, so each time you launch the program you get an unique result.

Although, depending the Unix version you're using, the rendering might look different. Read the report for further information.

Preview image:

Preview on some Ubuntu distribution

Français

Un projet d'école dont le but était de simuler un trafic urbain dans le terminal bash, afin d'apprendre les bases du langage C.

Nous avons choisi de reproduire la ville de Konigsberg afin d'avoir une dynamique intéressante entre les différentes entités : bateaux, piétons, véhicules, tramways, lapins & helicoptères.

Une fois le programme lancé, vous avez le choix entre deux modes:

  • Normal
  • Danger

La principale différence entre les deux modes est la densité du trafic : les entités apparaissent plus fréquemment, et au début du lancement a lieu un crash entre le tramway et une voiture, provoquant des gerbes de flammes.

L'apparition des entités est complètement aléatoire, provoquant ainsi un résultat unique à chaque lancement du programme.

En fonction de votre OS, le rendu peut différer. Se référer au rapport pour plus d'informations à ce sujet.