Slack Poker Bot
41–50 of 100 posts
Re: Slack Poker Bot
#42The title confused me for a minute. In IRC chat circles, "bot" means a persistent software entity running in the channel, performing some task. In online poker circles, "bot" means software that automatically plays for you.
Re: Slack Poker Bot
#43Earlier quoted context omitted.
why not use a generic chatbot like errbot ( http://errbot.net [shameless plug alert]) and get all the backends (hipchat, IRC, XMPP etc...) for free ? there are existing poker AIs in python to integrate with: https://github.com/mikaelbr/AI-Poker-Player
Because the fun part was writing the game logic, not the glue code. ;)
Re: Slack Poker Bot
#44Earlier quoted context omitted.
Just a way better interface on it. Searchable history, multiple rooms inside rooms effectively. File sharing, lots of niceties that are probably possible in IRC but would take a lot of work. It has changed the way our team communicates, for me I am the only remote guy on a team of 6ish devs. I can pick and choose my hours, work when other guys are off, and still see all the comms that happened while I wasn't at my ma…
> I can pick and choose my hours, work when other guys are off, and still see all the comms that happened while I wasn't at my machine. I'm sure are features IRC cannot duplicate, but all that's necessary for that is a bouncer.
And sure, a bouncer with some plugins could do it, but you'd have to set it all up. I've had "have bouncer email me when I'm mentioned in a channel" as a mental to-do for the past five years, and it's never been a high-enough priority for me to sit down and expend the minimum of two hours it would take (and likely much more.)
Re: Slack Poker Bot
#45Re: Slack Poker Bot
#46https://github.com/CharlieHess/slack-poker-bot/blob/master/s...
Re: Slack Poker Bot
#47Am I correct in saying that the shuffle algorithm is flawed? It looks to me like it swaps each card iteratively with a random card in the deck. This means that some cards are likely shuffled more times that others, and some sequences are then more common than others. https://github.com/CharlieHess/slack-poker-bot/blob/master/s...
Deck.getRandomInt(index+1, numberOfCards)
instead of
Deck.getRandomInt(0, numberOfCards)
Re: Slack Poker Bot
#48Re: Slack Poker Bot
#49Edit: https://github.com/CharlieHess/slack-poker-bot/issues/14 https://github.com/CharlieHess/slack-poker-bot/issues/22
Glad I'm not the only one.
Re: Slack Poker Bot
#50Am I correct in saying that the shuffle algorithm is flawed? It looks to me like it swaps each card iteratively with a random card in the deck. This means that some cards are likely shuffled more times that others, and some sequences are then more common than others. https://github.com/CharlieHess/slack-poker-bot/blob/master/s...