Why do my stats (losses, matchnums, etc) not change after each game?

  Kiến thức lập trình

I am making a simple tic tac toe game and wanted to have a stats section after someone stops playing. Whenever a match is played it should add to the stats depending on what they picked and if they won or not. However, the variables keeping track of the stats always print as zero not matter what I change.

As seen in the picture after I picked rock and won, I say no to stop playing but the “wins” variable prints as “0” even though it should be “1”.

New contributor

Dytho is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website Kho Theme wordpress Kho Theme WP Theme WP

LEAVE A COMMENT