Author Topic: Sudoku  (Read 10417 times)

0 Members and 1 Guest are viewing this topic.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Sudoku
« Reply #30 on: October 06, 2010, 07:39:43 pm »
Ah ok :P
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Sudoku
« Reply #31 on: October 06, 2010, 07:40:18 pm »
Okay :) Well i cant come up with a better routine than nemo D: unless something tricky is hiding...

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Sudoku
« Reply #32 on: October 06, 2010, 07:41:34 pm »
Okay, then I dare you to only use Ans to hold the string!  (For loops may be used though...) ;D

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Sudoku
« Reply #33 on: October 07, 2010, 12:55:51 am »
Ask and you shall receive :P

Code: [Select]
Str1
For(B,0,8
For(A,0,8
Ans+sub(Ans,9A+9-B,1
End
End
sub(Ans,82,81→Str2

Code: [Select]
Str1
For(B,0,8
For(A,0,8
Ans+sub(Ans,73+B-9A,1
End
End
sub(Ans,82,81→Str2

Str1 holds the original string to be rotated and then Str2 gets the new rotated string. I'm not sure if they can be optimized anymore, but I don't believe so.

Also, if you didn't figure it out. One rotates one way and the other rotates the other.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)