magefree / magefree/mage

Multiplayer games with AI are not ending, when there are no players left

Open
#8,877 1 comment 0 reactions 0 assignees View on GitHub
enhancement server
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

### The Problem
Whenever a player creates a lobby with all AI players and themselves, the game does not end after the player loses/quits.
This results in games being stuck with the AI opponents not doing anything. See the highlighted games in this image.
![billede](https://user-images.githubusercontent.com/28570647/165000328-a1061a55-4bd3-4008-ba8c-57b0bdb289e4.png)
They were created 6 and 8 hours ago, and the player is not playing, only the AI
![billede](https://user-images.githubusercontent.com/28570647/165000290-5605bf8e-91b9-4941-99d8-9d23eb4c4692.png)
The game is not even loading when trying to spectate
![billede](https://user-images.githubusercontent.com/28570647/165000347-2b0b1270-03e1-46f8-aa50-b87ba8c6e669.png)

This might be the reason why there sometimes is very high ping on the servers (1000-2000ms)?

### The possible solutions
- Disable bot games on public servers, but keep it on the local server
- Make the game automatically end if only AI bots left playing

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.