Showing posts with label robots. Show all posts
Showing posts with label robots. Show all posts

Saturday, March 14, 2020

Another Euchre bots update

The site was down for about 15 minutes this morning for some maintenance. An update has been applied to the Euchre bots. Someone reported that the bots were excessively careful in "guarding the left". They didn't try to trump even when they had three trump cards including the left bower, a case which would assure that the left remained guarded. This problem should be fixed now.

Saturday, January 11, 2020

Euchre bots update

The site was down for about 10 minutes this morning for some maintenance.

An update has been applied that tweaks the Euchre bots' tactics. I have a couple of pages that explain what was done.

First, the Euchre bots will now always lead trump if they are left of dealer and their 3rd seat partner declared trump. That page has some stats which indicate it is a successful tactic.

Second, the Euchre bots now have an improved algorithm for calling the up card when they are the dealer. If calling up will result in them having 3 trump cards, they will always call up. For example, if the up card is the 9 of clubs, and they have the 10 of clubs and the jack of spades, they will order the up card into their hand. That would give them 3 trump: the 9, 10, and left bower. If you visit that page to which I linked, you'll see some statistics that I ran which indicate this is a great tactic!

Finally, the Euchre bots will now always go alone when they have 5 trump cards. The logic goes like this: Suppose you have 5 trump cards. That's an excellent hand, and in the worst case you have the lowest 5 trump: 9, 10, queen, king, and ace. So let's look at this worst case. If your partner has the two bowers, then not going alone will help you get 2 points. However, going alone will ensure you get 4 points! Which is better? The 4 points, of course, so you should go alone. And what if your opponents have the left and right bower? Well, you'll only get 1 point, anyway, whether or not you go alone. There's exactly one case where your partner might help you get 2 points instead of 1 point. Suppose your partner has the right bower, and one of your opponents has the left bower. In that scenario, by going alone, you're going to get only 1 point instead of 2.

In the long run, the risk of getting only 1 point vs 2 is outweighed by the benefit of getting 4 points when going alone. Most of the time, your partner won't be able to help you, and it benefits the team to take the risk.

I hope you find that these changes in the Euchre bots make them a little better as a partner!
Should I order up?

Saturday, July 14, 2018

tinkered with the Spades bots

This morning's update fixed a couple of minor bugs.

In addition, I tinkered with the strategy of the Spades bots. There are small changes in their bidding and also in the way that they play.

Please keep in mind that sometimes it's hard to know what to bid, and the bots are not perfect! If you spot a particularly egregious bidding or playing error, where it's obvious that a bot did something bone-headed in the course of a hand of cards, and you want to do something to help correct it, you can! Please try to remember to download the hand history as soon as that hand is finished. Once you download it, you can send it to me, and tell me what you think was wrong. With this information, I can rework the code to improve the bots.

For those who do not know about the hand history, that is just a small text file with a URL (link) in it. The link is to a "replayer" at World of Card Games. When you copy and paste the URL into a web browser, you will get a "replay" of that hand, showing who bid what, and how each card was played. All the cards will be shown face-up straight from the start. This link is an example of a "hand history".  You can click it to see how it works. But don't click it if you are currently playing a game at World of Card Games; it will not work, in that case.

You can only download the hand history if you are a registered user and signed in. Also, it's only available for 30 seconds after the hand finishes. So grab it quickly if you want to save it! To download it, click the little floppy disk icon that appears near your avatar. You can see that in the screenshot, below:
click the floppy disk icon to download hand history

Sunday, June 18, 2017

you can play ranked Twenty-Nine games!

After this morning's update to the site, you can now play ranked Twenty-Nine!
ranked twenty-nine
There were a few other updates made, as well. In Double Deck Pinochle, the bots now use the "Jack leadback". Click that link to learn more about how it works. There's also a youtube video about the Jack leadback. The bots have had a few other strategy improvements as well. Thanks to those who sent me feedback over the last several weeks!

In addition, players at ranked tables are now allowed 3 minutes to get back to their table before getting penalized (previously it was 2 minutes).

In Euchre, the bots have had a couple of minor strategy improvements. Also, you are now given less time - 15 seconds - to choose the up card or a suit. This seems long enough even for beginners.

Finally, someone wrote to me with a question about meld bidding. This question made me think my original page on Double Deck Pinochle strategy was insufficient. So I've added a new page on meld bidding. Some players will have their own established meld bidding signals, and those may not agree with mine. In Pinochle, what matters is that the two teammates agree about the signals being made. It also helps to be able to read what your opponents are signalling. If you do not know your partner well, you may want to discuss signals with them after the game. There's a "chat" table button for this purpose. You can also send messages to a player (this only works if you have "liked" them).

Wednesday, November 19, 2014

server update - more bug fixes

The server was down for a brief time this morning to apply some bug fixes. I apologize for the disruption in your games!

Here's the summary of changes:

On occasion, the "Knock" button did not show up in Gin Rummy, when it should have. This is now fixed.

In Twenty-Nine, the "Accept" button became disabled when a new player entered the table. This is also fixed.

Some players have pointed out that the bots will waste a high trump card when defending a nil bid. They tended to use their high cards to trump, rather than bleed out trump cards. This is now fixed. Thanks to those who pointed this out, and helped to improve the bots!

Finally, your chat bubble has been shifted to the side a little further, so it will not obscure your cards anymore.

Sunday, October 5, 2014

server update - gin rummy bug fixed

The server was out briefly for an update this morning. Sorry for the interruption in games!

The update included a couple of changes. There was a bug in Gin Rummy which caused bots to time out, occasionally. Thanks to everyone who reported this! I found a problem which caused that, and fixed it. Please let me know if you see any other problems.

The drag-and-drop functionality in Gin Rummy has also been altered slightly, so you can now see the card that you've picked up to sort. I hope this makes sorting a little easier. Also, sorting now works on tablets - at least on the devices that I have available for testing. Let me know if this does not work for you.

Finally, the Hearts robots have been tuned up a bit, so they will no longer be so cooperative towards someone attempting to shoot.

Thursday, July 17, 2014

robot strategy in spades has been reworked

Tom Servo says "want to play a game of Spades?"
In June, I took a stab at improving the robot strategy in the game of Spades.

I've taken more time to revamp the Spades bots, and those changes were deployed this morning. Both bidding, and choosing a card to play, have been substantially reworked. The bots are still far from perfect - there are some subtleties in Spades that I haven't handled, but I will eventually get to them. For now, I think that their new behavior makes them better players in general, and better partners, too.

If anyone notices specific bad habits that linger on, I'd like to hear about it. Feel free to write me at marya@worldofcardgames.com or just post the issue in the comments section.

Monday, June 16, 2014

improved bot strategy in spades!

It surprises me, but I've had only a few complaints about the bot strategy in Spades. I rarely play with bots, so their problems haven't bugged me too much, and I haven't been highly motivated to fix them. However, when I do play, I've noticed one pretty obvious and irritating behavior: they tend to waste Kings. They'll play the King of clubs, for example, before the Ace of clubs has been played. This is a good way to lose the trick! With today's deploy, this bug is fixed.

In addition, someone mentioned to me that the bots sometimes bid nil when they are holding 5 spades! You will find various sites that recommend you not bid nil with 4 or more spades in your hand (e.g. sky_rockets1's page or the Rules of Spades site). This problem has been fixed as well.

I am far from finished with the bots. More improvements will be coming, when I have the time for it.
let's hope he's smiling because he got the bid right!

Monday, January 13, 2014

new feature! - allow humans to replace robots

World of Card Games got an update this morning. A new, experimental feature was added: the ability to replace robots with humans. Please let me know what you think, or if you notice any problems due to this new feature. Below, I give you some details about how it works.

Suppose you come to the site and you're sitting around waiting for some people to play with. You'd like to start playing right away, and you could do that by inviting robots. But, let's face it, the robots don't play very well, so you can't have a normal game with them (sometimes humans don't play very well either, but let's not go there...). And once you invite bots, you are stuck with them for the entirety of the game!

That changes, as of today!

click on message box to use the new replace robots feature
When you sit at a table, you will now see an extra message in the lower right corner: "Click here to start game with robots. Humans may replace them later." When you click on that message box, robots will fill all empty seats at the table. Then when any people want to be seated at a table for that game, they will bump a robot. This way, you can start playing right away, and people will eventually replace the bots.

If you sit at a table and don't see the new "replace robots" message box, that would be because you've set your table options to disallow robots.

There's one other, new change that applies if you have specifically set your table options to "Private Table" with the table name "none" - as shown in the screenshot here:
When you choose your private table to be named "none" (this is the default), then no people will ever come to your table. It's intended to be used if you only want to play with robots - no one else will be seated at such a table.

Previously, if you had set up your options this way, it was up to you to invite three robots to the table. Now, your game will start automatically with robots once you sit down at the table. It's just a little more convenient.

Enjoy the new features! As always, feedback is welcome!