BUG: DRAW STATE is indeterminate: GameLogic._checkOutcome Conditionals
Label the Bug | Component| Feature Name: | File Name | Line No:
Related
[Feature]() ::
[User Story]() ::
[UAC]() ::
Bug Outline
A clear and concise description of what the bug is.
I can declare a winner
I can not determine a draw state based on current logic and checks in GameLogic._checkOutcome() method
I am seeing that when there is checkSequenceWin === False, then Next Turn is always returned.
Further debugging is needed, however time is pressing for deadline submission in 15 hours.
Bug Behaviour
Reproducibility
[ ] Is It: Yes
Steps to reproduce :
Go to 'Game Board'
Click on ' The following sequenece' is technicall and visually a draw
Cell 1: O
Cell 3: X
Cell 4: O:
Cell: 7: X
Cell 6: O
Cell 2: X
Cell 8: O
Cell 5: X
Code & Logging: The following are not being reached. in `GameLogic._checkOutcome
// K11
outcome = __logOutcome('5.1.3.1.A1', '🏁🟰', `Game Drawn after maximum turns reached`, this.IFDRAWN);
//K22
outcome = __logOutcome('5.1.3.1.A2', '🏁🟰', `Game Drawn after maximum turns reached`, this.IFDRAWN);
Expected
User Acceptance Criteria is a format to derive consistent expectations
Scenario:
Given: The sequnces for a draw state
(And:) the TotalCount of Turns is greater or equal to 8
When: I click on the 8th or 9th grid cell
(And:): I complete the game
Then: I should declare a draw
(And:) This should be announce
NOT: declare a Winner or
OR NOT: declare Next Turn
BUG
: DRAW STATE is indeterminate: GameLogic._checkOutcome ConditionalsRelated
Feature
]() ::User Story
]() ::UAC
]() ::Bug Outline
A clear and concise description of what the bug is.
Bug Behaviour
Steps to reproduce :
Go to 'Game Board'
Click on ' The following sequenece' is technicall and visually a draw Cell 1: O Cell 3: X Cell 4: O: Cell: 7: X Cell 6: O Cell 2: X Cell 8: O Cell 5: X
Scroll down to '....'
See error in screenshot and Mermaid Flowchart
Code & Logging: The following are not being reached. in
`GameLogic._checkOutcome
Expected
Copy to Readme || Source: []()
Visuals
Game UI
Logging in DevTools
Additional context**