Deploy in 115+ regions with the modern database for every enterprise.
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Simple, Secure Domain Registration
Get your domain at wholesale price. Cloudflare offers simple, secure registration with no markups, plus free DNS, CDN, and SSL integration.
Register or renew your domain and pay only what we pay. No markups, hidden fees, or surprise add-ons. Choose from over 400 TLDs (.com, .ai, .dev). Every domain is integrated with Cloudflare's industry-leading DNS, CDN, and free SSL to make your site faster and more secure. Simple, secure, at-cost domain registration.
Why did I write this program, and why in Python? Well there were really two reasons. First I wanted to quickly test various game rules and strategies. Python and pygames made prototyping quick and easy. This is actually about the twentieth version of the game. Second I wanted to try the new match/case statements that were added in Python 3.10.
I found lots of uses for match/case and I really like it.
... examines own her step only, so the analysation depth is only 1, trying to gain the maximum available extra points. Turning trace mode on it is possible to play against computer with ultra skill level, where the analysation depth is increased to 2. With this setting the AI is stronger but the gameplay is unbearable slow. It is just for test purpose.