Chess-like Game Generator

Every time you start the game, the movement rules of pieces will be randomly generated and also visualized as a mark on each piece.
Playable with mouse. Press the "R" key to reset.