Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
2-Stratego 2-Stratego
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CSSE376 Team 2-Stratego
  • 2-Stratego2-Stratego
  • Issues
  • #5

Closed
Open
Created Mar 23, 2016 by Alexander James Granowski@granowajOwner

Make spaces class?

Right now, a space from the board can be one of two things:

  • A piece
  • null (This has a lot of meanings)

but that seems a little too ambiguous. A space for example could be:

  • An empty space
  • An empty space with a piece on it
  • An empty space that cannot be moved to (environment blockage)
  • A space off the board

I propose we add a space class for the board class so we can get more information from the board, and so we avoid IndexOutOfBounds exceptions.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking