We propose a formulation of the Feynman chessboard model, which explicitly allows for spatial inhomogeneity. We use this formulation to solve the model for a particle confined to a periodic box. The resulting propagator is the Dirac propagator expressed as a Fourier series.