Skip to content
This repository has been archived by the owner on Oct 24, 2021. It is now read-only.

fix: game-over with wrong parts pickup #36

Merged
merged 2 commits into from
May 23, 2019
Merged

Conversation

Hoishin
Copy link
Member

@Hoishin Hoishin commented May 17, 2019

I don't think game-over is currently working

edit:
more specifically, the player's state value isn't set currently

closes #38

@rikumiyao
Copy link
Contributor

should update the tests. I think for the togeaggle swap test case I cut the log before the game ended so no changes needed there

@Hoishin Hoishin changed the title fix: game-over with wrong parts pickup [WIP] fix: game-over with wrong parts pickup May 19, 2019
@@ -71,8 +71,8 @@ describe('hearthstone-log-watcher', () => {

gameState.should.deep.equal({
players: [
{id: 1, name: 'SpookyPatron#1959', status: '', turn: false, questCounter: 6, timeout: 75, cardCount: 16, secrets: [], position: 'bottom'},
{id: 2, name: 'SnarkyPatron#1301', status: '', turn: true, questCounter: -1, timeout: 75, cardCount: 18, secrets: [], position: 'top'}
{id: 1, name: 'SpookyPatron#1959', status: 'WON', turn: false, questCounter: 6, timeout: 75, cardCount: 16, secrets: [], position: 'bottom'},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These values should have had 'WON' or 'LOST' before, because the dummy logs continues until the game ends.

@Hoishin Hoishin changed the title [WIP] fix: game-over with wrong parts pickup fix: game-over with wrong parts pickup May 23, 2019
@codecov-io
Copy link

Codecov Report

Merging #36 into master will increase coverage by 2.03%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #36      +/-   ##
==========================================
+ Coverage   76.01%   78.04%   +2.03%     
==========================================
  Files          13       14       +1     
  Lines         271      287      +16     
  Branches       50       50              
==========================================
+ Hits          206      224      +18     
+ Misses         45       43       -2     
  Partials       20       20
Impacted Files Coverage Δ
src/GameState.ts 84.61% <100%> (-15.39%) ⬇️
src/line-parsers/game-over.ts 92.85% <50%> (+7.14%) ⬆️
src/line-parsers/index.ts 100% <0%> (ø) ⬆️
src/index.ts 100% <0%> (ø)
src/line-parsers/mulligan-start.ts 100% <0%> (+33.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1e4f4e...ced64e0. Read the comment docs.

@Abrahamic-God Abrahamic-God merged commit f1dc54b into master May 23, 2019
@SupportClass-bot
Copy link

🎉 This PR is included in version 2.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants