1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 10:07:35 +00:00

Spider: Automatically reveal top cards

This matches basically all other Spider implementations I've played,
and makes playing much easier :)

I have left click-to-reveal in place, but mostly incase there is a
condition I've forgotten about.
This commit is contained in:
Jamie Mansfield 2021-07-15 17:00:07 +01:00 committed by Andreas Kling
parent 1021aba226
commit c0bc884295
2 changed files with 17 additions and 0 deletions

View file

@ -67,6 +67,7 @@ private:
void start_timer_if_necessary();
void update_score(int delta);
void draw_cards();
void ensure_top_card_is_visible(NonnullRefPtr<CardStack> stack);
void detect_full_stacks();
void detect_victory();