Comments (7)
It could be one of the cards has the wrong value in the game. Which cards did you have?
from doomtown-reloaded-octgn.
I'm not sure exactly, but I can narrow it down: the 9 might be Dr Dawn Edwards, Xiong "Wendy" Cheng, Jarrett Blake or Cheatin' Varmint (possibly Bunkhouse, Morgan Research Institute or Mechanical Horse), the 8 might be Lane Healey, Pat's Perch, Cattle M Ranch or Force Field and the 7s might be Pinto or Auto-Revolver (possibly James Ghetty, Arnold McCadish, Androcles Broklehurst, Blake Ranch, Cattle Market, Run 'em down or Pinned Down).
All of those cards have the correct rank and suit in the deckbuilder. I looked specifically for 7s and 9s in the deckbuilder when making the deck (a 7 would be the likely culprit under your scenario),
from doomtown-reloaded-octgn.
After some thinking, I've come to the conclusion that the issue cannot be caused by an incorrect value. If one of the 7s was counted as a 5, 6, 10 or J, the hand would be a legal straight rather than a cheatin' one. Straights (like Dead Man's Hands, Straight Flushes and High Cards) are never cheatin', because they cannot possibly have 2 cards with the same value.
from doomtown-reloaded-octgn.
hm, yeah, you're right.
from doomtown-reloaded-octgn.
I have an idea about how to detect straights: determine the highest (h) and lowest (l) natural ranks (excluding jokers, and converting A to 1, J to 11, Q to 12 and K to 13, like for pulls) occuring in the hand and the number of jokers (j); the hand is a straight if h - l < 5 and h - l + j >= 4. For lowball, ignore the jokers and just check h - l = 4.
from doomtown-reloaded-octgn.
I've seen it again with General Store (Q of D), 2x Hex Slinging (J of C), Avie Cline (10 of S) and the Black Joker.
Shootout hand is 5: Straight (Cheatin'!) (10 Spades, Queen of Diamonds, Jack of Clubs, Jack of Clubs, Joker).
from doomtown-reloaded-octgn.
The problem is that numrank treats jokers as kings, giving them rank 13. So they need to be excluded when checking for straights. To avoid having jokers being treated as both jokers and kings, the while condition in straightchk needs to be changed to
while i < 4 - jokers:
from doomtown-reloaded-octgn.
Related Issues (20)
- Sight Beyond Sight, "steals" card when there is only one of them in opponent 's hand.
- Consecration gives negative influence
- Silent Sigil - adds two cards at the edn of sundown ( not always, but often) HOT 1
- High Stakes Heaven, takes 1 gr immediatelly when cheating hand is revealed.
- Sight Beyond Sight making cards disappear from the game.
- Putting the Pieces Together has 3 production instead of 1 upkeep.
- Rick Henderson has 2 instead of 1 upkeep
- Walters Creek Distillery + The Union Casino executes both scripts without prompt
- [Feature Request] Hand Rank Modifier Marker
- Fiddle Game
- El Armadillo De Hierro
- Game board disappears completely (or zooms out, or scrolls away)
- Amazing Grace adds influence on itself instead on a dude and marker isn't visible
- Consecration still reduces influence instead of adding two
- Confession always adds 1 Gr , even if Blessed (printed) skill is 2 HOT 3
- Full Moon Brotherhood doesn't spawn marker on affected dude
- Cliff's #4 Saloon, spawns marker on itself instead on a target
- Hattie DeLorre ability doesn't spawn any markers
- Two dudes are not added "Thunder Boy" Nabbe and David "Slim Gorman
- Armadillo typo in Kung Fu keyword HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doomtown-reloaded-octgn.