
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 fight each other in real time. Each algorithm controls a creature (which may be a bull, a rhinoceros, etc.) in order to collect bullets and attack their opponents with them. Each victory increases the IQ of each creature, the smartest of which are displayed in a single table of records.

')
See
how it works with us .
Why do you need it?
- If you are learning programming, you can use PUBG to train
the skill of projecting abstract tasks on specific elements of the algorithm. - If you work in a team, you can organize weekly competitions
and award the winner pizza, beer or iPhone X. - If you teach programming, you can use PUBG as a small
laboratory to demonstrate the work of applied basic algorithms. Create
the brain for a creature is often much more interesting than drawing a parabola on the screen.
How to create your bot?
- Download the latest version of the game.
- Open the /brains/br_edmund.js file 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 your browser to see what you got. It's all.
- You can change the cfg_sources array in the config.js file to remove some creatures from the game 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 with your brain, or change the value of maxAliveCreatures to fight more or fewer enemies.
- Try your skills in battles with the best brains .
Materials
Access the
link for detailed documentation describing the abilities of animals, the rules, the order of the competition, etc. Source codes are
available on GitHub , you can use them to your liking: fork into your version for training, competitions with friends, etc. Successful and fun battles!