Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Feature/general grid type #124

Open
wants to merge 8 commits into
base: development
Choose a base branch
from

Conversation

Florisheinen1
Copy link
Member

@Florisheinen1 Florisheinen1 commented Jun 20, 2022

This PR generalizes the existing grid class. This allows for encapsulating grids inside grids inside ... . This is a buildup towards a following PR that improves the Field class.

This is done by making a virtual Grid class, that can be implemented in multiple ways. An example implementation is FastGrid, which stores all its cells (can be grids or rectangles or other cell-like types) in an one dimensional array (instead of the previous 2D), resulting in better caching.
A specific type of that FastGrid is made with the Grid3x3, which, like the name suggests, promises a 3 by 3 grid, so you can call functions like topLeftCell.

This PR is co-dependent on the PR in AI

resolved conflicts between feature/generalGridType and development in order to properly test this branch
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants