Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write code to make a boxing game. The game should be made with Python on replit. The game should put you the player against an

Write code to make a boxing game. The game should be made with Python on replit. The game should put you the player against an Al. The game should allow for 4 different moves that both the player and Al take turns choosing from: dodge left,dodge right, block, and punch. If you dodge a punch you should be able to get a free counter punch next move and it should notify the player that the punch was dodged this should work for both the player and Al. If you block a punch then the game should notify the player that they blocked it but continue with the Al having the next turn, the opposite should also be true. Both the Al and player should have 10 hearts. If the Al or player gets punched then it should result in 1 heart being deducted and should display how much hearts either the player or Al has left when they get punched. The game should end when either the player or Al reaches 0 hearts, and the game should display whether the player won or lost.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

Define Management or What is Management?

Answered: 1 week ago

Question

What do you understand by MBO?

Answered: 1 week ago

Question

What is meant by planning or define planning?

Answered: 1 week ago

Question

Define span of management or define span of control ?

Answered: 1 week ago