This project was completed during my assistant recruitment training. The project describes a scenario where you, a full-time programmer from a small company who also takes on freelance gigs, are approached by a friend wanting to build a restaurant in your hometown. Knowing you're looking for new work, they offer you a lucrative opportunity to create a small simulation restaurant game using multithreading. This game would simulate customer behavior, including their patience levels, to help your friend understand restaurant operations.
The project contains three packages:
- DB: This package stores all game progress.
- meal: This package contains all classes related to game properties, such as customer, food, and drink.
- recreate: This package contains all classes related to game logic.
- The main class is located at ./src/recreate/Main.java


- The game starts with a 60-second timer.
- Every second, the game will shows the current list of customers and generates a new customer with a set probability by increasing patience meter by 10%.
- The goal of the game is last for 60 seconds without your patience meter reaching 0%.
- Game result if you survive the 60 seconds, you win! Your score is recorded in a local text file. If your patience meter reaches 0% before the timer ends, you lose.
- Customers, foods, and drinks will appear in random order.




