s2client-api icon indicating copy to clipboard operation
s2client-api copied to clipboard

Accepting opponent surrender

Open luka-papez opened this issue 8 years ago • 4 comments

Sometimes a message pops up saying "A.I. wishes to surrender, do you accept?" and then by clicking yes the game is ended with a Victory.

Is it possible to accept this surrender from code?

It would be useful to end the games more quickly.

luka-papez avatar Nov 24 '17 11:11 luka-papez

I also want to know the answer. Anybody could give us a hand? :)

cumttang avatar Dec 16 '17 03:12 cumttang

I'd like this to be a thing, but your should put up a warning to not only train your bots versus something that will give up.

N00byEdge avatar Dec 17 '17 11:12 N00byEdge

https://github.com/Blizzard/s2client-proto/issues/82

luka-papez avatar Jan 25 '18 10:01 luka-papez

HI @luka-papez Unfortunately it doesn't work: 'GetChatMessages' returns empty vector when the computer enemy says 'gg'.

Probably I did something wrong. If you curious my implementation can be found here: https://github.com/alkurbatov/suvorov-bot/commit/02e3786c6f3a88e42da0adde747d63e8de4f69af

alkurbatov avatar Jan 27 '18 19:01 alkurbatov