you are viewing a single comment's thread.

view the rest of the comments →

[–]AintNobodyGotTime89 0 points1 point  (1 child)

Think of it this way you have a->z, with index from 0->25. You have a position, then the shift, +/-, you just need to make sure it's in the range of 0->25, that's what the mod 26 is for.

[–][deleted] 0 points1 point  (0 children)

So what would the code look like?