Commit graph

17 commits

Author SHA1 Message Date
ItsDrike a381288413
Manually connect the foundationChanged signal to slot
For some reason, the automatic signal-slot connection based on naming
doesn't work, call connect manually from the constructor instead.
2024-12-04 19:07:14 +01:00
ItsDrike 492f8cfec4
Add a quick function to set up a winning deck 2024-12-04 19:06:50 +01:00
ItsDrike 548d36a358
clean up ensureColumnRevealed method 2024-12-04 18:03:06 +01:00
ItsDrike 5696e244f2
bug: fix col auto-move for multiple cards 2024-12-04 18:02:02 +01:00
ItsDrike 9b4c43d603
bug: QList has a copy constructor, use references 2024-12-04 18:00:45 +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 f82b176f55
Add several debug logs to gamestate 2024-12-03 15:14:27 +01:00
ItsDrike d97cccfdf0
bug: work with last column slot, not first 2024-12-03 15:13:39 +01:00
ItsDrike 629676428f
Fix some bugs in gamestate 2024-12-03 02:15:49 +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 408457e7ce
Log warnings in certain unexpected branches 2024-12-03 01:51:11 +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