Programmer Unknown's BattleGround: an open area for the battle of programmers
Initially, the PUBG project (we apologize to the original PUBG for using their abbreviations, we just want to use this game to develop programming skills and do not plan to publish it on Steam in the future) was developed as an internal project of our studio for entertainment. Then we thought that it could be useful to other studios, companies and educational institutions, and published it under the MIT license.
What it is?
PUBG is an automatic battlefield where algorithms battle each other in real time. Each algorithm controls a creature (which can be a bull, a rhinoceros, etc.) in order to collect bullets and attack their opponents with them. Each victory increases the intelligence coefficient of each creature, the smartest of which are displayed in a single table of records.
See how it works for us .
Why is this needed?
- If you are learning programming, you can use PUBG to train your
skill in projecting abstract tasks onto specific elements of the algorithm. - If you work as a team, you can organize weekly competitions
and reward the winner with pizza, beer or iPhone X. - If you teach programming, you can use PUBG as a small
lab to demonstrate how basic application algorithms work. Creating a
brain for a creature is often much more interesting than drawing a parabola on the screen.
How to create your own bot?
- Download the latest version of the game.
- Open the file /brains/br_edmund.js for editing, read the comments in it and change the logic of the brain to the desired behavior of the creature.
- Open /index.html in a browser to see what you get. It's all.
- You can modify the array cfg_sources file config.js to remove from the game some of the existing or add your own.
- You can edit other variables in the config.js file to change the rules of the game, for example, set shuffleBrains to false to start the game from your brain, or change the value of maxAliveCreatures to fight more or less enemies.
- Try your skills in battles with the best brains .
Materials
The access link provides detailed documentation describing the abilities of animals, rules, the procedure for conducting competitions, etc. Project source codes are available on GitHub , you can use them at your discretion: fork in your version for training, competitions with friends, etc. Happy and fun battles!