![Screen Shot 2023-05-31 at 16 02 12](https://private-user-images.githubusercontent.com/98346164/242282943-fa305ef1-bf27-4448-b6d1-a96be44cb6ec.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNDUxMjEsIm5iZiI6MTcyMzI0NDgyMSwicGF0aCI6Ii85ODM0NjE2NC8yNDIyODI5NDMtZmEzMDVlZjEtYmYyNy00NDQ4LWI2ZDEtYTk2YmU0NGNiNmVjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA5VDIzMDcwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwYjlkNzk4MjMzZjM4M2EzZGMzNTVkZDE5NDZjZDhjOWZiNTJhNGQ0ZWQyNjlmYTZhMzNiOGI2ZGEwYWYxZDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tl7Oh9SYvnt4GTM7Sxv-meEDlVMPsAAwRAVdHH7FIcw)
The aim of the project is to develop an archery game with three opponent archers. User (archer A) and two other opponents (B and C) take shots at each other with different types of arrows.
The game area coordinates are -10 to 10 grid in x and y.
Game Initialization
-
The first archer (A) represents the user. User enters the coordinates of his/her character. The program should control the validity of the location.
-
The second and third archers are placed in random locations in the game area. The archers should be shown on the coordinate plane.
-
Each archer has unique arrow and shield set. There are three types of arrows that give different damages to different shields: fire arrows (FA), poison arrows (PA), and iron-head arrows (IA).
Three types of shields (Heater, Wankel and Celtic) are available, which are made from different materials and have different shapes and protection against different arrows.
![Screen Shot 2023-05-31 at 16 00 53](https://private-user-images.githubusercontent.com/98346164/242282649-e378d527-1fac-46ce-a217-8b935579562d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNDUxMjEsIm5iZiI6MTcyMzI0NDgyMSwicGF0aCI6Ii85ODM0NjE2NC8yNDIyODI2NDktZTM3OGQ1MjctMWZhYy00NmNlLWEyMTctOGI5MzU1Nzk1NjJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA5VDIzMDcwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlmODcwOTA2MDJkMzAxMWU3ODMxZjRhNjEwZDVhNTFlMWUwYWE0ZWNhZmM4NGM1NDM5MDk5NjUyYTZjYWFhMjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.vRxw0QdvuMvGk2zq8Y2OXeuciBnW8rqsXPRieT91uAc)
The archer with FA always wins against PA, PA against IA, and IA against FA.
- Each archer has different health state (60, 80 or 100), initiated randomly at the beginning of the game.
-
There are two rounds of attacks in each game. Each attack contains only 2 archers. In the first round, the closest two archers shoot at each other. After that, the winner and the other archer shoot at each other.
-
An arrow can travel max. 15 units. Otherwise, there is no attack.
-
Each attack decreases 25 health points from the winner. The health point of the loser becomes zero.
-
In each attack, only the winner gains some score points with respect to the following formula.
Attack Score = 10 * Manhattan_distance_between_archers + (100 - Archer's_health)
- At the end of the game; status, health and scores of each archer must be printed on the screen. It should also be determined which archer (A or B or C) has the maximum score.
![Screen Shot 2023-05-31 at 16 02 54](https://private-user-images.githubusercontent.com/98346164/242283134-12bb1b95-12e2-4ced-8f51-16203ff46821.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNDUxMjEsIm5iZiI6MTcyMzI0NDgyMSwicGF0aCI6Ii85ODM0NjE2NC8yNDIyODMxMzQtMTJiYjFiOTUtMTJlMi00Y2VkLThmNTEtMTYyMDNmZjQ2ODIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA5VDIzMDcwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMwYWQxZTEzNDRlMmY4MGY1Y2E3MDNmZjliNTY0YTc1NzZmY2VjYzUzYzFkNTMwYmM0NDFhYWY2NWU2ZTQ4ZWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.cFlgJMXeATMhxb1_ZjwL0C5WTFB-vsNDDhMZLc3qLTs)