In order to regain functional use of affected limbs, stroke patients must undergo intense, repetitive, and sustained exercises. For this reason, it is a common occurrence for the recovery of stroke patients to suffer as a result of mental fatigue and boredom. For this reason, serious games aimed at reproducing the movements patients practice during rehabilitation sessions, present a promising solution to mitigating patient psychological exhaustion. This paper presents a system developed at the Center for Cognitive Ubiquitous Computing (CubiC) at Arizona State University which provides a platform for the development of serious games for stroke rehabilitation. The system consists of a network of nodes called Smart Cubes based on the Raspberry Pi (model B) computer which have an array of sensors and actuators as well as communication modules that are used in-game. The Smart Cubes are modular, taking advantage of the Raspberry Pi's General Purpose Input/Output header, and can be augmented with additional sensors or actuators in response to the desires of game developers and stroke rehabilitation therapists. Smart Cubes present advantages over traditional exercises such as having the capacity to provide many different forms of feedback and allowing for dynamically adapting games. Smart Cubes also present advantages over modern serious gaming platforms in the form of their modularity, flexibility resulting from their wireless network topology, and their independence of a monitor. Our contribution is a prototype of a Smart Cube network, a programmable computing platform, and a software framework specifically designed for the creation of serious games for stroke rehabilitation.