Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 827 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 827 Bytes

TheMachisGame

Last one to pick the matchstick loses the game.

The algorithm works on delicate handler methods and synchronization.

In this app, you have to pick matchsticks. Whoever picks the last matchstick loses the game. Multithreading is achieved with synchronization so that only one player is allowed to pick the matchstick(s) while avoiding deadlock! Must try. The code can handle any exception and App Not Responding errors without compromising the user experience.