Release v2.0 - Sprint 2 Final(bot 6 assignment)solved 3 user stories
Release v2.0 - Sprint 2 Final
🚀 Overview
This release (v2.0) marks the completion of Sprint 2, focusing on enhancing the interactive elements of the Mafia game and improving visual feedback for players. Key updates include a dynamic voting countdown and the integration of status-specific visuals.
✨ Key Changes
Live Voting Countdown: Replaced the static "60 seconds" message with a real-time, dynamic countdown timer that updates every second in the Discord channel.
Night Resolution Visuals: Integrated doctor-save.png to provide immediate visual confirmation when a player is successfully protected by the Doctor.
Vote Visuals: Added vote-processing.png to display when a player starts their voting action.
Bug Fix: Resolved a ReferenceError in role.js to ensure stable role-checking functionality.
Game Flow Improvements: Added appropriate sleep intervals between night results and day phases for better readability.
🔗 Linked User Stories
#66: Implement Dynamic Countdown Timer for Voting Phase
#64: Enhance Night Resolution with Visual Feedback
#53: Fix Variable Scoping in Role Logic
⏱️ Reflection
Estimated Time: 3 hours
Actual Time Taken: 6 hours
Key Learning: A significant portion of time was spent managing asynchronous timing for Discord message edits to avoid rate limits and resolving complex Git merge conflicts with the new victory condition logic.
📦 Software Bill of Materials (SBOM)
The following dependencies are utilized in this production environment:
| Package | Version | Description |
|---|---|---|
| discord.js | 14.5.0 | Main library for Discord API integration |
| axios | 0.27.2 | Promise based HTTP client for API calls |
| dotenv | 16.0.2 | Environment variable management |
| mocha / chai | 10.0.0 / 4.3.6 | Testing framework and assertion library |
| nodemon | 2.0.22 | Development tool for auto-restarting the server |
| esbuild | 0.15.9 | High-performance JavaScript bundler |
| ascii-table | 0.0.9 | For rendering clean tables in logs/chat |
What's Changed
- Add ARCHITECTURE.md for Bot Project Task 4 by @minigithubo in #22
- Implement role-specific command descriptions for /role and /mycommands by @oligiess in #23
- update artchitecture.md and add data flow diagram by @minigithubo in #24
- Add command execution control-flow architecture documentation by @SaSu56 in #26
- Add activity diagram to ARCHITECTURE.md by @AB-programmer8 in #27
- Add class diagram to ARCHITECTURE.md by @Ayad2077 in #28
- Add use case diagram and description by @oligiess in #29
- Add fuzz testing analysis report by @SaSu56 in #34
- Contribute to Code Analysis Report by @AB-programmer8 in #38
- Task 5: add unit tests for game state and command loading by @Ayad2077 in #40
- Code analysis cleanup by @AB-programmer8 in #45
- Someone's work got partially erased during a merge process, this will add it back by @AB-programmer8 in #46
- Add scope proposal to CodeAnalysis.md by @oligiess in #47
- Implement night and day phases by @oligiess in #58
- SBOM by @AB-programmer8 in #55
- End game when mafia reaches parity after night kill by @Ayad2077 in #65
- feat: Implement Dynamic Voting Countdown and Integrate Doctor Save Visuals and vote visual by @minigithubo in #67
New Contributors
Full Changelog: v1.0.2...v2.0