Generate random player strengths in a pyramid structure (PHP)

前端 未结 6 1781
醉梦人生
醉梦人生 2021-01-13 19:59

For an online game (MMORPG) I want to create characters (players) with random strength values. The stronger the characters are, the less should exist of this sort.

E

6条回答
  •  伪装坚强ぢ
    2021-01-13 20:11

    something like this

    
    

    Band 1 being the strongest, band 4 being the weakest.

    Ofcourse this is basic, you would want to refactor this to use loops instead of hardcoded switches, but you get the idea :)

提交回复
热议问题