summaryrefslogtreecommitdiff
path: root/Userland/Games/Spider
AgeCommit message (Collapse)Author
2022-01-08Spider: Add functionality to automatically move cards to valid stacksNeolyum
This commit adds the possibility to use the secondary mouse button to let the game move the selected card(s) to the next valid stack.
2022-01-02Spider: Redraw completely when drawing cardsJamie Mansfield
Spider was only updating the new bounding box area after drawing cards from the deck - leaving behind a sliver of the old deck. This was a regression, as the game previously used the old bounding box, introduced by GH-11153.
2021-12-24Spider: Add animation when drawing cardsNihal Jere
2021-12-18Spider: Convert to try_create_default_iconAstraeus-
2021-12-05Games: Cast unused smart-pointer return values to voidSam Atkins
2021-11-28Everywhere: Use default execpromises argument for Core::System::pledgeBrian Gianforcaro
2021-11-27Spider: TRY() all the things in serenity_main() :^)Pedro Pereira
2021-11-24Spider: Replace construct() with TRY(try_create()) patternPedro Pereira
2021-11-23FlappyBug+Spider: Update GUI:Application::construct usagePedro Pereira
Update code to use Main:Arguments directly.
2021-11-23LibCore+LibSystem: Move syscall wrappers from LibSystem to LibCoreAndreas Kling
With this change, System::foo() becomes Core::System::foo(). Since LibCore builds on other systems than SerenityOS, we now have to make sure that wrappers work with just a standard C library underneath.
2021-11-22Spider: Port to LibMainpbrw
Simplified two pledge() and two unveil() by using TRY()
2021-09-13Everywhere: Use my fancy new serenityos.org email :^)Mustafa Quraish
2021-08-28Spider: Remove wpath and cpath pledges and pledge earlierLuke Wilde
With the move to LibConfig, the wpath and cpath pledges are no longer needed.
2021-08-27Spider: Use LibConfig instead of Core::ConfigFileMustafa Quraish
There was a lot of error handling here previously when writing to a config file failed, but this was removed since we have no way of conveying a `Config::write` failure from the ConfigServer.
2021-08-22Everywhere: Rename get in ConfigFile::get_for_{lib,app,system} to opennetworkException
This patch brings the ConfigFile helpers for opening lib, app and system configs more inline with the regular ConfigFile::open functions.
2021-08-22Everywhere: Use Core::ConfigFile::AllowWriting::Yes to allow writingnetworkException
2021-08-06Spider: Use YesNo dialog for user confirmation when closingJamie Mansfield
Cancel was superflous, and provided no difference to No.
2021-08-05Spider: Clear selection when starting new gameJamie Mansfield
Fixes #9217.
2021-07-27Spider: Make statusbar high score display configurableJamie Mansfield
You can now choose what statistic (currently only high score or best time) to display in the statusbar.
2021-07-27Spider: Start game if first move is to draw cardsJamie Mansfield
This fixes a bug where the game wouldn't consider it had started.
2021-07-27Spider: Track win and loss countsJamie Mansfield
Again, this isn't exposed anywhere yet.
2021-07-27Spider: Get user confirmation to close when there is a active gameJamie Mansfield
2021-07-27Spider: Track quickest game timeJamie Mansfield
This isn't exposed in the game anywhere yet.
2021-07-27Spider: Standardise fetching the mode identifierJamie Mansfield
This eliminates some code duplication, and will be helpful for future commits introducing further statistic tracking.
2021-07-24Spider: Use AK::get_random_uniform() instead of rand()/srand()Gunnar Beutner
This also has the added benefit that after a restart we don't get the same random numbers all the time because we forgot to initialize the RNG with srand().
2021-07-24Spider: Avoid reallocations for Vectors when possibleGunnar Beutner
2021-07-21Userland: Add GUI::Window::add_menu() and use it everywhereAndreas Kling
Applications previously had to create a GUI::Menubar object, add menus to it, and then call GUI::Window::set_menubar(). This patch introduces GUI::Window::add_menu() which creates the menubar automatically and adds items to it. Application code becomes slightly simpler as a result. :^)
2021-07-15Spider: Reduce overdraw when playingJamie Mansfield
2021-07-15Spider: Reduce overdraw when drawing initial cardsJamie Mansfield
2021-07-15Spider: Automatically reveal top cardsJamie Mansfield
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.
2021-06-24Games: Add SpiderJamie Mansfield
Scoring is designed to mimic Microsoft's implementation - starting at 500, decreasing by 1 every move, and increasing by 100 for every full stack. Fixes GH-5319.