Skip to content

Feature: king as win-condition#1

Open
NoaKajou wants to merge 2 commits into
jamailun:mainfrom
NoaKajou:kanekiki
Open

Feature: king as win-condition#1
NoaKajou wants to merge 2 commits into
jamailun:mainfrom
NoaKajou:kanekiki

Conversation

@NoaKajou

Copy link
Copy Markdown

being the king is now required to win the game. Point cap is fixed at 1000

being the king is now required to win the game. Point cap is fixed at 1000
@jamailun

Copy link
Copy Markdown
Owner

Thanks for your PR. Could it be possible for you to make it configurable ?

assert delta > 0;

score += delta;
if (score > 1000) score = 1000;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use 1000 directly. Use the getRules().getScoreGoal() output.

@jamailun jamailun changed the title upgrade ? Feature: king as winb-condition Jun 13, 2026
@jamailun jamailun changed the title Feature: king as winb-condition Feature: king as win-condition Jun 13, 2026
@jamailun jamailun added the enhancement New feature or request label Jun 13, 2026
changed 1000 to getRules().getScoreGoal()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants