zengm-games / zengm

Basketball GM (and other ZenGM games) are single-player sports management simulation games, made entirely in client-side JavaScript.
https://zengm.com
Other
349 stars 127 forks source link

Player Development Investigation #419

Closed ldrobner closed 2 years ago

ldrobner commented 2 years ago

I have been playing the game pretty casually over the past couple of days and can't help but feel that players develop almost randomly. I wanted to investigate.

I have been looking through some of the code and I wrote a short test (src/worker/core/player/develop.test.ts). I have been generating random players and then having them develop trying to see the 'curve' of a player's ratings or a player's career arch. All my generated players have a potential rating of 0 and I have been having trouble figuring out how to set a non-zero potential in the player's ratings. Where is a player's potential rating set? Do I have to draft the player or something? Would be a huge help in my little research project here. Happy to continue the discussion.

Thanks

dumbmatter commented 2 years ago

http://zengm.com/blog/2018/02/player-ratings-and-development-beta/ explains what the potential rating is. Set it by calling await player.develop(p, 0);. That's the same function you use to develop a player for N years of progs, just pass another number besides 0.