Search found 333 matches

by phhnguyen
Thu Aug 19, 2010 4:03 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Perpetual chasing in Xiangqi
Replies: 78
Views: 6756

Re: A method to implement Asian rule

I will give you an illustation of how the algorithm works. In almost all cases of Asian rule examples, victims usually have not any protectors so the algorithm works as the old version (before adding the boolean variable beProtected). The previous illustration which I have posted on 08/08/2010 (in t...
by phhnguyen
Thu Aug 19, 2010 1:36 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Perpetual chasing in Xiangqi
Replies: 78
Views: 6756

Re: A method to implement Asian rule

Hi all, I will show you my modification of algorithm to deal with perpetual chase type of using protector (Appendix cases). The algorithm has been still in development and not completed yet (the last Appedix example of Asian rule still fail, some real games still need to check). However I post here:...
by phhnguyen
Wed Aug 18, 2010 11:52 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Perpetual chasing in Xiangqi
Replies: 78
Views: 6756

Re: A method to implement Asian rule

Thank Muller, your explanation about WB is very clear.
by phhnguyen
Wed Aug 18, 2010 12:04 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Perpetual chasing in Xiangqi
Replies: 78
Views: 6756

Re: A method to implement Asian rule

You are right in this case. I have been trying to find an example of attacker-specific which I have different conclusion, but not success for above example. BTW, just OT, when I create that game in WB, it says nothing about result (*). Usually as my experience, after creating the game and then copyi...
by phhnguyen
Sat Aug 14, 2010 10:19 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Perpetual chasing in Xiangqi
Replies: 78
Views: 6756

Re: A method to implement Asian rule

Making chase-by-unprotect a 'third-rank violation' has the advantage that it becomes than easier to make the next step, "so let's forget about it completely", which makes chase detection in engines a lot simpler and less costly. (We could call it "Europe rules" :P ) Let discuss more, I think when w...
by phhnguyen
Fri Aug 13, 2010 1:06 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Perpetual chasing in Xiangqi
Replies: 78
Views: 6756

Re: A method to implement Asian rule

1) Chasing by protection subversion is a lesser offense than chasing by direct attack. (Just like chasing is a lesser offense than checking.) So there are actually three levels of perpetuals: checking, chasing and unprotecting. Only when both sides do not violate the higher rule, one starts worryin...
by phhnguyen
Wed Aug 11, 2010 8:05 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Perpetual chasing in Xiangqi
Replies: 78
Views: 6756

Re: A method to implement Asian rule

Sorry all, I may need to change my algorithm to solve the method of solving chase by setting protection to the victim. But before showing the modified algorithm, I would like to discuss some examples of Asia rule. Here is the 1st game: [Event "Asia Rules Appendix 3"] [Site "Pham"] [Date "2010.08.10"...
by phhnguyen
Sun Aug 08, 2010 4:23 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Perpetual chasing in Xiangqi
Replies: 78
Views: 6756

Re: A method to implement Asian rule

I define my chase/attack list as a list of pairs: attacker+victim. Yes, I understood that. It was initially just not clear which side was the attacker, and which he victim, when you speak about "the attck kist of player P". There are few little tricks here: my subtraction operator works based on co...
by phhnguyen
Sun Aug 08, 2010 4:16 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Perpetual chasing in Xiangqi
Replies: 78
Views: 6756

Re: A method to implement Asian rule

I will illustrate my algorithm by some examples. Example 1 (provided by H. Muller) C r . a k . e . . . . . . a . . . . . . . . e . . . . . . . . . . . r p . . . . . . . . . . . R . . H . . . . . . . P . . . c . . . . . . . . . . . . . A . . c . . . E A K . E R . white to play Fen: Cr1ak1e2/4a4/4e4/7...
by phhnguyen
Sun Aug 08, 2010 4:11 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Perpetual chasing in Xiangqi
Replies: 78
Views: 6756

Re: A method to implement Asian rule

To avoid some confuse how to calculate list A and B and be easy for me to illustrate, I little re-write the algorithm: II. Identify chases I use an array attackList[side][nmove] (list of pairs: attacker and its victim) to calculate and store all attacks for both sides for each position. 1) Starting ...