threes-ai icon indicating copy to clipboard operation
threes-ai copied to clipboard

Updating the game rules

Open maxsu opened this issue 5 years ago • 4 comments

Hi, I was wondering how we determine the deck generation and tile placement rules from the game itself. Does it require that we decompile the APK? Has that work been documented anywhere?

maxsu avatar Oct 10 '19 05:10 maxsu

I recall that they were derived simply through observation of the game state. I imagine a more robust method would be to reverse engineer the app; to my knowledge, this has not been attempted recently.

nneonneo avatar Oct 11 '19 21:10 nneonneo

Do you have any leads on where it might have been done before? I know nearly nothing about reversing a game, but I'm dying to know how the game places tiles during repeated moves in the same direction. It appears to reuse the same row until the player picks a new direction - I believe this is a new rule, since online implementations randomize the row on each move.

maxsu avatar Oct 11 '19 22:10 maxsu

I don’t, but I’ve personally reversed a fair number of android apps. If the app is written entirely in Java it isn’t too hard to do. It’s a fun thing to get started in!

On Oct 11, 2019, at 3:32 PM, Max Suica [email protected] wrote:

 Do you have any leads on where it might have been done before? I know nearly nothing about reversing a game, but I'm dying to know how the game places tiles during repeated moves in the same direction. It appears to reuse the same row until the player picks a new direction - I believe this is a new rule, since online implementations randomize the row on each move.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

nneonneo avatar Oct 12 '19 00:10 nneonneo

Thanks for the encouragement! If you'd like, I'll report my progress! Once I have some rules I might need some instruction on how to incorporate them into the the AI.

maxsu avatar Oct 12 '19 08:10 maxsu