One diamond powers one slot. OR powers if at least one slot is occupied. XAND powers if at least one slot is not occupied NOT powers if both slots are not powered AND powers if both slots are powered You can also drag the gates around and combine the gates, to kind of program.
This program is mobile(ipad) friendly.