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

Allow creating boards smaller than 8x8 #199

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ivan444
Copy link

@ivan444 ivan444 commented Aug 30, 2020

Enable create boards smaller than 8x8 for games similar to chess.

The behavior is controller by a config params:

numRows: int
numColumns: int

The code restricts it to a square board (forces numRows == numColumns). It's possible to create a non-squared board, but it's hard to test if it covers all use-cases. That's why I kept the restriction.

It easy to extend the code to support more than 8x8 rows and columns. But then you run into column & row naming issues (most of the code assumes they are a single character). Considering parseInt function, it should be somewhat trivial to extend it to up to 36 rows and many more columns (if you go above a-z column names).

Closes #198

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.

Feature request: allow boards smaller than 8x8
1 participant