Ludii Forum
number of friendly pieces in line of sight - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Questions (https://ludii.games/forums/forumdisplay.php?fid=13)
+--- Forum: About the Ludii Grammar (https://ludii.games/forums/forumdisplay.php?fid=15)
+--- Thread: number of friendly pieces in line of sight (/showthread.php?tid=159)

Pages: 1 2 3 4 5


RE: number of friendly pieces in line of sight - Michael - 09-30-2020

I'm not sure how you want passing to work.
We also need a rules text adapted to this implementation.
And do you want to keep a running score?


RE: number of friendly pieces in line of sight - MikeZapawa - 09-30-2020

(09-30-2020, 01:57 PM)Michael Wrote: I'm not sure how you want passing to work.
We also need a rules text adapted to this implementation.
And do you want to keep a running score?

The players should get the chance to pass anytime, and two consecutive passes should end the game.

Scoring is a bit tricky, since simply giving a point for a stone really defeats the whole purpose of passing -- passing is meant to occur once the territory solidifies. So probably the best option is to award each stack to its current owner, and each empty cell to the player who has more lines-of-sight on it. It technically allows for a draw, but it's a people problem, not a game problem.

What changes in the rules text are needed in your opinion?

When it comes to the running score, I don't really consider it meaningful.


RE: number of friendly pieces in line of sight - Michael - 09-30-2020

We can keep a running tab on territory in that sense. Here is P1's territory if I'm not confused:
Code:
(+
    (count Sites
        in:(sites Occupied by:P1)
    )
    (count Sites
        in:(forEach
            (sites Empty)
            if:(>
                (count Pieces P1 in:(sites LineOfSight at:(site)))
                (count Pieces P2 in:(sites LineOfSight at:(site)))
            )
        )
    )
)



RE: number of friendly pieces in line of sight - MikeZapawa - 09-30-2020

(09-30-2020, 02:36 PM)Michael Wrote: We can keep a running tab on territory in that sense. Here is P1's territory if I'm not confused:
Code:
(+
    (count Sites
        in:(sites Occupied by:P1)
    )
    (count Sites
        in:(forEach
            (sites Empty)
            if:(>
                (count Pieces P1 in:(sites LineOfSight at:(site)))
                (count Pieces P2 in:(sites LineOfSight at:(site)))
            )
        )
    )
)

Yeah, this works. But I have two concerns:

1. Whether or not this information is at all meaningful, especially early on
2. Whether or not this would further slow down the game

Ultimately I don't think I have a strong opinion about including/excluding this.


RE: number of friendly pieces in line of sight - Michael - 09-30-2020

My only counter-concern is whether it can be tedious to count manually in even positions. But I don’t have the experience to back it up. Just thinking out loud.


RE: number of friendly pieces in line of sight - MikeZapawa - 09-30-2020

(09-30-2020, 03:00 PM)Michael Wrote: My only counter-concern is whether it can be tedious to count manually in even positions. But I don’t have the experience to back it up. Just thinking out loud.

I think I'd rather omit it.

---------------------------------

So passing and after-pass scoring are the only thing left until there's full implementation. I'm really grateful!


RE: number of friendly pieces in line of sight - Michael - 09-30-2020

Does this work?


RE: number of friendly pieces in line of sight - MikeZapawa - 09-30-2020

(09-30-2020, 03:38 PM)Michael Wrote: Does this work?

Perfectly so!


RE: number of friendly pieces in line of sight - Michael - 09-30-2020

(09-30-2020, 02:13 PM)MikeZapawa Wrote:
(09-30-2020, 01:57 PM)Michael Wrote: We also need a rules text adapted to this implementation.
What changes in the rules text are needed in your opinion?
I didn't mean to ignore this. I was just thinking that it should explain how to choose color in the opening phase, and refer to the right colors (if colors are referenced at all). Stuff like that.


RE: number of friendly pieces in line of sight - MikeZapawa - 09-30-2020

(09-30-2020, 04:21 PM)Michael Wrote:
(09-30-2020, 02:13 PM)MikeZapawa Wrote:
(09-30-2020, 01:57 PM)Michael Wrote: We also need a rules text adapted to this implementation.
What changes in the rules text are needed in your opinion?
I didn't mean to ignore this. I was just thinking that it should explain how to choose color in the opening phase, and refer to the right colors (if colors are referenced at all). Stuff like that.
I've updated the metadata and I'll post it separately, of course with full credits to both of you guys.