IR drag race (two players) is a ready-made Basys 3 FPGA game written in VHDL. It uses 2 IR sensors, Clocking Wizard IP. Play it free right in your browser - nothing to install, no FPGA board needed.
How to play
Each player 'waves a hand' over an IR sensor: hold Z (player 1) or X (player 2), or click the sensor cards. Every pass moves that car forward; first over the line wins. btnC starts a new race.
What it uses
VHDL · 2 IR sensors, Clocking Wizard IP
The code: download the Verilog project (.zip) — read it, change it, and run your version with the free PC program.