Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+14 votes

I want to reset the wizards data so that I can just run the runTournaments method a bunch of times to see who wins without having to press run every time. I used the resetBeforeDuel method on the wizards and it works to reset the data, but it doesn't reset when runTournaments is called again.

I print out their data in the for loop that's resetting the data, but win the runTournaments method is called, the values are doubling every call.

asked in CSC320 by (1 point)

1 Answer

0 votes

I have also the same question.

answered by (1 point)