mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-11 16:14:08 +01:00
Replacing more C-style for loops with the faster, traditional ones. (#62908)
This commit is contained in:
@@ -38,8 +38,8 @@
|
||||
for(var/i = 1, i <= length_input, i += length(char)) //put the guess into a list
|
||||
char = input[i]
|
||||
sanitised += text2num(char)
|
||||
for(var/i = 1, i <= length(sanitised) - 1, i++) //compare each digit in the guess to all those following it
|
||||
for(var/j = i + 1, j <= length(sanitised), j++)
|
||||
for(var/i in 1 to length(sanitised) - 1) //compare each digit in the guess to all those following it
|
||||
for(var/j in i + 1 to length(sanitised))
|
||||
if(sanitised[i] == sanitised[j])
|
||||
sanitycheck = FALSE //if a digit is repeated, reject the input
|
||||
if(input == code)
|
||||
|
||||
Reference in New Issue
Block a user