Writer: Yifan Ruan (20302010010)
Latest Build: v1.1, 2021/6/28, Windows .EXE, Linux .OUT
Note: For lab8, please read lab8-analysis.md. For lab7, please read lab7-howto.txt. For lab6, please read readme.txt.
Note: For versions after v0.5-beta, use WAZS. For earlier versions, this game uses WASD to control, NOT WAZS.
GCC 9.3.0
MinGW + GCC 9.3.0
GCC 10.2.0 (Installed from Homebrew)
Note: You have to install bits/stdc++.h first.
g++ -O2 *.cc -o main.out
g++ -O2 board.cc bonus.cc cheat.cc direction.cc game_cli.cc game.cc log.cc main.cc play.cc player.cc test.cc util.cc -o main.exe
g++-10 -O2 *.cc -o main
Note: Don't use clang on that command.
To use g++ instead of g++-10, check your G++ version using g++ --version.
./main.out [Option]
./main [Option]
-t : Set the ending number to 64. Default is 2048.
-s [size] : Set the size of the map. Range from 2 to 5. Default is 4.
-log : Open log.
-p: Open bonus feature.
1 : Single mode.
2 : Dual mode.
c [arg] : Type c [arg] in Dual mode. Can only be used once.
Please follow the prompts in the game.
Please run in the same directory!