feat/refactor: actually track win conditions

This commit is contained in:
2021-05-27 17:58:44 +02:00
parent 7f7459e7a7
commit 830ef22997
6 changed files with 108 additions and 55 deletions

View File

@ -40,6 +40,11 @@ public class Inventory implements Iterable<StoneType> {
return size - content.size();
}
/** Returns the number stones the inventory has. */
public int getSize() {
return content.size();
}
/**
* Checks if the inventory contains the given stone.
* @param stone The {@link StoneType} to check for