{"id":23461054,"url":"https://github.com/jsilvermist/slotmachinefx","last_synced_at":"2025-10-30T22:31:27.696Z","repository":{"id":93151144,"uuid":"196772439","full_name":"jsilvermist/SlotMachineFX","owner":"jsilvermist","description":"A simple slot machine game built using JavaFX 12.","archived":false,"fork":false,"pushed_at":"2019-08-13T19:29:10.000Z","size":367,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-12-24T07:31:48.996Z","etag":null,"topics":["java","javafx","slot-machine-game"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsilvermist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-13T22:42:38.000Z","updated_at":"2024-10-16T19:29:06.000Z","dependencies_parsed_at":"2023-04-13T03:55:08.865Z","dependency_job_id":null,"html_url":"https://github.com/jsilvermist/SlotMachineFX","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvermist%2FSlotMachineFX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvermist%2FSlotMachineFX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvermist%2FSlotMachineFX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsilvermist%2FSlotMachineFX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsilvermist","download_url":"https://codeload.github.com/jsilvermist/SlotMachineFX/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239073969,"owners_count":19577124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","javafx","slot-machine-game"],"created_at":"2024-12-24T07:28:43.453Z","updated_at":"2025-10-30T22:31:26.434Z","avatar_url":"https://github.com/jsilvermist.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"SlotMachineFX\n=============\n\nA simple Java slot machine game developed with\n[VSCode](https://code.visualstudio.com/) and\n[SceneBuilder](https://gluonhq.com/products/scene-builder/),\nusing [JavaFX 12](https://openjfx.io/) as a GUI library.\n\n| Table of Contents                |\n| -------------------------------- |\n| [1. Usage](#usage)               |\n| [2. Outline](#outline)           |\n| [3. UML Diagram](#uml-diagram)   |\n| [4. GUI Examples](#gui-examples) |\n\n## Usage\n\nTo run or debug this program, download and extract the\n[JavaFX 12 SDK](https://gluonhq.com/products/javafx/) and point to the\nJavaFX SDK `lib` directory in the module path in VSCode's launch configuration:\n\n\u003e .vscode/launch.json\n\n```json\n{\n  \"type\": \"java\",\n  \"name\": \"SlotMachine\",\n  \"request\": \"launch\",\n  \"mainClass\": \"slotmachine.Main\",\n  \"projectName\": \"SlotMachineFX\",\n  \"vmArgs\": \"--module-path C:\\\\javafx-sdk-12.0.1\\\\lib\\\\ --add-modules javafx.controls,javafx.fxml\"\n}\n```\n\nYou will also need to edit the `.classpath` file to point to the JavaFX SDK libraries:\n\n\u003e .classpath\n\n```xml\n\u003cclasspathentry kind=\"lib\" path=\"C:\\javafx-sdk-12.0.1\\lib\\javafx.base.jar\"/\u003e\n\u003cclasspathentry kind=\"lib\" path=\"C:\\javafx-sdk-12.0.1\\lib\\javafx.graphics.jar\"/\u003e\n\u003cclasspathentry kind=\"lib\" path=\"C:\\javafx-sdk-12.0.1\\lib\\javafx.controls.jar\"/\u003e\n\u003cclasspathentry kind=\"lib\" path=\"C:\\javafx-sdk-12.0.1\\lib\\javafx.fxml.jar\"/\u003e\n```\n\nYou should now be able to run and debug using VSCode's CodeLens or debugger!\n\n## Outline\n\nCreate a JavaFX slot machine GUI with a predetermined starting cash,\nhave buttons for the user to click and gamble with, give the user a return on\naverage which is slightly lower than 100% so that while they should win and have\ntheir money go up, it should normally always reach game over after a while.\n\n### Details\n\nCreate a welcome window as a splash screen for when you open the game, then\nload the main game window with some default images.\n\nWhen the user clicks on a bet button, bet that amount of money and spin the\nslot machine reels. Based on how many matches of a certain icon, return a set\nmultiplier on their bet so that they either win a multiplier of their bet, or\nlose all of their bet.\n\nIf money is too low for a certain bet, disable that button.\n\nIf the users money is lower than the smallest bet, display game over and\nplay again allowing the user to restart.\n\nSave the user's high score to add a point of comparison while playing.\nWrite the high score to file to persist across multiple game sessions.\n\nAdd a button to display a payouts window displays all the possible matches and\ntheir respective payout multipliers.\n\n## UML Diagram\n\n![UML Diagram](_images/uml-diagram.png)\n\n## GUI Examples\n\n\u003e Splash Screen\n\n![Splash Screen](_images/splash-screen.png)\n\n\u003e Game Window\n\n![Game Window](_images/game-window.png)\n\n\u003e Play Again\n\n![Play Again](_images/play-again.png)\n\n\u003e Payouts\n\n![Payouts](_images/payouts.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsilvermist%2Fslotmachinefx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsilvermist%2Fslotmachinefx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsilvermist%2Fslotmachinefx/lists"}