KoKuToru / ws-probability-calculator

weiß schwarz probability calculator
https://kokutoru.github.io/ws-probability-calculator/
GNU General Public License v2.0
0 stars 0 forks source link

reshuffle dmg is wrong #1

Closed KoKuToru closed 1 year ago

KoKuToru commented 1 year ago

https://github.com/KoKuToru/ws-probability-calculator/blob/0ed02e47d88996b9ba5899f156ddfb9b4ec5916b/src/public/worker/state.js#L291-L295

doesn't remove a card (put into clock) from deck, only adds dmg. if this is fixed, probabilities will shift slightly. probably very insignificant..

currently i have no way of splitting the state on reshuffle, one for cx and one for not cx..

no idea how to implement this without reworking the next-functions slow-path. https://github.com/KoKuToru/ws-probability-calculator/blob/0ed02e47d88996b9ba5899f156ddfb9b4ec5916b/src/public/worker/state.js#L153-L270

KoKuToru commented 1 year ago

should be more correct now, waiting room is still not 100% correct