use Xlib to write a small event driven game.

-If you’re not sure what that is, look up “Pixel Dungeon” or “Nethack” for examples. These are event driven rogue-likes, but the genre is irrelevant. You may build any type of game you like, but it must — at a minumum — meet the following requirements:1. Graphics and input must be handled by xevents using xlib.2. There must be some definite “win” condition whereby the game presents the player with a congratulatory remark. Once this is dismissed, the game will exit.3. There must be some definite “lose” condition whereby the game informs the player they have lost. Once this is dismissed, the game will exit.4. You must comment your code clearly such that it is obvious where these requirements have been met.Notes:- You may write your game in any programming language you like, however, you must use xlib.- Your graphics may be as simple or as complex as you like — you may even use XPutImage or any other xlib graphics routine.- Submission is on schoology.- Do not create a zip file- Submit your own work.- Properly indent and comment your work.