TASK 1

A hole in my racket

Rory picked the working paddle, it looks like yours has a hole in it!

Currently, your paddle doesn't work, it never hits the ball back.

You need to complete the definition of:

def has_hit_paddle(bx: int, by: int, px: int, py: int) -> bool:

This takes

The ball is 20 by 20 and is a square.

The paddle is 6 by 50 and is a rectangle.

Your function must return True in any situation where the ball and paddle are touching, and False otherwise.

A message will appear when you have the correct conditions.

Good Luck!

Well done!

You have completed all of the tasks.

Return home or take a look at the tutorials

Something isn't quite right...

Close this message and have another go!

GUIDE

This guide is intended to help with syntax. See the prelude section for pre-defined functions and variables. See the tutorials page for tutorials on how to write code.



Can't find what you're looking for?

Check the tutorials page for more!

PRELUDE

The prelude is all the pre-defined functions and variables available to use. See the tutorials page for tutorials on how to write code.



Can't find what you're looking for?

Check the tutorials page for more!