{"id":20461259,"url":"https://github.com/infectedduck/dice-game","last_synced_at":"2026-04-20T01:03:10.405Z","repository":{"id":256540862,"uuid":"834078485","full_name":"InfectedDuck/dice-game","owner":"InfectedDuck","description":"Real-time dice game web app with Flask and Flask-SocketIO. Create rooms, play against bots of varying difficulty, and view results with a modern HTML, CSS, and JavaScript interface.","archived":false,"fork":false,"pushed_at":"2024-09-14T01:34:28.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T00:37:27.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/InfectedDuck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-07-26T11:20:37.000Z","updated_at":"2024-09-14T01:34:31.000Z","dependencies_parsed_at":"2024-09-14T14:37:32.047Z","dependency_job_id":null,"html_url":"https://github.com/InfectedDuck/dice-game","commit_stats":null,"previous_names":["infectedduck/dice-game"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfectedDuck%2Fdice-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfectedDuck%2Fdice-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfectedDuck%2Fdice-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfectedDuck%2Fdice-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InfectedDuck","download_url":"https://codeload.github.com/InfectedDuck/dice-game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242017635,"owners_count":20058472,"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":[],"created_at":"2024-11-15T12:24:32.422Z","updated_at":"2026-04-20T01:03:10.396Z","avatar_url":"https://github.com/InfectedDuck.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real-Time Dice Game Web Application\n\n## Overview\n\nThis project is a real-time dice game web application built using Python's Flask and Flask-SocketIO libraries. It allows users to create and join game rooms, play a dice-based game against a bot with varying difficulty levels, and track game results. The user interface is designed with HTML, CSS, and JavaScript for a modern and intuitive experience.\n\n## Features\n\n- **Create and Join Rooms:** \n  - Users can create unique game rooms with a generated UUID.\n  - Join existing rooms with a unique room ID.\n  - The server manages the game state for each room to ensure a seamless multiplayer experience.\n\n- **Start Game:** \n  - Customize game settings, including bot difficulty, initial money, and the number of rounds.\n  - Start the game once players are ready in the room.\n\n- **Dice Rolling Mechanics:**\n  - Players roll dice against a bot, with the bot’s difficulty impacting its dice results.\n  - Bot difficulty levels range from easy to ultimate, each with different strategies for dice outcomes.\n\n- **Real-Time Updates:** \n  - Utilizes Flask-SocketIO for real-time communication.\n  - Provides live updates for actions such as starting the game, rolling dice, and displaying results.\n\n- **Game Results:**\n  - Displays the outcome of each round, including the results of each player's rolls, the bot’s rolls, and the impact on the money based on game settings.\n\n## Key Components\n\n- **Backend (Flask \u0026 Flask-SocketIO):** \n  - Manages game rooms, player actions, and game state.\n  - Handles real-time communication and game logic.\n\n- **Frontend (HTML, CSS, and JavaScript):** \n  - Provides a user-friendly interface for interacting with the game.\n  - Includes features for creating rooms, joining rooms, and viewing game results.\n\n- **Dice Game Logic (`dice_game.py`):** \n  - Defines the dice game mechanics.\n  - Includes different bot strategies and dice roll outcomes.\n\n## Usage\n\n- **Create a Room:** \n  - Click the \"Create Room\" button to generate a new game room and receive a unique room ID.\n\n- **Join a Room:** \n  - Enter the room ID to join an existing game room.\n\n- **Start the Game:** \n  - Once players are in the room, set the game parameters (bot difficulty, money, rounds) and start the game.\n\n- **Roll Dice:** \n  - Players and the bot roll dice, with results displayed in real-time.\n\n- **View Results:** \n  - After the game ends, view the results to see who won and how the money changed.\n\n## Caution\nThe project is not ended, and the application is NOT working properly\n\n## License\n\nThis project is licensed under the MIT License.  \nYou are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of this software, subject to the terms of the MIT License.  \n\nFor full details, see the [LICENSE](LICENSE) file.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfectedduck%2Fdice-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfectedduck%2Fdice-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfectedduck%2Fdice-game/lists"}