Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConHex Environment Bug Fixed: Central Cell Capture Logic Not Working in ConHex #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GuoJTim
Copy link

@GuoJTim GuoJTim commented Sep 15, 2024

Description

  1. There is an issue in the ConHex game where the central cell is not being captured correctly. According to the rules, the central cell should be captured when a player occupies three of its five surrounding vertices. However, the current implementation does not trigger this behavior, and the central cell remains uncaptured, even when the conditions are met.
  2. ConHex does not allow draws as per the official rules [1], but the current implementation includes a draw condition.

Proposed Solution

  1. Modify the "CellOfLastVertex" logic to include the central cell when three vertices are occupied .
  2. Change the "Draw" move count from 52 to 100, as there are no draws in ConHex.

Reference:

  1. https://nestorgames.com/rulebooks/CONHEX_EN.pdf

…king in ConHex and there's no draw in ConHex

Modify the "CellOfLastVertex" logic to include the central cell when three vertices are occupied
Change Draw move count from 52 to 100 avoid Draw in ConHex[1]

Reference:
1. https://nestorgames.com/rulebooks/CONHEX_EN.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant