Farama-Foundation / Farama-Foundation/MicroRTS

Equals method for Unit

Open
#22 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
360
Forks
134
PR merge metrics
No merged PRs in 30d

Description

Hi!

First of all thanks for the hard work put into this game! It has been very useful for my research

I have faced the problem that if I were to look for example a Unit in a map, there is a lack of an **equals** method that helps me to find this unit. There are workarounds like using the UnitID, or by using a wrapper class over the Unit that has an **equals** method, but I think the most ideal solution is to have an **equals** method directly in the code.

Do you think this makes sense?

Contributor guide

Open the contributing guide

Research direction

Start by locating the Unit class and reading how units are identified, especially the UnitID workaround described in the issue. Determine the intended equality semantics and add coverage for looking up an equivalent Unit in a map; done means the relevant lookup works without a wrapper class.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.