PDA

View Full Version : The real section ID algorithm


Barubary
03-13-2001, 08:16 PM
The web sites don't notice the really simple pattern to the algorithm. They think that the symbol to number mapping is erratic, when it's really not.

The answer is simple: ASCII. In C, the algorithm is:

int ID = 0, index;
char *name = whatever;

for (index = 0; name[index], index++)
ID += name[index];
ID %= 10;

By the way, the gamefaqs section ID chart is wrong in the digits. 0 = 8, 1 = 9, 2 = 0, etc. This is apparent from the ASCII because '0' is 48.

-- Barubary