GithubHelp home page GithubHelp logo

dmitrytavern / 2048 Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 658 KB

It is a simple 2048 game in your terminal. It is my first game and the first project on C++ only with standard libraries.

License: MIT License

CMake 4.13% C++ 95.32% C 0.55%
2048-game cpp game catch2 clang-format cmake cmake-presets

2048's Introduction

DTavern Game 2048

The first game screen

DTavern Game 2048 is a simple 2048 game in your terminal. It is my first game and the first project on C++ only with standard libraries. See more screenshots of the game. Also, this project was used for coursework at the university.

Features

  • Available on Windows and Linux
  • Without external libraries
  • CTest with catch2 integration
  • CMake builder

Download

  • Windows (7, 8, 10, 11) (x64 bit): dtavern-game-2048_v1.0.2.exe

    After downloading, just run it as a standard exe file.

    Note: application not tested on Windows 7 and 8.

  • Linux (x64 bit): dtavern-game-2048_v1.0.2

    After downloading, run it in the terminal:

    ./dtavern-game-2048_v1.0.2
    

    Note: for linux, you need set rights for execution:

    chmod +x dtavern-game-2048_v1.0.2
    
  • MacOS: not available

  • Self compile: see documentation by compilation.

Documentation

Frequently Asked Questions

No one has actually asked these questions, but you might be interested:

Q: Is it safe?

Answer: Yes. I have not used external libraries and compiled programs on official clear Windows 10 (VMWare Player) in official Visual Studio C++ 2022. For Linux, I use Arch Linux with Visual Studio Code. If you do not trust suspicious links, you can compile this program for your system on one's own. See the documentation by compilation.

Q: What is the purpose of the game?

Answer: Firstly, gaining new knowledge in the field of C++ programming. Before I worked only on JS/TS. Secondly, for fun. This project arose spontaneously when I did not even think about the ultimate goal. You can see it in early commits.

Q: Why this game is not available on MacOS??

Answer: I have no production from Apple. CI - this is a possible solution, but I don't like that I can't test it on a real machine.

Q: Is there anything to develop??

Answer: Of course! Can add selecting language, can add game settings, can add game achievements, can write more tests, and include debuggers. Also, can add support for MacOS with CI/CD and arm architecture for Linux and Windows. Maybe in the future, can add the ncurses library as GUI lib, but that's a completely different story ;)

Q: What is "PoWeR" on main screen?

Answer: In honor of Power form the Chainsaw Man. After two months of absence from GitHub, my project appeared almost as epic as Power appeared in the second episode.

License

MIT - check repo files

Copyright (c) 2022-present, Dmitry Tavern

2048's People

Contributors

dmitrytavern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  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.