govariantsteam / govariants

A place to play Go variants
https://www.govariants.com
GNU Affero General Public License v3.0
5 stars 1 forks source link

mosaigo #151

Open Ruyaoo opened 1 year ago

Ruyaoo commented 1 year ago

百度贴吧(1) 百度贴吧(2) 百度贴吧(3) 百度贴吧(4)

Hello,May I ask if you are interested in mosaigo.It can be increased or eliminated the line of board.

JonKo314 commented 1 year ago

Hello, I'm definitely interested in variants with a board like the second picture (the wooden board) and I think it shouldn't be that hard to achieve with our current code.

What is the meaning of the dark squares on the other boards? Do they also represent a border?

Ruyaoo commented 10 months ago

Yes, one way is to remove the lines.

One way is to remove blocks.

JonKo314 commented 10 months ago

I'm not sure what you mean by removing blocks. When we look at a Goban as a graph, all we can do is (add or) remove nodes and edges.

Ruyaoo commented 10 months ago

yes,thank you,good job!

---Original--- From: @.> Date: Sun, Nov 12, 2023 06:38 AM To: @.>; Cc: @.**@.>; Subject: Re: [govariantsteam/govariants] mosaigo (Issue #151)

I'm not sure what you mean by removing blocks. When we look at a Goban as a graph, all we can do is (add or) remove nodes and edges.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

benjaminpjones commented 4 months ago

I'm not sure what you mean by removing blocks. When we look at a Goban as a graph, all we can do is (add or) remove nodes and edges.

I believe the method of removing "blocks" is as follows:

1) A square surrounded by 4 edges is called a "block". For example, a 9x9 board is made up of 8x8=64 blocks. 2) Blocks may be removed for mosaigo. 3) In terms of graphs, an edge touches one or two blocks. If all adjacent blocks are removed, the edge is also removed. 4) If all edges are removed from a node, the node is also removed.

It's not nearly as flexible as removing edges and nodes directly, but I think all the boards above demonstrate this constraint.

JonKo314 commented 3 months ago

@Ruyaoo, this is now possible, but board creation is a bit cumbersome.

image

https://www.govariants.com/variants/baduk/demo

Bitmap:

[
[3,2,0,3,2,0,0,0,0],
[1,3,3,3,4,3,3,2,0],
[0,1,3,3,3,3,3,2,0],
[3,3,3,3,3,3,3,3,2],
[1,3,3,3,3,3,3,3,2],
[0,3,3,3,3,3,3,1,4],
[3,3,1,3,3,3,3,2,0],
[1,4,3,3,4,1,3,2,0],
[0,0,1,4,0,0,1,4,0]
]