seigot / tetris

A Tetris Game for programming education in Japanese
MIT License
30 stars 107 forks source link

GitAuto: 火力ボーナス検討(REN、連続してライン消去を行う) #168

Open gitauto-ai[bot] opened 2 weeks ago

gitauto-ai[bot] commented 2 weeks ago

Resolves #50

What is the feature

Implement a REN-based firepower bonus system that awards additional firepower when a player performs consecutive line removals.

Why we need the feature

This feature adds depth and strategy to the gameplay by rewarding players for maintaining consecutive line clears, enhancing engagement and competitive play.

How to implement and why

  1. Update Scoring System: Modify the existing scoring logic to include a REN counter that tracks consecutive line clears.

  2. Define Bonus Tiers: Implement the firepower bonus tiers as specified:

    • REN 0-1: +0
    • REN 2-3: +1
    • REN 4-5: +2
    • REN 6-7: +3
    • REN 8-10: +4
    • REN 11+: +5
  3. Reset Mechanism: Ensure the REN counter resets if a line clear sequence is broken.

  4. UI Feedback: Provide visual feedback to the player indicating the current REN and bonus awarded.

  5. Testing: Thoroughly test the implementation to ensure accuracy and balance in gameplay.

This step-by-step implementation ensures a structured addition to the game mechanics, promoting consistent player engagement.

About backward compatibility

This feature can be introduced without breaking existing game functionalities. The REN-based bonus system can be enabled as an optional feature or integrated seamlessly into the current scoring system, maintaining backward compatibility.

Test these changes locally

git checkout -b gitauto/issue-50-dd15f227-7589-4d93-9bcd-79c7aaec0f5f
git pull origin gitauto/issue-50-dd15f227-7589-4d93-9bcd-79c7aaec0f5f