mahjong

Mahjong - Arrange tiles to ensure at least one path to victory, regardless of layout.

Regardless of the layout being used for the tiles, is there any good way to divvy out the tiles so that you can guarantee the user that, at the beginning of the game, there exists at least one path to completing the puzzle and winning the game? Obviously, depending on the user's moves, they can cut themselves off from winning. I just wa...

Resources that explain or investigate artificial intelligence (AI) based approaches/strategies to the game of Mahjong

While Mahjong (the actual game, not Mahjong solitare) is fairly simple in terms of basic rules and gameplay, setting objectives for the AI to transition to aim for certain end game goals seems fairly complex. Is anyone aware of any papers, research, or other materials related to this topic? ...

Mahjong-solitaire solver algorithm, which needs a speed-up

Dears, I'm developing a Mahjong-solitaire solver and so far, I'm doing pretty good. However, it is not so fast as I would like it to be so I'm asking for any additional optimization techniques you guys might know of. All the tiles are known from the layouts, but the solution isn't. At the moment, I have few rules which guarantee safe r...

Please help me speed up this mahjong algorithm

I am writing some mahjong-related functions in JavaScript. Here is what I have below, with code for test cases. Note that mahjong hands are represented by arrays, with: element 0 being the total number of tiles in the hand elements 1 through 34 being the number of tiles of each type in the hand first craks, then dots, then bams, the...

iPhone - Need some reference code for card game.

I am going to build a card game. Game will be like MahJong. I want some reference code or link to start with. If you have any, then please share it. ...