en

Case Study – webDiplomacy

webDiplomacy transforms online Diplomacy gaming with innovative AI bot

About webDiplomacy

  • Website created in 2005 to enable users to play the Diplomacy board game online

  • More than 130,000 registered players

  • Over 450 games active at any given time

Highlights

  • Implemented AI solution to fill in for missing players and enable bot games

  • Total games played on the site increased by more than 50% in just one year since introducing bot

  • Over 56,000 bot games played to date

Overview

The ability to play Diplomacy online makes the game infinitely more accessible, but it also means that players can easily leave matches that aren’t going well. For over 15 years, this leaver problem was an unfortunate and avoidable reality of online Diplomacy gaming – until Attrava, in collaboration with academic researchers from University of Montreal, developed a first-of-its-kind artificial intelligence solution. Built using a dataset of more than 150,000 games, DipNet can assess a board state, compute moves, and submit orders in place of missing players in any game that doesn’t require direct communication between participants. What’s more, users can create pure bot games to practice and play against the AI.

Attrava handled everything and drove the entire project. Getting the integrations right could have been a pain, but Attrava took the bull by the horns and added the AI module directly to our server..
Kestas Kuliukas, Founder, webDiplomacy

Attrava have been great to work with. They have a great technical understanding and there’s never been a question without an answer.
Kestas Kuliukas, Founder, webDiplomacy

Challenge

Diplomacy has been a popular board game for over 60 years, pitting seven players against each other as they vie for control of Europe through statecraft and subterfuge, and with success determined entirely by skill rather than luck. Inspired by his father’s passion for the game, in 2005 Kestas Kuliukas built webDiplomacy, one of the first websites to enables users to play Diplomacy online.

The digital format eliminated one of the most significant obstacles to enjoying the game – the need to bring a large number of people together to play in person. As a result, the site quickly gained immense traction, which it has maintained to this day. However, online play also introduced its own challenges.

It’s an inevitable issue with internet games,” explains Kestas Kuliukas. “When you’re not playing face-to-face with friends, there’s no obligation to keep playing if the match isn’t going well for you. Especially in low-level Diplomacy games, people would often join multiple sessions and simply drop out of the ones that weren’t looking favorable.”

Abandoning a game naturally made the experience far less enjoyable for the remaining players. And to make matters worse, since the culprits would frequently play on multiple fresh accounts, the trend was disproportionally affecting new players and turning them away from the game.

webDiplomacy needed a way to mitigate the impact of this poor sportsmanship and ensure honest players could continue to enjoy the game.

Solution

The answer to the leaver problem was obvious: an AI bot that could take over for missing players. But creating an AI capable of playing a game as complex as Diplomacy was much easier said than done.

We have a vast amount of gameplay data that we were offering to anybody that was interested in tackling the problem,” continues Kestas Kuliukas. “A few people approached us, but no-one was able to produce a functioning AI model. At least, not until we met Attrava.”

Utilizing webDiplomacy’s data, Attrava built a dataset of more than 150,000 games and developed a deep learning model that can seamlessly take the place of human players in “no-press” Diplomacy games – a popular version of the game where there is no direct messaging between players.

DipNet models the board state as a graph, with each province linked to its neighbors. In this way, it can see where units are located on the board, and assigns values to them which enable it to compute the move that a human player would be most likely to make.

The bot requests board states and issues orders via a custom API. Built with a containerized infrastructure, the API integrates into the existing website, requiring no additional work on webDiplomacy’s end.

Kestas Kuliukas adds: “Attrava handled everything and drove the entire project. Getting the integrations right could have been a pain, but Attrava took the bull by the horns and added the AI module directly to our server.”

Results

It’s been just over a year since DipNet was implemented, and the bot has been very busy – participating in over 56,000 games to date.

Now that players no longer have to deal with leavers ruining their no-press games, the overall user experience has improved substantially. What’s more, it’s now possible to play in full bot games. For new players, this option offers a stress-free way to learn the ropes. And veterans love playing with the bleeding edge technology, to the extent that there have even been bot tournaments.

Looking beyond the immediate impact on gameplay, the project has also unlocked more far-reaching benefits for webDiplomacy.

Kestas Kuliukas confirms: “One of the most tangible results of our work with Attrava is that the site is now being taken much more seriously. I always hoped that our data would be useful for something, and now researchers are taking a real interest. I can’t reveal too much about the ongoing work, but it’s hugely beneficial for the website.”

Since 2005, many other Diplomacy websites have emerged (often as branches of webDiplomacy’s own open-source code). But today, no other site gives users the chance to play alongside a fully-fledged Diplomacy AI.

It’s hard to get your own Attrava,” concludes Kestas Kuliukas. “They’ve been great to work with. They have a great technical understanding and there’s never been a question without an answer.”

About Attrava

Attrava was created to help businesses use the cloud and artificial intelligence to increase their efficiency and resiliency. We believe that the cloud and AI are the future of technology, both for small and large businesses, and that a trusted partner is the best way to unlock its potential. To learn more about how we can help you design, execute, and maintain your technology projects, contact Philip Paquette, President, at philip.paquette@attrava.com.

Have a project ?

Contact us
Newsletter

353 Saint-Nicolas St.
Suite 200
Montreal, QC  H2Y 2P1

398 Avenue Road
Suite 423
Toronto, ON  M4V 2H4

647-697-4500

Pages
Legal

Copyright © 2020 - Attrava Inc. - All Rights Reserved

Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from Youtube
Vimeo
Consent to display content from Vimeo
Google Maps
Consent to display content from Google
Spotify
Consent to display content from Spotify
Sound Cloud
Consent to display content from Sound