Giter VIP home page Giter VIP logo

archery-game's Introduction

Archery-Game!

Screen Shot 2023-05-31 at 16 02 12

Project: Archery Game

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.

General Information

The game area coordinates are -10 to 10 grid in x and y.

Game Initialization

  1. The first archer (A) represents the user. User enters the coordinates of his/her character. The program should control the validity of the location.

  2. The second and third archers are placed in random locations in the game area. The archers should be shown on the coordinate plane.

  3. 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

The archer with FA always wins against PA, PA against IA, and IA against FA.

  1. Each archer has different health state (60, 80 or 100), initiated randomly at the beginning of the game.

Game Playing Rules

  1. 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.

  2. An arrow can travel max. 15 units. Otherwise, there is no attack.

  3. Each attack decreases 25 health points from the winner. The health point of the loser becomes zero.

  4. 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)

  1. 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.

Sample Game Screens

Screen Shot 2023-05-31 at 16 02 54

archery-game's People

Contributors

inomisay avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.