mahjong
Mahjong winning hand algorithm
I\'m looking for an 开发者_如何学Pythonalgorithm that will determine if the current mahjong hand is a winning one. If you are not familiar with the game, here\'s the basic idea (simplified):[详细]
2023-02-09 21:34 分类:问答How do I calculate the shanten number in mahjong?
This is a followup to my earlier question about deciding if a hand is ready. Knowledge of mahjong rules would be excellent, but a poker- or romme-based background is also sufficient to understand thi[详细]
2023-01-25 23:52 分类:问答How can I quickly tell if a list contains only duplicates?
There are multiple related questions, but I\'m looking for a solution specific to my case. There is an array of (usually) 14 integers. How can I quickly tell if each int appears exactly twice (i.e. th[详细]
2023-01-24 23:31 分类:问答Algorithm to find streets and same kind in a hand
This is actually a Mahjong-based question, but a Romme- or even Poker-based background will also easily suffice to understand.[详细]
2023-01-24 19:31 分类:问答How to implement a Mahjong game?
Mahjong is one of the most popular games in Asia (not the solitaire style found in Windows 7).There were plenty of Mahjong games out there including online ones from Yahoo or offline ones back in the[详细]
2023-01-23 05:44 分类:问答Check if a Windows application is installed on local machine from Asp.net?
We have a certain application installed on a single machine.I would like to enable/disable a button based on the exis开发者_StackOverflowtence of this application.Is there a way to check for its exist[详细]
2022-12-23 20:16 分类:问答