This is a simple implementation of the ray casting algorithm used in Wolfenstein 3D for rendering a 3D map. This implementation is written in Python and it uses the Pygame
This Youtube video, created by the original author of this code, contains the math explanation of the ray casting concept.