Summary
This PR introduces several enhancements to the Battleship game module, focusing on player engagement, game feedback, and strategic depth. The changes include:
Ping Command:
Players can now use the hidden "p" command during their turn to scan a 3x3 area around their last move (or the board center if no moves have been made). The ping provides a hint about the presence of unsunk ships in the area, returning messages like "something lurking nearby" or "targets in the area!". To add suspense and realism, there is a 30% chance the ping will be disrupted, returning "Ping disrupted! No reading. Try again later." This feature does not consume a turn or affect game state, acting as a strategic hint tool.
Game End Statistics:
At the end of each game, players are now informed of the total number of shots fired and the elapsed time to victory. This provides a sense of accomplishment and encourages replayability as players try to improve their efficiency.
Ammo Commentary:
Every 25 and 50 shots, the game displays a humorous comment (e.g., "🥔25 fired!", "🥵50 rounds!") to keep players entertained and aware of their shot count.
How Gameplay Is Improved
Strategic Depth:
The ping feature gives players a way to gather information and adjust their tactics, making gameplay more interactive and less reliant on random guessing.
Player Engagement:
Humorous ammo comments and end-of-game statistics add personality and feedback, making the experience more memorable and fun.
Replay Value:
By surfacing stats like shots fired and time taken, players are motivated to replay and beat their previous records.
Fairness and Clarity:
The ping command does not advance the turn or affect the game state, ensuring fairness and preventing accidental misuse.
Testing & Compatibility
All new features are integrated with both AI and P2P modes.
Existing gameplay logic and win conditions remain unchanged.
The ping command is robust against edge cases (e.g., no moves made, board edges).
In summary:
This PR makes Battleship more engaging, strategic, and fun, while preserving the integrity of the original game mechanics.
Co-Authored-By: NillRudd <102033730+nillrudd@users.noreply.github.com>
the other BBS have Fortune it seems to be a popular thing to do. here is a verse command hidden enable like 🐝 to return bible verses better? @joshbowyer