Skip to content

Add method to create Option<Field> from move #1

@Firegate1075

Description

@Firegate1075

Currently, every for every possible relative move (as in file +=x, rank += y) has to be checked manually.
Implement a method for Field to return Some(Field after the move) if the resulting move is valid (on the board).
If the move would end up outside the bounds of the board, return None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions