clingo

Clingo/ASP: Best way to generate characters in a story generator

扶醉桌前 提交于 2019-12-11 15:17:25
问题 I am trying to write a story generator in Clingo. I am trying to say "new characters can be born if existing characters give birth to them." I define new characters as entity(<int\>) , which is the best way I could think of to representing entities. I cannot hardcode this as varying number of entities can be created in a story. My code is : % Create instances of time, only 3 for testing time(0..2). % Arrow of time flows forward next_t(T, T+1) :- time(T), time(T+1). % Entity 1 exists at time 0