🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #4814

implementing relations

#4814
From: Vincent Diepeveen
Date: Tue, 04 Oct 1994 12:33
31 lines
1740 bytes
Hello,

I'm looking for a quick way to representation.

I'm looking after all possible moves, that i put in an array,
but i need also to know which piece(s) cover that field;

GNU-chess has got 2 arrays, filled by :  ataks()
where all fields that are covered increments the array by one,
and is putting in the first bits what piece it was.

Now my problem: i'm not only looking for a function that does this,
but it must also give quickly the position where that 
piece that is covering this field.

The calculation of this function may be somewhat slow, but reading
the data must be quick!

It is meant for a knowledgebased chessprogramm.
Parsing/processing all knowledge is taking a long time, if i must
recalculate every time the position where the piece covering that
field must come from!

Greetings, Vincent Diepeveen.

vdiepeve@cs.ruu.nl
--
                +--------------------------------------+
                ||  email  : vdiepeve@cs.ruu.nl       ||
                ||  fidonet: 2:280/206.23             ||
                +======================================+
Technical Details
Message-ID: <Cx5EvJ.AJ6@cs.ruu.nl>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!EU.net!sun4nl!ruuinf!vdiepeve

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,e701d8fe80d99f6c,start
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1994-10-04 06:17:33 PST
Newsgroups: gnu.chess
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!EU.net!sun4nl!ruuinf!vdiepeve
From: vdiepeve@cs.ruu.nl (Vincent Diepeveen)
Subject: implementing relations
Message-ID: <Cx5EvJ.AJ6@cs.ruu.nl>
Sender: usenet@cs.ruu.nl (Six O'Clock News)
Organization: Utrecht University, Dept. of Computer Science
Date: Tue, 4 Oct 1994 12:33:18 GMT
Lines: 31