Two players:
ruby main.rbOne player against a "bot":
ruby main.rb -bThe classic Pong game implemented in Ruby with the Gosu library. See Installation instructions on The Gosu wiki for setting up Gosu.
The game was implemented during a vacation in China, so the name comes from the Chinese word for ping-pong, 乒乓, which is spelled pīng pāng in pinyin.
It's a one or two player game. The left player uses W and S on
the keyboard to move the paddle, and D to serve. The right player uses Up Arrow and Down Arrow to move and Left Arrow to serve, unless it's one
player mode, in which case the bot moves the right paddle.
Ruby 3.0 or later.
