[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pbmserv-dev] Cathedral edge case



I agree.  That's what it *should* do.  But I'm having trouble codifying
that.

specifically.  the rules state, you can not capture on your opening move.

So, I put code in there that if the amount of territory being "captured"
is more than 94 (10x10 - 6)... it's too early to capture.

The max territory that allows for a capture is...

1 CAnB6        2 STnI9
3 TAnJ10       4 BRnj7xCAxTA

Yes...  STnJ8 and TAnJ9 should also work.  But the amount of territory
captured then in too great for the earlier algorithm of thou shalt not
capture on placing a single piece code to deal with.

I could make the code simply ignore the 1st move of each player, but then
I could place  TOnC1 as my opening move (assuming it's clear) and I'd
capture A1,A2,B1 for future moves (once the capture code "turns on" later)

The code is open for audit... PLEASE!


On Thu, May 02, 2002 at 12:38:15AM -0400, Randall Bart wrote:
> 
>    'Twas 00:00 -0400 on Thursday 5/2/2002 when
>    owner-pbmserv-dev@gamerz.net wrote:
>    
>      FYI... the current Cathedral implementation is busted... working on
>      it.
>      It's almost done.  just one edge case needs work.
>      The case is...  Place cathedral (anywhere)
>      CAnD5 STnb1
>      TAna1 TAna2
>      I think that will "fail" in the current implementation.
>      
>    Which way are you saying it's busted?  Correct result is the Cathedral
>    and Tavern are captured, and light can't place any pieces.  On move 2
>    (the first light move) you can't capture territory (ie, 2 TOnC1 does
>    not win the game) but move 3 (the first dark move) and all subsequent
>    moves can capture territory.  Make your moves accordingly.  Move next
>    to the Cathedral if you're worried.
>    
>      >    Light          Dark
>      >    rrognlie       daniel
>      >    1 CAnB6        2 TOnD1
>      >    3 SQnA1        4 TAnA3xCAxSQ
>      >    5 -- (Auto)
>      
>      > The game is effectively over.  rrognlie can't move at all.
>      daniel
>      > places his pieces at will.
>      
>    This is correct behavior.
>    
>    --
>    
>    RB |\  Randall Bart
>    
>    aa |/  admin@RandallBart.com     1-818-985-3259      Barticus@att.net
>    
>    nr |\  Cell: 1-917-715-0831              Office: 1-212-343-1234 x3016
>    
>    dt ||\ Here I am: [1]http://RandallBart.com/                  I LOVE
>    YOU
>    
>    a   |/    Cardinal Virtue:
>    [2]http://RandomHouse.com/wotd/?date=20011024
>    
>    l   |\ DOT-HS-808-065       MSMSMSMSMSMSMS=6/28/107       Joel 3:9-10
>    
>    l   |/    Terrorism:
>    [3]http://www.markfiore.com/animation/adterror.html To unsubscribe,
>    send a message to esquire@gamerz.net with unsubscribe
>    pbmserv-dev@gamerz.net as the BODY of the message. The SUBJECT is
>    ignored.
> 
> References
> 
>    1. http://randallbart.com/
>    2. http://randomhouse.com/wotd/?date=20011024
>    3. http://www.markfiore.com/animation/adterror.html

-- 
 /  \__  | Richard Rognlie / Sendmail Ninja / Gamerz.NET Lackey
 \__/  \ | http://www.gamerz.net/rrognlie/    <rrognlie@gamerz.net>
 /  \__/ | No trees were killed in the sending of this message. 
 \__/    | However, a great many instructions were executed.