Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to test applyMoves and state-changing methods in general #1

Open
wants to merge 11 commits into
base: cmauban--chess-2.0
Choose a base branch
from

Conversation

al-the-x
Copy link
Member

@al-the-x al-the-x commented Oct 1, 2015

  • What does game.reset() do and when do I need it?
  • Read the DAMN DOCS, AKA docblocks.
  • Test for Precondition; Perform Action; Test for Postcondition
  • Start small: BABY STEPS; change only one thing at a time
  • Composition -- the output of one function used as the input of another
  • Pure Functions -- functions with no side-effects
  • More global vs local scope nonsense... Encapsulation!

@TIY-Durham/2015-fall-fee: Please find examples of these in the code in this PR and comment on those lines identifying the concepts, e.g. Encapsulation or Preconditions.


This change is Reviewable

al-the-x pushed a commit that referenced this pull request Oct 1, 2015
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.

1 participant