![image](https://private-user-images.githubusercontent.com/86202027/254448573-4b5a57ac-e480-488b-83ad-1391ab40e5b6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5OTMwNTYsIm5iZiI6MTcyNTk5Mjc1NiwicGF0aCI6Ii84NjIwMjAyNy8yNTQ0NDg1NzMtNGI1YTU3YWMtZTQ4MC00ODhiLTgzYWQtMTM5MWFiNDBlNWI2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDE4MjU1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTllODU1MjRmMTRmZmZkY2YxMmM5ZDAzYTE2MDY5NTJkOTRkNjExN2I1MTYzMzg2NzUwNDIwMDM2MDNlMGU1ZTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OBI02Dd8IYp60Jwvn_e7ZO2vmgQGeY1aT_mFjn2MBDI)
Welcome to Greedy Snake, a classic and addictive game that was developed as the final project for software engineering honors course during my freshman year at Tongji University.
Greedy Snake is a retro-style game where you control a snake on a quest for food. The objective is to guide the snake to eat as much food as possible while avoiding collisions with its own body. With its simple yet challenging gameplay, Greedy Snake provides a fun and nostalgic experience for players of all ages.
To run the Greedy Snake Game, clone the repository and open the "snake.exe" file in the "Release" folder.
![image](https://private-user-images.githubusercontent.com/86202027/254443836-c57df152-acd4-43d5-a842-2a720d322bdb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5OTMwNTYsIm5iZiI6MTcyNTk5Mjc1NiwicGF0aCI6Ii84NjIwMjAyNy8yNTQ0NDM4MzYtYzU3ZGYxNTItYWNkNC00M2Q1LWE4NDItMmE3MjBkMzIyYmRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDE4MjU1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBhODRmYmNkMzI4YjJiMzM1NWQ2YjRhNzQ2YTU5Y2RhNmMyNjc5OTJlZDgzOTI1NzE3ZDFhNjgwYjg5MGQ2NzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.x5bBkxzXRSfH_yYCFM629yzqeCbqHdSvo5tqJDyp_FE)
- Start: Begins the game.
- RankingList: Displays the top scores.
- Exit: Quits the game.
![image](https://private-user-images.githubusercontent.com/86202027/254444694-60c28e63-bcd0-4bfb-b51f-4238d296a1d3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5OTMwNTYsIm5iZiI6MTcyNTk5Mjc1NiwicGF0aCI6Ii84NjIwMjAyNy8yNTQ0NDQ2OTQtNjBjMjhlNjMtYmNkMC00YmZiLWI1MWYtNDIzOGQyOTZhMWQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDE4MjU1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJiOTNiYzI0M2ZlYWI5ZjA5YjAxNTRhOTBmN2Q3MDllMzdhMmU2NzRhMDQ3MTkyYzA5ZTBmNTU3MmQ2MjRhMzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jHrJ4wDo9OTHkxDVtiN4om28RRM78SQz_oYigUahke8)
- Easy: Choose this for a simple difficulty level.
- Normal: Choose this for a moderate difficulty level.
- Difficult: Choose this for a challenging difficulty level.
![image](https://private-user-images.githubusercontent.com/86202027/254443908-e9875309-6474-4189-b53d-577e478e0af5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5OTMwNTYsIm5iZiI6MTcyNTk5Mjc1NiwicGF0aCI6Ii84NjIwMjAyNy8yNTQ0NDM5MDgtZTk4NzUzMDktNjQ3NC00MTg5LWI1M2QtNTc3ZTQ3OGUwYWY1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDE4MjU1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM1YzMzZGIxMWQ5NzdlZjQyZDI5ZmZiNzgwZTgwNjQwOTBhZGE0NWUyMWRkNzE4MTQ0ZjhkZDhjYjExOGI0ZDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.j1z00qLPBuDUy2GhTzAUAnGc8QVLZKe2Sy7XWI3ORRI)
The orange square represents food. Your goal is to guide the snake to eat the food.
Use the arrow keys to control the snake's direction (up, down, left, right).
When the snake eats the food, it will grow longer by one unit, and a new piece of food will appear. Your score will increase by one.
The score counter on the left side of the screen displays your current score.
As your score reaches certain thresholds, the snake's movement speed will increase.
If the snake's head collides with its own body, the game ends and you will be redirected to the Game Over screen.
![image](https://private-user-images.githubusercontent.com/86202027/254443955-21f74750-3e4a-4cab-992a-cb420c75d271.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5OTMwNTYsIm5iZiI6MTcyNTk5Mjc1NiwicGF0aCI6Ii84NjIwMjAyNy8yNTQ0NDM5NTUtMjFmNzQ3NTAtM2U0YS00Y2FiLTk5MmEtY2I0MjBjNzVkMjcxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDE4MjU1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI0ZTg3ZjQwNjkyMmJjYjI0YzMzZTRlNzAzNGUyNzM5OTUzYTljMmRlMTM2MTg4NzYyZWU2N2NkYTdlZDhhODQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.nVAYgg_rwE5CYgfcz9TTOY1dyf2Abpd7CmJ7rRJ-suk)
- Clicking the "Back to menu" button will return you to the main menu.
- Clicking "Exit" will close the game.
![image](https://private-user-images.githubusercontent.com/86202027/254444070-85ad8f04-2d8a-4271-9b7b-5d44ce0c0a79.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5OTMwNTYsIm5iZiI6MTcyNTk5Mjc1NiwicGF0aCI6Ii84NjIwMjAyNy8yNTQ0NDQwNzAtODVhZDhmMDQtMmQ4YS00MjcxLTliN2ItNWQ0NGNlMGMwYTc5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDE4MjU1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVmYTA2NTJhMjBjOTY4NTQ2NjllMDJkMTU5ZTg1YTI3OWU1ZTRhYWFjZDJkZDM5ZDI2MjE3OWE2NTNhOWI4YWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.I78_InGaK9XhfEjNjCQMkHI2WUaUOLd7oijjbuVWRnc)
- The Rankinglist screen shows the top five local scores.
- It displays the highest scores achieved locally.
- Clicking the "Back to menu" button will return you to the main menu.
Have fun playing the Greedy Snake Game!