Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving the 2048 game #30

Closed
2 of 3 tasks
CRImier opened this issue Dec 10, 2017 · 3 comments
Closed
2 of 3 tasks

Improving the 2048 game #30

CRImier opened this issue Dec 10, 2017 · 3 comments
Labels
enhancement good first issue New contributors should be able to tackle this help wanted

Comments

@CRImier
Copy link
Member

CRImier commented Dec 10, 2017

The 2048 game (included in apps/games/g_2048/) could use some features; namely:

  • A prettier UI - going away from the text-based data output (using o.display_data()) and drawing a canvas instead, then passing it to o.display_image().
  • Currently, the game can't be continued once 2048 has been reached, it'd be good to allow it (and still acknowledge the endgame as a 'win' once the field is full) (done, thanks to @johanneskool )
  • Once the previous feature is done, highscores could be added. (done, thanks to @johanneskool )
@CRImier
Copy link
Member Author

CRImier commented Dec 10, 2017

Also, the game just feels too easy to get to 1024, for some reason. It's possible that there's some kind of constraint that needs to be added.

EDIT: added a chance of spawning 4 instead of 2, which made the game more complicated (and it's the way that other 2048 implementations seem to up the complexity)

@CRImier
Copy link
Member Author

CRImier commented Jan 6, 2018

BTW, thought about this - the game could use some kind of main menu, like:

  • "continue"
  • "start"
  • "highscores"
  • "exit"

once OK is pressed, instead of just having a DialogBox like we do now. That'd conform with the way that games on earlier mobile phones worked, and possibly make the code more readable&reusable, too!

@CRImier CRImier closed this as completed Jan 6, 2018
@CRImier CRImier reopened this Jan 6, 2018
@CRImier
Copy link
Member Author

CRImier commented Jan 6, 2018

Accidentally closed, reopening

@CRImier CRImier added the good first issue New contributors should be able to tackle this label Nov 22, 2018
johanneskool added a commit to johanneskool/ZPUI that referenced this issue Feb 28, 2019
johanneskool added a commit to johanneskool/ZPUI that referenced this issue Feb 28, 2019
CRImier added a commit that referenced this issue Feb 28, 2019
Added highscores and fixed winning of 2048 game, partially fixes #30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good first issue New contributors should be able to tackle this help wanted
Projects
None yet
Development

No branches or pull requests

1 participant