Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Code in Spring boot if it is necessary add ui else code in spring boot java with all belwo details This exercise is designed to
Code in Spring boot if it is necessary add ui else code in spring boot java with all belwo details
This exercise is designed to assess your language and low level design skills, as well as your ability to write readable and concise code.Quality of modeling of entities and behavior, well readable & succinct code, test coverage and a clean & frequent commit history is key.Please keep these factors in mind as you solve the problem.Problem Statement:Design a Magical Arena. Every Player is defined by a health attribute, strength attribute and an attack attribute all positive integers. The player dies if his health attribute touches Any two player can fight a match in the arena. Players attack in turns. Attacking player rolls the attacking dice and the defending player rolls the defending dice. The attack value multiplied by the outcome of the attacking dice roll is the damage created by the attacker. The defender strength value, multiplied by the outcome of the defending dice is the damage defended by the defender. Whatever damage created by attacker which is in excess of the damage defended by the defender will reduce the health of the defender. Game ends when any players health reaches Player with lower health attacks first at the start of a match. Assume two players Player A health strength attack Player B health stregnth and attack Attacking die and Defending die are both sided die with values ranging from Player A attacks and rolls die. Die roll : Player B defends and rolls die. Die roll Attack damage is ; Defending strength ; Player B health reduced by to Player B attacks and rolls die. Die roll : Player A defends and rolls die. Die Roll Attack damage is ; Defending strength ; Player A health reduced by to And so onRules of the Game:You can use Java, Go or Node.js to implement the solution, without using any thirdparty libraries or frameworks common and essential helper libs and packages are allowed ex math.rand is okThe code should NOT be hosted on GitHub or made public. Create a zip of the folder with local git history and you should provide us with the zipYou should provide a README file in the repository that explains how to run the code and any other relevant information.You should provide unit tests for your solution.We expect you to commit frequently with relevant commit messages. Multiple incremental commits are valued over one allinclusive commit.Evaluation Criteria:We will evaluate your solution based on the following factors:Simple design: Does the code have a clear and simple design? Is it easy to understand and modify?Readability: Is the code wellorganized and easy to read? Are the naming conventions clear and consistent?Modelling: Are the objects and classes used in the code welldesigned and appropriate for the problem at hand?Maintainability: Is the code easy to maintain and modify? Are there any potential areas of concern or technical debt?Testability: Are there comprehensive unit tests for the code? Does the code have a high degree of test coverage?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started