changed from 2 variables to a dict for clients, allowing for more players in the future. #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "client-dict"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
and i was nice enough to write some javadoc
@ -30,2 +25,3 @@public GameManager(Client client1, Client client2) {public GameManager(List<Client> clientList) {if (clientList.size() < 2) throw new IllegalArgumentException("you need at least 2 people to play");Ook even een check voor max spelers? Anders niet genoeg kaarten
Of meer kaarten in een deck gooien als er teveel spelers zijn
@ -35,3 +30,1 @@this.client1 = client1;this.client2 = client2;deck.initializeDeck(clientList.size()/4 + 1);nit: vind eigenlijk dat dit even in een aparte variable met met een comment waarom /4+1
Zeik wijf