View Single Post
Old August 27, 2018, 09:47   #4
fph
Knight
 
Join Date: Apr 2009
Location: Berlin / Italy
Posts: 673
fph is on a distinguished road
I have implemented exactly this for Sil 1.1.1 a while ago: http://angband.oook.cz/forum/showthr...hlight=mortsil, https://github.com/fph/mortsil .

This only keep tracks of a few of the possible factors; most notably, surviving (potential) blows that could have killed you.

I didn't use Montecarlo (which I suppose would be inaccurate because the probabilities of dying are quite small; maybe one would need something more elaborate like MCMC instead?), but I keep track of the individual probabilities of each hit and damage roll. Most of the relevant code is in https://github.com/fph/mortsil/blob/...Sil/src/mort.c .

I didn't really update this because people did not seem too interested in it.
__________________
Dive fast, die young, leave a high-CHA corpse.
--
You read a scroll labeled 'lol gtfo' of Teleport Level.
fph is offline   Reply With Quote