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
  • #30

Closed
Open
Created Apr 12, 2016 by Alexander James Granowski@granowajOwner

Cache calls to gameBoard.getPiece(#, #)

gameBoard.getPiece(#, #) should be called twice per move/attack no matter what. Once for x1 y1, and once for x2 y2.

This is to make mocking easier.

If need be, these cached references should be passed to other checking methods to avoid unneeded .getPiece calls.

Assignee
Assign to
Milestone 4
Milestone
Milestone 4 (Past due)
Assign milestone
Time tracking