-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix system ordering and add game over test
System ordering turns out to be a critical part of 2048 logic. Specifically the most relevant ordering is: 1. board shift 2. new tile addition I've added chain to more than is necessary here, but since it is in no way performance sensitive, it might be easier than running "as much as possible" in parallel. This commit also adds an example testing the game over system and adds some cfg(test) flagged functionality to support that testing.
- Loading branch information
1 parent
447b621
commit 1687150
Showing
1 changed file
with
94 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters