Skip to content

Commit

Permalink
Spec out an option for problem correctness termination.
Browse files Browse the repository at this point in the history
Starting work for: #168
  • Loading branch information
artasparks committed May 16, 2017
1 parent 0da4c5c commit a332f17
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/api/sgf_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,15 @@ glift.api.SgfOptions = function(opt_o) {
C: ['Correct', 'is correct', 'is the correct']
};

/**
* This option indicates when, in the tree, the problem be marked 'incorrect'
* or 'correct'.
*
* api:experimental
* @const {string}
*/
this.problemTermination = 'INCORRECT_PATH'

/**
* Whether or not to show variations. See glift.enums.showVariations
* Values: NEVER, ALWAYS, MORE_THAN_ONE
Expand Down Expand Up @@ -376,7 +385,7 @@ glift.api.SgfOptions.prototype = {
*
* @param {!Object} sgf The raw SGF object.
*
* @retun {!glift.api.SgfOptions} The completed SGF options, which can be then
* @return {!glift.api.SgfOptions} The completed SGF options, which can be then
* used by the widget manager and the controller.
*/
createSgfObj: function(sgf) {
Expand Down

0 comments on commit a332f17

Please sign in to comment.