ItsDrike
72c4e64782
Add proper board cleanup logic
...
There totally weren't any memory leaks before
2024-12-04 20:34:03 +01:00
ItsDrike
492f8cfec4
Add a quick function to set up a winning deck
2024-12-04 19:06:50 +01:00
ItsDrike
4dbcd700c0
Rework various gamestate methods
2024-12-04 00:04:35 +01:00
ItsDrike
3acfe3e093
Turn GameState into QML singleton
2024-12-03 15:32:30 +01:00
ItsDrike
883d766dc3
Register QObject classes as QML elements via macros
...
Using manual registration with qmlRegisterType (or
qmlRegisterUncreatableType) isn't ideal, because Qt Creator can't pick
up on it. When using the macros, autocompletion & unknown type warnings
in the code disappear.
2024-12-03 15:05:30 +01:00
ItsDrike
69c3b43834
Add logic for auto-moves
2024-12-03 01:55:54 +01:00
ItsDrike
c47f973873
Extract logic to check if move to column is legal
2024-12-03 01:54:01 +01:00
ItsDrike
a1d676779d
Keep track of gameWon state
2024-12-03 01:33:12 +01:00
ItsDrike
b558a3396e
Fix signal naming
2024-12-03 00:33:22 +01:00
ItsDrike
48f84bb528
Store revealed state for the columns
2024-12-02 16:10:51 +01:00
ItsDrike
0b65ce5d56
Add basic GameState class
2024-12-01 22:40:42 +01:00