Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 537 Bytes

File metadata and controls

12 lines (10 loc) · 537 Bytes

NojDoj

Discription:

When the code is run, a window with two paddles and a moving ball appears.
The user controls the paddle on the left with the arrow or the WASD keys.
The paddle on the right is the uers opponent, and it tries to prevent the ball from passing its goal.
If the ball enters the goal of the AI opponent,the users score increases by one.
If the ball enters the goal of the user, GAME OVER!

Running the Code:

Install an up-to-date python package.
Install pygame, time, sys and random.