Skip to main content
Commonmark migration
Source Link

><>, length 49, Cracked by Aaron

Regex (Javascript)

^.{7}\n.{12}\n\?.{6};[^v^]{27}(\n.{13}:&.{2}){2}$ 

Sample output (n=4)

1 2 3 4 8 7 6 5 9 10 11 12 16 15 14 13 

Formatting is a bit weird, but checking for number length would have made it a lot longer. Might have gone a bit overboard on the regex, not sure!

Edit: Also I forgot to mention, I use the initial stack (-v flag) for input, not the usual fish input. Sorry!

###Original Code:

Original Code:

<v1*2&: >:{:}=?v:1+ ?^{r0}v;>&:&[r]{&:&2*+}::&:::&*@+@( +:}=?v>n" "o&:&{1 0~{oa<^v?)*&::&:} 

Aaron's is a lot simpler! The complexity of my original code is based around the idea of using n[r] every n-th number to flip that segment (row), then printing all numbers at once at the end

><>, length 49, Cracked by Aaron

Regex (Javascript)

^.{7}\n.{12}\n\?.{6};[^v^]{27}(\n.{13}:&.{2}){2}$ 

Sample output (n=4)

1 2 3 4 8 7 6 5 9 10 11 12 16 15 14 13 

Formatting is a bit weird, but checking for number length would have made it a lot longer. Might have gone a bit overboard on the regex, not sure!

Edit: Also I forgot to mention, I use the initial stack (-v flag) for input, not the usual fish input. Sorry!

###Original Code:

<v1*2&: >:{:}=?v:1+ ?^{r0}v;>&:&[r]{&:&2*+}::&:::&*@+@( +:}=?v>n" "o&:&{1 0~{oa<^v?)*&::&:} 

Aaron's is a lot simpler! The complexity of my original code is based around the idea of using n[r] every n-th number to flip that segment (row), then printing all numbers at once at the end

><>, length 49, Cracked by Aaron

Regex (Javascript)

^.{7}\n.{12}\n\?.{6};[^v^]{27}(\n.{13}:&.{2}){2}$ 

Sample output (n=4)

1 2 3 4 8 7 6 5 9 10 11 12 16 15 14 13 

Formatting is a bit weird, but checking for number length would have made it a lot longer. Might have gone a bit overboard on the regex, not sure!

Edit: Also I forgot to mention, I use the initial stack (-v flag) for input, not the usual fish input. Sorry!

Original Code:

<v1*2&: >:{:}=?v:1+ ?^{r0}v;>&:&[r]{&:&2*+}::&:::&*@+@( +:}=?v>n" "o&:&{1 0~{oa<^v?)*&::&:} 

Aaron's is a lot simpler! The complexity of my original code is based around the idea of using n[r] every n-th number to flip that segment (row), then printing all numbers at once at the end

replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

><>, length 49, Cracked by AaronCracked by Aaron

Regex (Javascript)

^.{7}\n.{12}\n\?.{6};[^v^]{27}(\n.{13}:&.{2}){2}$ 

Sample output (n=4)

1 2 3 4 8 7 6 5 9 10 11 12 16 15 14 13 

Formatting is a bit weird, but checking for number length would have made it a lot longer. Might have gone a bit overboard on the regex, not sure!

Edit: Also I forgot to mention, I use the initial stack (-v flag) for input, not the usual fish input. Sorry!

###Original Code:

<v1*2&: >:{:}=?v:1+ ?^{r0}v;>&:&[r]{&:&2*+}::&:::&*@+@( +:}=?v>n" "o&:&{1 0~{oa<^v?)*&::&:} 

Aaron's is a lot simpler! The complexity of my original code is based around the idea of using n[r] every n-th number to flip that segment (row), then printing all numbers at once at the end

><>, length 49, Cracked by Aaron

Regex (Javascript)

^.{7}\n.{12}\n\?.{6};[^v^]{27}(\n.{13}:&.{2}){2}$ 

Sample output (n=4)

1 2 3 4 8 7 6 5 9 10 11 12 16 15 14 13 

Formatting is a bit weird, but checking for number length would have made it a lot longer. Might have gone a bit overboard on the regex, not sure!

Edit: Also I forgot to mention, I use the initial stack (-v flag) for input, not the usual fish input. Sorry!

###Original Code:

<v1*2&: >:{:}=?v:1+ ?^{r0}v;>&:&[r]{&:&2*+}::&:::&*@+@( +:}=?v>n" "o&:&{1 0~{oa<^v?)*&::&:} 

Aaron's is a lot simpler! The complexity of my original code is based around the idea of using n[r] every n-th number to flip that segment (row), then printing all numbers at once at the end

><>, length 49, Cracked by Aaron

Regex (Javascript)

^.{7}\n.{12}\n\?.{6};[^v^]{27}(\n.{13}:&.{2}){2}$ 

Sample output (n=4)

1 2 3 4 8 7 6 5 9 10 11 12 16 15 14 13 

Formatting is a bit weird, but checking for number length would have made it a lot longer. Might have gone a bit overboard on the regex, not sure!

Edit: Also I forgot to mention, I use the initial stack (-v flag) for input, not the usual fish input. Sorry!

###Original Code:

<v1*2&: >:{:}=?v:1+ ?^{r0}v;>&:&[r]{&:&2*+}::&:::&*@+@( +:}=?v>n" "o&:&{1 0~{oa<^v?)*&::&:} 

Aaron's is a lot simpler! The complexity of my original code is based around the idea of using n[r] every n-th number to flip that segment (row), then printing all numbers at once at the end

added 407 characters in body
Source Link
torcado
  • 590
  • 2
  • 7

><>, length 49, Cracked by Aaron

Regex (Javascript)

^.{7}\n.{12}\n\?.{6};[^v^]{27}(\n.{13}:&.{2}){2}$ 

Sample output (n=4)

1 2 3 4 8 7 6 5 9 10 11 12 16 15 14 13 

Formatting is a bit weird, but checking for number length would have made it a lot longer. Might have gone a bit overboard on the regex, not sure!

Edit: Also I forgot to mention, I use the initial stack (-v flag) for input, not the usual fish input. Sorry!

###Original Code:

<v1*2&: >:{:}=?v:1+ ?^{r0}v;>&:&[r]{&:&2*+}::&:::&*@+@( +:}=?v>n" "o&:&{1 0~{oa<^v?)*&::&:} 

Aaron's is a lot simpler! The complexity of my original code is based around the idea of using n[r] every n-th number to flip that segment (row), then printing all numbers at once at the end

><>, length 49

Regex (Javascript)

^.{7}\n.{12}\n\?.{6};[^v^]{27}(\n.{13}:&.{2}){2}$ 

Sample output (n=4)

1 2 3 4 8 7 6 5 9 10 11 12 16 15 14 13 

Formatting is a bit weird, but checking for number length would have made it a lot longer. Might have gone a bit overboard on the regex, not sure!

Edit: Also I forgot to mention, I use the initial stack (-v flag) for input, not the usual fish input. Sorry!

><>, length 49, Cracked by Aaron

Regex (Javascript)

^.{7}\n.{12}\n\?.{6};[^v^]{27}(\n.{13}:&.{2}){2}$ 

Sample output (n=4)

1 2 3 4 8 7 6 5 9 10 11 12 16 15 14 13 

Formatting is a bit weird, but checking for number length would have made it a lot longer. Might have gone a bit overboard on the regex, not sure!

Edit: Also I forgot to mention, I use the initial stack (-v flag) for input, not the usual fish input. Sorry!

###Original Code:

<v1*2&: >:{:}=?v:1+ ?^{r0}v;>&:&[r]{&:&2*+}::&:::&*@+@( +:}=?v>n" "o&:&{1 0~{oa<^v?)*&::&:} 

Aaron's is a lot simpler! The complexity of my original code is based around the idea of using n[r] every n-th number to flip that segment (row), then printing all numbers at once at the end

added 113 characters in body
Source Link
torcado
  • 590
  • 2
  • 7
Loading
Source Link
torcado
  • 590
  • 2
  • 7
Loading