Skip to content

Commit

Permalink
Fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
aod committed Sep 6, 2022
1 parent 04c37ec commit d0d37fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Of course to playtest the game you need to know the rules. Well, here they are:
- 10: Burns the pile including itself
- Player can play multiple cards of the same rank
- After every turn Player must take from deck until **hand** size is **3**
- Player takes whole pile if no card could be played into their **hand**
- Player can pick up the pile at any moment
- When a _hand_ is empty you move to the next one:
**hand** -> **face-up** -> **face-down**
- **face-down** cards are played _blindly_ and player must take the pile
Expand Down
8 changes: 1 addition & 7 deletions src/state/machines/zhithead.machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,7 @@ export const zhitheadMachine = zhitheadModel.createMachine(
"takePile",
"switchTurns",
],
cond: (context) =>
context.currentTurn === "human" &&
(!_canPlay(
context.pile.at(-1)!,
context.pile.slice(0, -1)
) ||
!canCurrentPlayerPlayCard(context)),
cond: (context) => context.currentTurn === "human",
},
},
},
Expand Down

0 comments on commit d0d37fd

Please sign in to comment.