Please do it Python(.py)--> I will hit a like..... Assume that there are two teams and they
Fantastic news! We've Found the answer you've been seeking!
Question:
Please do it Python(.py)-->
I will hit a like.....
Transcribed Image Text:
Assume that there are two teams and they are team attacker and team defender. Therefore, at a state of the game one agent in each team is left alive respectively. Here, the defender is given a lifeline called HP which will be assigned randomly. Furthermore, the attacker agent will try to give maximum negative HP to the defender agent to decrease his(d) chances of survival in the game. On the other hand, the defender agent will try to protect himself by receiving the lowest negative HP possible from the attacker agent. Furthermore, the attacker can have a choice from a number of bullets from his gun and the optimal moves will cost a certain maximum negative HP (chosen from randomly assigned values within the range of minimum and maximum negative HP). Here, are the following things you need to do using Alpha-Beta Pruning algorithm: → Sample Input 1: 1. Enter your student id: 17301106 2. Minimum and Maximum value for the range of negative HP: 130 Note: Here, the second input is a space separated single line input string. → Sample Input 1 Explanation: Ex. 1 (17301106) (Use 1st digit of your bracu student id) Ex. 60 (17301106) (Use last 2 digits of your bracu student id in reverse) Ex. 3 (17301106) (Use semester code-3rd digit of your bracu student id) Ex. 1 (130) Ex. 30 (130) → Sample Output 1: # Number of turns for the attacker agent [Assume that both of them will get equal number of chances] # Initial lifeline (HP) for the defender at initial state of the game # Number of bullets from which the final choice has to be made by the attacker. #Minimum value for the range of negative HP values # Maximum value for the range of negative HP values 1. Depth and Branches ratio is 2:3 2. Terminal States (leaf node values) are 19,22,9,2,26,16,16,27,16. 3. Left life (HP) of the defender after maximum damage caused by the attacker is 44 4. After Alpha-Beta Pruning Leaf Node Comparisons 7 Assume that there are two teams and they are team attacker and team defender. Therefore, at a state of the game one agent in each team is left alive respectively. Here, the defender is given a lifeline called HP which will be assigned randomly. Furthermore, the attacker agent will try to give maximum negative HP to the defender agent to decrease his(d) chances of survival in the game. On the other hand, the defender agent will try to protect himself by receiving the lowest negative HP possible from the attacker agent. Furthermore, the attacker can have a choice from a number of bullets from his gun and the optimal moves will cost a certain maximum negative HP (chosen from randomly assigned values within the range of minimum and maximum negative HP). Here, are the following things you need to do using Alpha-Beta Pruning algorithm: → Sample Input 1: 1. Enter your student id: 17301106 2. Minimum and Maximum value for the range of negative HP: 130 Note: Here, the second input is a space separated single line input string. → Sample Input 1 Explanation: Ex. 1 (17301106) (Use 1st digit of your bracu student id) Ex. 60 (17301106) (Use last 2 digits of your bracu student id in reverse) Ex. 3 (17301106) (Use semester code-3rd digit of your bracu student id) Ex. 1 (130) Ex. 30 (130) → Sample Output 1: # Number of turns for the attacker agent [Assume that both of them will get equal number of chances] # Initial lifeline (HP) for the defender at initial state of the game # Number of bullets from which the final choice has to be made by the attacker. #Minimum value for the range of negative HP values # Maximum value for the range of negative HP values 1. Depth and Branches ratio is 2:3 2. Terminal States (leaf node values) are 19,22,9,2,26,16,16,27,16. 3. Left life (HP) of the defender after maximum damage caused by the attacker is 44 4. After Alpha-Beta Pruning Leaf Node Comparisons 7
Expert Answer:
Answer rating: 100% (QA)
You can use code like this for a fighting game import random clas... View the full answer
Posted Date:
Students also viewed these programming questions
-
Which of the following factors (both of which are true) reduces the energy that a photovoltaic solar panel can provide?. Select one or more: The earth's atmosphere blocks many ultraviolet (wavelength...
-
Determinate: 1. f(z) = sin (2) 25 3. f(x) = Res (f(2), 20 = 0). 2. g(z) = 2e/2, Res(g(2), 20 = 0). 9z+ i z(z - i)' Re(f(2), 20 = i)
-
Find at least three nonzero terms (including a, and at least two cosine terms and two sine terms if they are not all zero) of the Fourier series for the given function, and sketch at least three...
-
machine element is made of an alloy with Yield strength of 200 Mpa and fracture strain is 0.08. A machine element is characterized by the normal stress components as shown in the figure. The Answer...
-
A recent summary for the distribution of cigarette taxes (in cents) among the 50 states and Washington, D.C. in the United States reported = 73 and s = 48. Based on these values, do you think that...
-
What is a restrictive covenant? Is it fair to ask the seller of a travel agency located in a small town to sign a restrictive covenant for 1 year covering a 20-square-mile area? Explain.
-
Given the following information, prepare a statement of cash flows. Beginning cash Dividends Increase in common stock $20 $25 27 Increase in accounts receivable 65 Increase in inventories Operating...
-
Last year Marion Dairies decided to enter the yogurt market, and it began cautiously by producing, distributing, and marketing a single flavor - a blueberry-flavored yogurt that it calls Blugurt. The...
-
Assume a hypothetical age that has not been assumed by other students. Assume you would like to invest in a zero-coupon bond in order to have $1000,000 in your retirement account when you get to the...
-
Two mining companies, Red and Blue, bid for the right to drill a field. The possible bids are $ 15 Million, $ 25 Million, $ 35 Million, $ 45 Million and $ 50 Million. The winner is the company with...
-
2 Let A = {0: 2 cos 0 + sin 0 2} and B={0: /20 3/2}. Then find An B..
-
The Open Markets Institute Report on "America's Concentration Crisis" (https://concentrationcrisis.openmarketsinstitute.org/) presents a collection of markets where concentration is very high (based...
-
Newkirk, Inc. is an unlevered firm with expected annual EBIT of $21 million in perpetuity. The current required return on the firm's equity is 15 percent, and the firm distributes all of its earnings...
-
Email to the tenants Use the email template below and draft an email to the tenants advising them of the outcomes of the meeting with the landlords. In your email, also include information on what...
-
The function is f(x)=2000(0.881)^(x), where x is the time in years, models a declining lemming population. How many lemmings will there be in 6 years?
-
The Civil War was fought because of slavery and the breakup of the Union. The Southern slave owners would argue that they were ghting to keep states' rights, meaning they were dependent on a slave...
-
Evaluate the firm's 5-year CORPORATE PERFORMANCE using the metrics described in the handout on VBM 1. First review the firm's revenue growth pattern over the recent years and then come up with a...
-
Portal Manufacturing has total fixed costs of $520,000. A unit of product sells for $15 and variable costs per unit are $11. a). Prepare a contribution margin income statement showing predicted net...
-
Many states have lotteries that involve the random selection of digits 0, 1, 2, ,
-
Birth weights in the United States are normally distributed with a mean (in grams) of 3420 g and a standard deviation of 495 g. If you graph this normal distribution, the area to the right of 4000 g...
-
Is the distribution of those digits a normal distribution? Why or why not?
Study smarter with the SolutionInn App