I am making a game, and I have been keeping track of the scores by combining the score, name, and the date and time into one number. The code I used to sort my scores looked like this:
:T→L6(6) // T is the new score; L6 is my old list of scores;my list is 5 dimensions long
In order to store the name, I convert it to a number and stick it to the end of my score. My initials are
JAK; hence, if the score is 5, the new number would be 5100111. However, I want to prevent someone with a smaller name (like AAA) from achieving the same score as an existing one, thus stealing the rank in the list. My solution was to find the reciprocal of the date and time, and give it a greater value than the name. That way, the name does not affect the value significantly.
That is where I run into problems. My previous method of sticking one number onto the end of another will not work, as the new number will have way too many digits for the OS to handle. Can anyone think of a different method, or a way to get the OS to understand more digits?