Evgenii Legotckoi
Evgenii LegotckoiFeb. 2, 2016, 10:37 a.m.

Fifteen on Qt

Content

During the maintenance of the blog, and collect information on the subject of Qt is a continuous interaction with the readers, who are trained on the examples on this site. But at the same time any reader can also make a small contribution to the development of information on Qt in RuNet.

Therefore, I present to your attention is the work of Ilya Dydyshko - game "Fifteen", written using the Qt libraries. After a brief consultation with my hand, Ilya went missing for a while. After writing a workable version of the game, Ilya has shared his work with Evileg project. The site spread workable, but not the final version of the draft, since the author is planning doshlifovat all sharp corners in the code.


Fifteen

Game Description algorithm that was applied in this project can be seen at the following resources .

This example of writing the game, "Fifteen" offers to collect the image Gelendvagen. The game menu is implemented with the launch of the game, description, item help and a button release.

When you press "Start" button, you start the game.

In this menu window disappears, and there is only a window to the game board. In this case, there is a possibility, how to create a new game again, and out of the current game back to the menu.

In the case of a successful build pictures Game announces the victory.

In this example, a picture prepared in advance, and is divided into 15 parts. Each piece is shown on a separate button. When you click on one of the buttons, which is next to an empty area, the movement of the button is in an empty area. If there is no empty area next to the button nothing happens.

Management also implemented using the keyboard arrows and space bar. By pressing the space bar is similar to the movement of pieces of the picture, as is the case with the click of a mouse.

Author of the project: Ilya Dydyshko

Download project Fifteen

We recommend hosting TIMEWEB
We recommend hosting TIMEWEB
Stable hosting, on which the social network EVILEG is located. For projects on Django we recommend VDS hosting.

Do you like it? Share on social networks!

Comments

Only authorized users can post comments.
Please, Log in or Sign up
AD

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:50points,
  • Rating points-4
m

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:80points,
  • Rating points4
m

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:20points,
  • Rating points-10
Last comments
Evgenii Legotckoi
Evgenii LegotckoiOct. 31, 2024, 9:37 p.m.
Django - Lesson 064. How to write a Python Markdown extension Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup
A
ALO1ZEOct. 19, 2024, 3:19 p.m.
Fb3 file reader on Qt Creator Подскажите как это запустить? Я не шарю в программировании и кодинге. Скачал и установаил Qt, но куча ошибок выдается и не запустить. А очень надо fb3 переконвертировать в html
ИМ
Игорь МаксимовOct. 5, 2024, 2:51 p.m.
Django - Lesson 064. How to write a Python Markdown extension Приветствую Евгений! У меня вопрос. Можно ли вставлять свои классы в разметку редактора markdown? Допустим имея стандартную разметку: <ul> <li></li> <li></l…
d
dblas5July 5, 2024, 6:02 p.m.
QML - Lesson 016. SQLite database and the working with it in QML Qt Здравствуйте, возникает такая проблема (я новичок): ApplicationWindow неизвестный элемент. (М300) для TextField и Button аналогично. Могу предположить, что из-за более новой верси…
k
kmssrFeb. 9, 2024, 2:43 a.m.
Qt Linux - Lesson 001. Autorun Qt application under Linux как сделать автозапуск для флэтпака, который не даёт создавать файлы в ~/.config - вот это вопрос ))
Now discuss on the forum
Evgenii Legotckoi
Evgenii LegotckoiJune 24, 2024, 10:11 p.m.
добавить qlineseries в функции Я тут. Работы оень много. Отправил его в бан.
t
tonypeachey1Nov. 15, 2024, 2:04 p.m.
google domain [url=https://google.com/]domain[/url] domain [http://www.example.com link title]
NSProject
NSProjectJune 4, 2022, 10:49 a.m.
Всё ещё разбираюсь с кешем. В следствии прочтения данной статьи. Я принял для себя решение сделать кеширование свойств менеджера модели LikeDislike. И так как установка evileg_core для меня не была возможна, ибо он писался…
9
9AnonimOct. 25, 2024, 4:10 p.m.
Машина тьюринга // Начальное состояние 0 0, ,<,1 // Переход в состояние 1 при пустом символе 0,0,>,0 // Остаемся в состоянии 0, двигаясь вправо при встрече 0 0,1,>…

Follow us in social networks