How many uploads supports an Arduino UNO?

Hello everyone.
I use to display game statistics in Assetto Corsa and Race07, but each has its distinctive code so each time I play one or another I upload on the current code.
hence the question What is the maximum amount of upload I can do in my arduino uno?

advantage, how can I solve this problem with a generic program ?, ah the possibility of making a "if" to get into a void setup () and void loop () and vice versa? then I can merge the two codes and they select a button.

sorry for my bad english

thkx

The data sheet says

Write/Erase Cycles: 10,000 Flash memory

Anything over that and you are in danger of it not working.

If each game type needs its own code section, then you can use a set of buttons to select which program to run.
If the code for each is quite big, you can move up to a larger chip - 1284P with 128K of memory, or '2560 with 256K of memory.
And as GM says, you can upload nearly 30 times a day for a year before you have to worry about the flash not working.

Grumpy_Mike:
The data sheet says

Write/Erase Cycles: 10,000 Flash memory

Anything over that and you are in danger of it not working.

CrossRoads:
If each game type needs its own code section, then you can use a set of buttons to select which program to run.
If the code for each is quite big, you can move up to a larger chip - 1284P with 128K of memory, or '2560 with 256K of memory.
And as GM says, you can upload nearly 30 times a day for a year before you have to worry about the flash not working.

thank you all for the clarification.