Skip to content

Commit

Permalink
Merge pull request #101 from CloneWith/patch-nobot
Browse files Browse the repository at this point in the history
Support gameplay with no bots
  • Loading branch information
CrazyMarvin authored Jun 9, 2024
2 parents b9ce900 + 9cb140d commit 3ca166b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/app/halma/redesign/PlayerCounter.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public PlayerCounter(Label botText, Label peopleText, boolean square) {

public void update(int bots, int people, boolean square){
if(people <= 0) return;
if(bots <= 0) return;
if(bots < 0) return;
if(bots == 0 && people <= 1) return;
if(square){
if(people + bots > 4)
if(!this.square){bots = 1; people = 1;} //too much players!
Expand Down

0 comments on commit 3ca166b

Please sign in to comment.