Skip to content
GoodCoder666Public

About

Win32 API Implementation of the 2048 game (with some new features)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

2048-plus

Code archive for 2048 - Plus, a toy project I developed in 7th Grade (2021) and published on Microsoft Store (just for fun) in 2022.

About the project

  • Pure Win32 API implementation for the 2048 game
  • Optimized bitboard storage - tiles up to 32768
  • Simple game checkpointing system
  • Adapted and integrated nneonneo's brilliant expectimax AI that consistently achieves the 8192 tile and higher
    • "Eco Mode": A quirky feature that manipulates CPU affinity to throttle the AI and save power (because why not?)
  • Theme system supporting arbitrary choice of tile texts and colors

🛠️ What's changed in this 2026 revision:

  • Program encoding migrated from GBK to UTF-8
  • Converted indentation to spaces
  • Removed some poorly-designed themes
  • Fixed historical GDI leaks and threading issues I didn't notice back then

🕰️ What's kept original (For nostalgia):

  • Project layout and architecture
  • Old-fashioned C++ code
  • Funny naming and comments
  • Chinese UI elements
  • The naive .bat-based build system

Build instructions

You'll need windres and g++ on PATH. Then simply run build.bat on Windows:

build     # on cmd
./build   # on pwsh

And it produces the 2048plus.exe executable. Enjoy! ☺️

About

Win32 API Implementation of the 2048 game (with some new features)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages