Skip to content

unexpected behaviour when combining multiple pieces #1

@LucaTedeschini

Description

@LucaTedeschini

I don't know if it is intended, and I don't know if the AI is made based on this assumption so I haven't changed anything, but the game sum up multiple pieces with one slide, while the android app doesn't, it needs multiple swipe (and between slides pieces get added). For example

0 0 0 0
2 8 4 4
0 0 0 0
0 0 0 0

If the input choosen is "left", the program will update the board this way

0 0 0 0
2 16 0 0
0 0 0 0
0 0 0 0

while on the app it updates to

0 0 0 0
2 8 8 0
0 0 0 0
0 0 0 0

with another piece added in a random position. My solution is to reset the program and input the new board position, so the AI can take in consideration the new added piece. Is this intended? Can i change this behaviour without interfering with the AI logic process? Maybe a flag could be added to choose which behaviour is needed.

Thanks, and btw really cool implementation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions