TORCS is an open-source 3D car racing simulator. It is written in C++ and is licensed under the GNU GPL.