Card-Forge / Card-Forge/forge

AI can't handle huge numbers and keeps processing infinitely

Open
#9,317 4 comments 0 reactions 0 assignees View on GitHub
keep
Dominant language
Java
Stars
2.7k
Forks
1.1k
Avg merge
1d 1h
Merged PRs (30d)
163

Description

**Describe the bug**
The game's AI can't process huge numbers and it keeps infinitely loading the turn, heating your Android device and killing all the app's GUI

**To Reproduce**
Steps to reproduce the behavior:
1. Play a match with a lot of counters multipliers in your deck and mainly Maester Seymour
2. Keep the AI with 1 HP and keep killing its cards undefinitely
3. Gather counters enough to trigger a huge counter multiplier
4. Once you put the counters in any other card, the AI will process the turn infinitely, your phone will get hot and, when trying to put the app in the background and return playing, all the GUI will die

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
![Screenshot_20251211_194626_Forge.jpg](https://github.com/user-attachments/assets/3f9ef43e-5cfa-4c51-8dc0-097b03d20d18)

![Screenshot_20251211_194858_Forge.jpg](https://github.com/user-attachments/assets/33778db8-30f2-4b72-97e8-eac7a89a9924)

![Screenshot_20251211_194930_Forge.jpg](https://github.com/user-attachments/assets/acfde4e6-b16e-431a-9ca8-c67ba5a7e538)

**Smartphone**
- Device: Samsung S23 Ultra
- OS: Android 16 One UI 8
- App's Version: 2.0.07-SNAPSHOT-10.05

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.