Skip to content

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