Giter Site home page Giter Site logo

astrodynamic / color-lines-in-qt-qml Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 3.15 MB

Color Lines is a logical computer game where players make moves to align five or more balls of the same color in a line. Developed in 1992, it offers strategic gameplay on a 9x9 grid, rewarding players with points for creating longer lines. With colorful balls appearing on each turn, aim for the highest score in this addictive puzzle game.

License: MIT License

CMake 12.04% C++ 60.14% QML 25.93% Makefile 1.89%
balls cpp cpp17 game gameplay gaming grid logic puzzle qml

color-lines-in-qt-qml's Introduction

Color Lines in Qt/QML

Color Lines (Russian: "Цветные линии", abbreviated as "Lines") is a logical computer game developed by Oleg D'yomin, Gennady Denisov, and Igor Ivkin, and published by the Russian company Gamos in 1992.

promo

Contents

Gameplay

The game is played on a square field consisting of 9x9 cells and involves a series of moves. In each move, the computer randomly places three balls of different colors in random cells. Then the player makes a move by moving any ball to another free cell, provided that there is a non-diagonal path between the initial and final cells consisting of free cells. If, after the movement, five or more balls of the same color align in a line horizontally, vertically, or diagonally, those balls disappear, and the player is given the opportunity to make another ball move. If no line is formed after the movement, the turn ends, and a new one begins with the appearance of new balls. If a line is formed when new balls appear, it disappears, and the player earns points, but no additional ball movement is allowed. The game continues until the entire field is filled with balls and the player is unable to make a move.

The goal of the game is to achieve the highest score possible. The scoring system is designed in such a way that the player earns significantly more points for removing more than five balls in a single move. During the game, three colors of balls that will appear on the field in the next move are displayed on the screen.

Build Instructions

To build and run the project, follow these steps:

  1. Make sure you have CMake version 3.15 or higher installed.
  2. Clone the repository.
  3. Open a terminal and navigate to the project directory.
  4. Run the following commands:
cmake -S . -B ./build
cmake --build ./build

These commands will generate the necessary build files and compile the project.

Dependencies

The project requires the following dependencies:

  • Qt6 (version 6.2 or higher) with the following components:
    • Quick
    • Sql

Make sure you have the dependencies installed before building the project.

Examples

The project includes some example code to help you get started. You can find the examples in the examples directory.

License

This project is licensed under the MIT License.

color-lines-in-qt-qml's People

Contributors

astrodynamic avatar

Stargazers

 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.