Git Product home page Git Product logo

2048's Introduction

2048

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.

Test Environment

Ubuntu 20.04.2.0 (latest: v1.0)

GCC 9.3.0

Windows10 20H2 (latest: v0.6)

MinGW + GCC 9.3.0

macOS 11.2.3 (latest: v0.5)

GCC 10.2.0 (Installed from Homebrew)

Note: You have to install bits/stdc++.h first.

Compile Command

Linux

g++ -O2 *.cc -o main.out

Windows (Powershell)

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

macOS

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.

Usage

Run command

Linux

./main.out [Option]

Windows & macOS

./main [Option]

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.

Mode

1 : Single mode. 2 : Dual mode.

Cheat

c [arg] : Type c [arg] in Dual mode. Can only be used once.

Retraction

Please follow the prompts in the game.

Please run in the same directory!

2048's People

Contributors

yifanruan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.