Knight's Challenge in D
Tower Ty
tytower at hotmail.com
Wed Apr 2 15:47:53 PDT 2008
Good stuff Chris
I got one to run at least and found the original problem. I followed your advice and the first time I got 2 .svg files . The first of which worked and looked good . The second gave me an array out of bounds error.
I'll have a closer look in a few hours as I have to go out but I'll chuck it in here anyway in case you spot it immediately. This was the second try which ave out of bonds on the first.result.
[tytower at localhost mystuffExperimental]$ Miller
found solution 0 0 in 135 steps
||0||33||44||17||46||31||12||15||
||43||18||61||32||13||16||47||30||
||34||1||52||45||60||63||14||11||
||19||42||59||62||51||54||29||48||
||2||35||56||53||58||49||10||25||
||41||20||39||50||55||26||7||28||
||36||3||22||57||38||5||24||9||
||21||40||37||4||23||8||27||6||
found solution 0 1 in 119 steps
||31||0||17||56||33||46||15||12||
||18||59||32||47||16||13||34||45||
||1||30||55||60||57||48||11||14||
||54||19||58||49||52||61||44||35||
||29||2||53||62||43||50||25||10||
||20||5||42||51||26||63||36||39||
||3||28||7||22||41||38||9||24||
||6||21||4||27||8||23||40||37||
found solution 0 2 in 430 steps
||44||31||0||15||46||29||10||13||
||1||16||45||30||11||14||47||28||
||32||43||54||59||52||63||12||9||
||17||2||51||62||55||58||27||48||
||42||33||56||53||60||49||8||23||
||3||18||61||50||57||24||37||26||
||34||41||20||5||36||39||22||7||
||19||4||35||40||21||6||25||38||
found solution 0 3 in 1849 steps
||29||32||15||0||55||34||13||10||
||16||1||30||33||14||11||56||35||
||31||28||61||58||49||54||9||12||
||2||17||50||53||60||57||36||47||
||27||42||59||62||51||48||23||8||
||18||3||52||43||24||63||46||37||
||41||26||5||20||39||44||7||22||
||4||19||40||25||6||21||38||45||
found solution 0 4 in 1849 steps
||10||13||34||55||0||15||32||29||
||35||56||11||14||33||30||1||16||
||12||9||54||49||58||61||28||31||
||47||36||57||60||53||50||17||2||
||8||23||48||51||62||59||42||27||
||37||46||63||24||43||52||3||18||
||22||7||44||39||20||5||26||41||
||45||38||21||6||25||40||19||4||
found solution 0 5 in 230 steps
||13||10||29||46||15||0||31||44||
||28||47||14||11||30||45||16||1||
||9||12||63||52||59||54||43||32||
||48||27||58||55||62||51||2||17||
||23||8||49||60||53||56||33||42||
||26||37||24||57||50||61||18||3||
||7||22||39||36||5||20||41||34||
||38||25||6||21||40||35||4||19||
found solution 0 6 in 113 steps
||12||15||46||33||54||17||0||31||
||45||34||13||16||47||32||53||18||
||14||11||48||55||62||59||30||1||
||35||44||63||58||49||52||19||60||
||10||25||50||43||56||61||2||29||
||39||36||57||26||51||42||5||20||
||24||9||38||41||22||7||28||3||
||37||40||23||8||27||4||21||6||
found solution 0 7 in 133 steps
||15||12||31||46||17||44||33||0||
||30||47||16||13||32||53||18||43||
||11||14||55||52||45||62||1||34||
||48||29||60||63||54||51||42||19||
||25||10||49||56||61||58||35||2||
||28||7||26||59||50||39||20||41||
||9||24||5||38||57||22||3||36||
||6||27||8||23||4||37||40||21||
[1]+ Stopped Miller
[tytower at localhost mystuffExperimental]$ SVGMaker f -fileresults.txt
0 : SVGMaker
1 : f
2 : -fileresults.txt
file=results.txt
board size 0 x 0 y 0 maxx 0 maxy 0
tango.core.Exception.ArrayBoundsException at knightstour.SVGMaker(183): Array index out of bounds
[tytower at localhost mystuffExperimental]$ SVGMaker f -fileresults.txt
0 : SVGMaker
1 : f
2 : -fileresults.txt
file=results.txt
board size 0 x 0 y 0 maxx 0 maxy 0
tango.core.Exception.ArrayBoundsException at knightstour.SVGMaker(183): Array index out of bounds
[tytower at localhost mystuffExperimental]$
Here is the first and second .svg files I got.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svg0.svg
Type: image/svg+xml
Size: 1657 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20080402/ab646f0c/attachment.svg>
More information about the Digitalmars-d
mailing list