Posts

Showing posts from October, 2020

Ping Pong Game in Python

Image
  Hello Guys how are you ? Hope You all are in safe and sound condition  Welcome to my first blog on python programming on: How to make a simple Ping Pong game in python?  So lets start  Table tennis , also known as  P ing -P ong  and whiff-whaff, is a sport in which two  players hit a lightweight ball, also known as the P ing -P ong  ball, back and forth across a table using small rackets. ... A point is scored when a player fails to return the ball within the rules Some Screen Shots of the game  This is the source code: #Ping Pong Game By Pulastya import turtle import os wn = turtle.Screen() wn.title("Pong Game By Pulastya") wn.bgcolor("black") wn.setup(width=800, height=600) wn.tracer(0) # Score score_a = 0 score_b = 0 # Paddle A paddle_a = turtle.Turtle() paddle_a.speed(0) paddle_a.shape("square") paddle_a.color("Green") paddle_a.shapesize(stretch_wid=5,stretch_len=1) paddle_a.penup() paddle_a.goto(-350, 0) # Paddle B paddle_b = turtle....