+ 1
How can I upgrade this code
new chest or name of cards (e.g mega minon or royal gigant) (sorry for bad English im from Poland) https://code.sololearn.com/cjGdghZjDA01/?ref=app
2 Respuestas
+ 5
Some improvements that could be made:
*You do not need multiple Random objects here.
*You can heavily reduce the amount of code used by having a single method resolve the output. Do not worry about this if you are not comftorable with parameters.
*You can just use \n to move to another line instead of calling the WriteLine method again.
I'd say this is 'hard-coded'. Good job though!👌
+ 1
thanks