Card-Forge / Card-Forge/forge

AI ignores "for each".

Open
#4,242 10 comments 0 reactions 3 assignees Assigned to @tehdiplomat View on GitHub
AI BUG keep
Dominant language
Java
Stars
2.7k
Forks
1.1k
Avg merge
1d 1h
Merged PRs (30d)
158

Description

**Describe the bug**
When the AI plays a card with text like "for each opponent" it may target a single player's object multiple times.
ex. Grasp of Fate

**To Reproduce**
Steps to reproduce the behavior:
1. Play against AI with multiplayer game.

**Expected behavior**
Select one object per opponent.

**Screenshots**
If applicable, add screenshots to help explain your problem.
![image](https://github.com/Card-Forge/forge/assets/52299273/6fc8043f-e86e-4fda-bb6b-e3c813e2a472)

**Desktop (please complete the following information):**
- OS: Windows 10
- Browser Firefox
- Version forge-gui-desktop-1.6.59-SNAPSHOT-11-28

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.