Click to See Complete Forum and Search --> : Help!! knight's trail.. does anyone have a php code??
engotpacs
07-02-2008, 12:07 AM
yo... i desperately need some help... you guys know how to program a knights trail???? php based.... can you guys post it out here... I really need it... pleeeeessseeee..... or somebody can give me a clue about how to make it!!!!.... pleessseee :eek: :eek: :eek: :eek: :eek:
NogDog
07-02-2008, 12:34 AM
Sounds like someone's homework assignment is due tomorrow? :evilgrin:
Anyway, you might want to:
Calm down.
Stop pleading and begging, and instead...
...Explain carefully and in plain English exactly what it is you need.
I'm assuming you're referring to a chess knight's movement, but that's purely a guess based on what you've posted so far. If my guess is correct, no, I don't have the code nor do I have time to write it for you. I'd wager some creative web searching might find some code you could utilize.
HalfaBee
07-02-2008, 12:36 AM
Assuming you are talking about the chess knights trail.
A quick google found this java version which could be converted into php.
http://www.javaworld.com/javaworld/jw-11-2005/jw-1128-funandgames.html
Weedpacket
07-02-2008, 06:52 AM
Of course, it's much more fun to work it out for yourself. Promotes logical thought and all sorts of other nifty skills a programmer needs to cultivate.
(Conversely, if it's not much fun then programming would also be a bit of a drag.)
leatherback
07-02-2008, 07:48 AM
Of course, it's much more fun to work it out for yourself. Promotes logical thought and all sorts of other nifty skills a programmer needs to cultivate.
(Conversely, if it's not much fun then programming would also be a bit of a drag.)
Spoken like a true teacher.. ?
dalecosp
07-03-2008, 09:48 PM
X X
X X
XX XX
XX XX
X X
X X
X X
XXX XXX
XXX XXX
X X
Lolzer, what's difficult about it?
Weedpacket
07-04-2008, 06:03 AM
Eh, I prefer the "along one edge" representation:
+---+---+---+
| | |>>!|
+--->>>>/---+
|>>/| | |
+---+---+---+
It nicely captures the "jumping" aspect - see? It slides between the other pieces!
laserlight
07-04-2008, 07:04 AM
Eh, I prefer the "along one edge" representation:
It nicely captures the "jumping" aspect - see? It slides between the other pieces!
The current FIDE rules just use the geometric aspect: "The knight may move to one of the squares nearest to that on which it stands but not on the same rank, file or diagonal."
engotpacs
07-19-2008, 12:33 AM
hehe... sori guys and thank you for your help... =) gonna go figure it out!!!
engotpacs
07-19-2008, 12:35 AM
by the way, its knights tour..... not knights trail... sory 4 the misunderstanding..
engotpacs
07-19-2008, 12:46 AM
and by the way... its for academic purposes... if you can go and contribute.. just email me at [personal contact info removed] your help is pretty much appreciated... thank you so much!!
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.