2048 puzzle game: fix bug
2048 puzzle game: fix bug: a task in smol-software-harbor (Harbor dataset). In the 2048 clone a tile can merge twice in one move: merge left( 4, 4, 8, 0 ) gives 16, 0, 0, 0 instead of 8, 8, 0, 0 . Fix merge left() in game2048.py so each tile takes part in at most one merge per move, as its…
The task
In the 2048 clone a tile can merge twice in one move: `merge_left([4, 4, 8, 0])` gives `[16, 0, 0, 0]` instead of `[8, 8, 0, 0]`. Fix `merge_left()` in `game2048.py` so each tile takes part in at most one merge per move, as its docstring says. Run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.