Skip to content

Commit

Permalink
Add note about getNextMove() returning a promise
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed Mar 21, 2022
1 parent 27a06a9 commit eae7aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/models/async-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AsyncPlayer extends Player {
// integer column in which to place the player's next chip; all AsyncPlayer
// subclasses must implement this method
getNextMove() {
throw new Error('This method must be implemented by a subclass of AsyncPlayer');
throw new Error('This method must be implemented by a subclass of AsyncPlayer; it must return a promise which resolves when the async player\'s next move has finished computing');
}

}
Expand Down

0 comments on commit eae7aac

Please sign in to comment.