<hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">Sortes</hi> texts (in German “Losbücher”) represent an extremely interesting genre, which unfortunately has not enjoyed much scholarly attention in the field of digital editing, although it has a long history dating back to antiquity.<ref xmlns="http://www.tei-c.org/ns/1.0" n="6" target="ftn6" /> They were very interactive texts which were not meant to be read linearly (Heiles 2018) and which were used to predict the future with the help of sortition mechanisms, sometimes quite extravagant ones. The computational edition of the medieval German versions of the <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">Prenostica Socratis Basilei</hi> aims at establishing a new methodology for the editing of this genre, finding strategies to weave together games and textual criticism, with the goal of representing the <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">sortes</hi> in their genesis and reception throughout the centuries. Specifically, the whole editing process will find expression in an actionable formal language.