xiaji
bad46b0109
fix: revert // to / in deck.gd (GDScript 4 does not support // operator)
...
The INTEGER_DIVISION warning in deck.gd:19 is a false positive - both
operands are int, so / performs integer division correctly in GDScript 4.
Using // caused a parse error (Expected expression after '/' operator),
which cascaded to GameController/TrainingController resolution failure.
2026-05-30 08:01:07 +08:00
xiaji
f4a2686810
fix: resolve GDScript type errors and warnings
...
- Fix Array[Card] type mismatch in move_generator.gd (rank_counts arrays)
- Fix shadowed variables in card.gd (create, from_packed parameters)
- Fix integer division warning in deck.gd (/ → //)
- Fix unused_signal warnings in event_bus.gd (per-signal annotations)
- Fix unused_parameter warning in audio_manager.gd
- Normalize whitespace in training_controller.gd
2026-05-30 07:55:38 +08:00
xiaji
3ca5dbba99
fix: strip all remaining tab characters from all .gd files
2026-05-29 22:54:01 +08:00
xiaji
b7e734576a
fix: suppress unused_signal warning on event_bus signals
2026-05-29 22:46:44 +08:00
xiaji
7fbf33b92c
fix: remove 3 unused signals from event_bus
2026-05-29 22:40:27 +08:00
xiaji
a1476b7df3
fix: connect EventBus signals in game_controller to eliminate unused signal warnings
2026-05-29 22:31:21 +08:00
xiaji
c6e806a155
fix: add null guards for status_label, hand_area, and label throughout UI
2026-05-29 21:39:06 +08:00
xiaji
08f0a9f4f8
fix: attach hand_area.gd script to HandArea node in training_room.tscn
2026-05-29 21:22:52 +08:00
xiaji
65315be868
fix: remove remaining tab characters in training_room.gd
2026-05-29 21:21:37 +08:00
xiaji
951634656e
fix: call start_training in _ready, set training_controller after creation
2026-05-29 21:04:53 +08:00
xiaji
b6363f8310
fix: use as cast for HandArea in training_room @onready
2026-05-29 21:02:21 +08:00
xiaji
3bed27076f
fix: resolve tab chars, typing, and parse errors in UI and game controller
2026-05-29 21:01:03 +08:00
xiaji
3573cc66b6
fix: add class_name to HandArea and CardNode, fix type inference in training_room
2026-05-29 20:57:37 +08:00
xiaji
8337a37dfe
docs: add README with setup and run instructions
2026-05-29 20:46:53 +08:00
xiaji
cb4afe0aaa
fix: resolve pass keyword conflict in move_generator and game_controller
2026-05-29 10:09:55 +08:00
xiaji
c1350a3d7b
fix: resolve GDScript parse errors (pass keyword, array type inference, tabs)
2026-05-29 10:03:55 +08:00
xiaji
09953c98f7
fix: add missing constants preload in HandEvaluator
2026-05-29 09:47:42 +08:00
xiaji
07fc763413
chore: add GUT test framework
2026-05-29 09:16:10 +08:00
xiaji
5741ba1dc0
test: add GUT test files for core modules (Card, Deck, HandEvaluator, RuleEngine, GameState)
2026-05-29 09:15:59 +08:00
xiaji
3272e3dc0a
feat: add basic UI scenes (card, hand, training room, main menu)
2026-05-29 09:14:42 +08:00
xiaji
6886af1de7
feat: add autoloads, GameController, TrainingController, and ReplayRecorder
2026-05-29 09:13:25 +08:00
xiaji
016bb1a95e
feat: add L1 Basic AI and L2 Rule AI with heuristic scoring
2026-05-29 09:11:43 +08:00
xiaji
42d59fcbae
feat: add RuleEngine, GameState, Round, and Action system
2026-05-29 09:10:35 +08:00
xiaji
e19bb0d631
feat: add HandEvaluator and MoveGenerator with pruning
2026-05-29 09:08:42 +08:00
xiaji
016098f213
feat: add core data model (Card, Deck, RuleConfig, Constants)
2026-05-29 09:06:49 +08:00
xiaji
2dea531138
docs: add implementation plan for training mode phase
2026-05-29 08:07:19 +08:00
xiaji
865eca98c0
Add Guandan card game design spec (v1.0)
2026-05-28 23:29:43 +08:00