An anti-roosting device is disclosed. The current transformers charge a capacitor which powers a processor and which can energize a solenoid to initiate the interruption of the circuit. The base game, be it slot, poker, keno or blackjack, includes means, connected to the processor, for generating the symbols. The decision logic receives the periodic pulsing and second signals and generates a control signal that selectively controls the electronic switch based on the periodic pulsing and second signals.