frankobjank / natac

Free & open source networked game implemented in Python, inspired by Klaus Teuber's Settlers of Catan for MacOS and Linux.
1 stars 0 forks source link

Initial settlement placement does not validate that each settlement has an ajoining road #33

Closed ashn-dot-dev closed 2 months ago

ashn-dot-dev commented 2 months ago

Discovered on commit 6ad236df70a270faa799c400f16ca3ab750e54f4.

In this game, the red player placed an initial settlement on the vertex boarding the 5 wheat, 10 brick, and 9 sheep tiles, placed a road adjacent to that settlement, placed a second settlement bordering the 9 ore and 6 sheep tiles, and finally placed their second road. This second road was allowed to be placed branching off of the road adjacent to the initial settlement.

Per the game rules:

The starting player places a settlement on an unoccupied intersection of their choice, then places a road adjacent to this settlement. The other players then follow clockwise. Everyone places 1 settlement and 1 adjoining road.

As currently implement, the game does not require that a placed settlement have an adjoining road.

Screenshot 2024-04-04 at 4 28 21 PM