Skip to content

42born2code school project to solve the dinning philosophers problem.

Notifications You must be signed in to change notification settings

ulefebvr/philosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Philosopher dinner

School project realised consisting in solving the philosopher-dinner problem.


Usage

./philo [-vh] [-s spritename]

Options

Option Purpose
-v --verbose display only in verbose mode, no graphics
-s --sprite=[philo|coco|nyangoroge|panpaka] change sprite. philo is the default one
--audio activate music
--lifebar display life on the screen
--maxlife=n modify maxlife value set to 10 by default
--eat=n modify eat time value set to 4 by default
--rest=n modify rest time value set to 3 by default
--think=n modify think time value set to 3 by default
--timeout=n modify timeout value set to 60 by default
-h --help diplay this help message

Dependencies

You need to have the CSFML library installed in order to compile and run this project.


Examples

./philo

png

./philo --lifebar --sprite=coco

png

./philo --lifebar --sprite=nyangoroge --audio --maxlife 50

png

./philo --lifebar --sprite=panpaka --timeout 100

png


Contributors

About

42born2code school project to solve the dinning philosophers problem.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published