Turn based strategy controlled by code