The following video is the perfect example. Micro-Max (u-Max) is a minimalist open source chess program in up to 2000 characters and 133 lines of portable C source-code by Harm Geert Muller. Micro-Max was ported for an Atmel-ATmega88 Microcontroller by Andre Adrian using WinAVR GCC, deployed for a self-made chess computer SHAH and the ATM18 mini chess computer from the electronics magazine Elektor.
Here is a demo video with the u-Max running on Arduino board with a couple of changes