Sudoku on ZX Spectrum 48K

2»

Comments

  • edited July 2008
    kevthacker wrote: »
    - Each level takes 2 bytes. I am not joking.

    Given that there are slightly more than 65536 possible Sudoku puzzles, I believe there are some information theorists who would be interested to hear from you. :-)
  • edited July 2008
    Me too!

    Thinking aloud...puzzles don't generally have the who grid populated (hence puzzle). Suppose you set....nah - I've got an idea and it may well enable that whole grid to be represent by a couple of bytes! It's something I've used before many times but not to that extent... :)
  • edited July 2008
    Another Sudoku solver can be downloaded from

    www.angelfire.com/retro/carcass/index.htm

    A simple compiled Basic entry. Solves most puzzles. I`m proud of what it can do.

    It solves puzzle 875 in 2minutes 20 seconds. Pure simple sovling then into a brute force routine.
  • edited July 2008
    MatGubbins wrote: »
    Another Sudoku solver can be downloaded from

    www.angelfire.com/retro/carcass/index.htm

    A simple compiled Basic entry. Solves most puzzles. I`m proud of what it can do.

    It solves puzzle 875 in 2minutes 20 seconds. Pure simple sovling then into a brute force routine.

    875 is never (well ..., hardly ever) the same. It's mixed each time. And time may depend on mix and solver algoritam.

    I'm added additional 5000 puzzles to program.
  • edited July 2008
    SIRDS program written in Beta Basic on www.tangram.rs/sudoku/
    Slow, but works.
    SIRDS (Single Image Random Dot Stereogram).

    TangramSIRDS.gif
  • edited August 2008
    srba wrote: »
    SIRDS program written i Beta Basic on www.tangram.rs/sudoku/
    Slow, but works.
    SIRDS (Single Image Random Dot Stereogram).

    That's amazing - I really wouldn't have thought that the Speccy could do magic eye images! Admittedly I can't totally make out the image, but then my eyesight isn't too brilliant anyway. I can see a diamond shape, which looks like someone with glasses wearing a pointed hat, or is it an abstract drawing?

    Either way the image does seem to stand out from the background, so the "feel" is certainly there. A very interesting demonstration.
  • edited August 2008
    ewgf wrote: »
    That's amazing - I really wouldn't have thought that the Speccy could do magic eye images! Admittedly I can't totally make out the image, but then my eyesight isn't too brilliant anyway. I can see a diamond shape, which looks like someone with glasses wearing a pointed hat, or is it an abstract drawing?

    Either way the image does seem to stand out from the background, so the "feel" is certainly there. A very interesting demonstration.


    Yes. It's my AVATAR image. Tangram design logo. 45degree rotated square with lines inside. My program converts any SCREEN like:

    avatarscreen.gif
    into
    avatarsirds.gif

    or

    clubscreen.gif
    into
    clubsirds.gif


    Algoritam is simple and may be easy rewritted in assembler...
    ... or in BASIC COMPILER :)
  • edited August 2008
    I have never seen the hidden images in those pictures and I still don't see it.
  • edited August 2008
    They have never worked for me either.

    I think that this is because I only have good sight in one eye.

    I understand that you need pretty good sight in both eyes for these things to work, as they rely on stereoscopic vision.

    Anyone who has a "lazy eye" like I do, is not going to see the hidden pattern.

    When this was a huge craze sometime ago, I felt a little left out that everyone else said they could see the image, but I never could.
  • edited August 2008
    Save this pictures to local computer and zoom x 2. Patient for first time... :)
  • edited August 2008
    ... No, no. Checked. Club Suit Stereogram is CRYSTAL CLEAR. No focus eyes on image. Stare thru image... Long, for first time view...
  • edited August 2008
    ... and, most beautiful things of this are SOURCE CODE, not STEREOGRAMS :)
    100 CLS : LOAD ""SCREEN$
    110 LET e=100: LET m=0.4: RANDOMIZE
    120 INPUT ': PRINT #0;"  LONG TIME CALC. PLEASE WAIT!  "
    130 LET q$="": LET t$="": FOR x=0 TO 255: LET q$=q$+CHR$ 0: LET t$=t$+CHR$ x: NEXT x
    140 FOR y=0 TO 175: LET p$=q$: LET s$=t$
    150 FOR x=0 TO 255: LET p=1-m*POINT (x,y): LET s=INT (e*p/(p+1)+0.5): LET l=x-INT (s/2): LET r=l+s
    160 IF l<0 OR r>255 THEN GO TO 210
    170 LET k=CODE s$(l+1): IF k<r THEN LET l=k: GO TO 190
    180 LET l=r: LET r=k
    190 IF k<>l AND k<>r THEN GO TO 170
    200 LET s$(l+1)=CHR$ r
    210 NEXT x
    220 FOR x=255 TO 0 STEP -1: LET o=CODE s$(x+1): IF o=x THEN LET p$(x+1)=CHR$ INT (2*RND): GO TO 240
    230 LET p$(x+1)=p$(o+1)
    240 IF CODE p$(x+1)<>POINT (x,y) THEN PLOT OVER 1,x,y
    250 NEXT x: NEXT y
    260 INPUT ': PRINT #0;" DONE.  NOW STARE FOR 3D IMAGE. "
    270 PAUSE 0
    

    That's all :)

    Србислав Д. Нешић
    Srbislav D. Nešić
    justcheck.gif
  • edited August 2008
    srba wrote: »
    ... No, no. Checked. Club Suit Stereogram is CRYSTAL CLEAR. No focus eyes on image. Stare thru image... Long, for first time view...

    I'm sure most people will be able to clearly see the intended results of your excellent program.

    I did try looking it at x2 size this morning. I must have looked at it for almost twenty minutes!

    I can't see the 3D image, but this is no way a problem with your program, rather it's because of my eyesight. As I mentioned, I think the viewer needs reasonable vision in both eyes for this to work. As it happens, I can only see out of one eye in practice, as my other eye has very poor sight and so my brain never uses it!

    I know it's my eyesight and definitely not a problem with your program because I also looked at other stereograms on the Internet (and in the past I've looked at many in bought books), but they just never work on me. Even when I try not to focus on the image, and just see through it, they still never appear for me :(

    Hopefully someone else with good eyesight in both eyes will post a positive result on seeing the intended 3D club suite image. :)
  • edited August 2008
    sorry nothing. i have 2 working eyes.
    i fail to see the point in this exercise anyway.
  • edited August 2008
    It's rather like looking at something behind a piece of glass

    the image is where the glass would be and the object is behind it, does this make sense?
  • edited August 2008
    People, I see it right away. It works very well! However I do see foreground arcs in addition to the image. Eg, on the club I see two arcs coming just off the left and right lobes.
  • edited August 2008
    ... However I do see foreground arcs in addition to the image. Eg, on the club I see two arcs coming just off the left and right lobes.

    You just not at proper distance..., or your eyes is overcrossed but this is it...

    Shark from Wikipedia:

    sharkscreen.gif

    sharksirds.gif
  • edited August 2008
    theres definitely some problem, this dorsal fin of the shark is replicated twice along the top of the body and the fin at the bottom is the same

    kind of like this
    sharp-full.GIF

    if you look at the background they do disappear but they shouldn't be there whilst looking at the shark
  • edited August 2008
    chop983 wrote: »
    theres definitely some problem, this dorsal fin of the shark is replicated twice along the top of the body and the fin at the bottom is the same
    ...
    if you look at the background they do disappear but they shouldn't be there whilst looking at the shark

    No. Definitely no problem.

    There is 2 main techniques: cross eye and PARALLEL EYE. This SIRDS are PARALLEL. You must point LEFT EYE in LEFT POINT and RIGHT EYE i RIGHT POINT. And your brain will see 3 points. CENTRAL focused and LEFT&RIGHT defocused.

    sharksirdsguide.gif

    For guide points add this
    255 LET o=e/4: PRINT AT 20,1+4;TAB 32-4;: FOR x=-1 TO 1 STEP 2: FOR y=2+8 TO 5+8: PLOT 128+x*o-2,y: DRAW 3,0: NEXT y: NEXT x
    
  • edited August 2008
    Рђавом ... и длака смета ... ;)
  • edited August 2008
    Shark and Mitsubishi ZERO with (almost) same pattern.
    sharkandzero.gif
  • edited August 2008
    This is bullet, this is missile, this is rocket for the moon:

    http://www.zx81stuff.org.uk/zx81/supersudoku81/supersudoku81.html

    Amazing...

    Test here: http://www.tangram.rs/sudoku/zx81/
Sign In or Register to comment.