Tennis

environment gif

This environment is part of the atari environments. Please read that page first for general information.

Name Value
Actions Discrete
Agents 2
Parallel API True
Manual Control No
Action Shape (1,)
Action Values [0,17]
Observation Shape (210, 160, 3)
Observation Values (0,255)
Import from pettingzoo.atari import tennis_v1
Agents agents= ['first_0', 'second_0']

Agent Environment Cycle

environment aec diagram

Tennis

A competitive game of positioning and prediction.

Goal: Get the ball past your opponent. Don’t let the ball get past you.

When a point is scored (by the ball exiting the area), you get +1 reward and your opponent gets -1 reward. Unlike normal tennis matches, the number of games won is not directly rewarded.

Serves are timed: If the player does not serve within 3 seconds of receiving the ball, they receive -1 points, and the timer resets. This prevents one player from indefinitely stalling the game.

Official tennis manual

Environment parameters

Environment parameters are common to all Atari environments and are described in the base Atari documentation .