[UCC::ProgComp] Surrendering

Sam Moore matches at ucc.gu.uwa.edu.au
Mon Apr 9 10:42:26 WST 2012


Hi Peter,

You can now surrender by sending "SURRENDER" in place of a move.
Surrendering results in a score of zero (as opposed to -1 for illegal 
moves). The opponent gets a score of 3.

I've also now enforced placement of all 40 pieces.

Thanks,
Sam
[SZM]

On Sun, 8 Apr 2012, Peter N Lewis wrote:

> Another question: how does one resign?  The stratego program does not appear to detect when there are no valid moves, and there does not appear to be any way for my program to resign, so its left to make an illegal move.
>
> The particular situation of no valid moves that tends to trip it up is when there are movable pieces that are hemmed in by immovable pieces.
>   Peter.


More information about the Progcomp mailing list