Description
Vindinium is a multiplayer turn-based bagel. Each of the four players has one hero who can move around the map. The goal is for the players to collect the maximum amount of gold for a given number of moves (each player makes 300 moves per game, so the whole game consists of 1200 moves). Players must take control of gold mines to produce gold; however, the mines are protected by goblins. When a player defeats a goblin, he becomes the owner of the mine and receives one gold per turn. In addition, the goblin now protects the mine from other players.
Heroes can fight each other. A survivor in battle gains control of all the gold mines of his opponent. The slain hero is immediately reborn with all his gold, but all mines pass into the hands of the killer.
When attacking a tavern, heroes can buy beer for 2 gold units, thus restoring their health points.
The goal is to create a computer program (bot) that plays the game Vindinium as reasonably as possible. It is recommended that you use one of the starter kits for a large number of programming languages as a starting point.
Map
Maps are created randomly. Each game object on the card is encoded using two characters. Sample map:
+----------------------------------------+ |######$- $-############$- $-######| |###### ## ## ######| |####[] #### #### []####| |## #### ## ## #### ##| |#### $- $- ####| |########## @1 @4 ##########| |############ #### #### ############| |$-##$- ############ $-##$-| | $- $-################$- $- | | ######################## | | ######################## | | $- $-################$- $- | |$-##$- ############ $-##$-| |############ #### #### ############| |########## @2 @3 ##########| |#### $- $- ####| |## #### ## ## #### ##| |####[] #### #### []####| |###### ## ## ######| |######$- $-############$- $-######| +----------------------------------------+
Legend
##
- Insurmountable Forest
@1
- First Hero
[]
- Taverns
$-
- Gold Mine (no one's)
$1
- Gold Mine (owned by the first hero)
The generated maps are symmetrical and always contain 4 taverns and 4 heroes.
Hero
Heroes can move one cell for each turn and have the following indicators:
- Health Points (HP): Each “fresh” player starts with a maximum value = 100. If HP drops to zero, the hero dies (see the section “Death of a Hero”).
- Gold: starting from scratch, this is an indicator of the hero’s success. At the end of the game, heroes will be rated based on their amount of gold.
- The number of gold mines.
Direction of travel
The bot must give one order per turn. Possible orders:
Stay
, North
, South
,
( East
) or
( West
). As soon as the order is executed, the hero remains in his place or moves one square in a given direction.
Moving Hero
If the hero:
- Trying to go beyond the boundaries of the map or go through the trees, nothing happens.
- It goes into a gold mine, it remains in place and:
- If the mine already belongs to the hero, nothing happens.
- If the mine is drawn or belongs to another hero, there is a battle with the goblin warden guarding the mine. The hero loses 20 hit points. If he survives, mine is his.
- Attacking another hero, he stays in place and nothing happens. Hero fights are decided at the end of the turn.
- He enters the tavern, he stays in place and orders himself to eat. The hero pays 2 gold and recovers 50 health. Please note that the amount of health can not exceed 100 units.
- He does not send an order for the time allotted to him to make a decision (1 second), he remains in place until the end of the game, it becomes impossible to send new orders. Please note that he can still win if at the end of the game he has more gold than other players.
End of turn
After the hero has moved (or decided to stay in place), the following things will happen:
Battles
Heroes are a little nervous and never miss an opportunity to strike each other with big swords. At the end of the hero’s turn, if there is an enemy at a distance of one square in any direction, the hero attacks him. For example, in this situation, at the end of the move of the first hero ( @1
):
######## ##@1@2## ## @3## ########
Player 1 attacks the second player, but does not touch the third player, because the third player stands at a distance of two cells from him.
The attacker does not lose health points, the defender loses 20 points.
If the defender dies (see: Death of the hero), the attacker gains control of all the gold mines of the loser.
Gold mining
After his turn and battles with other heroes (if any), the player receives one unit of gold for each mine he controls.
Thirst
Then the hero loses one health unit, for any action makes him thirsty.
Note that heroes cannot die of thirst. In the worst case, the value of their health drops to unity.
Hero's death
When the hero's health drops to zero, he dies. The hero immediately appears on the map at his point of rebirth, with a full stock of health (100 units). The hero loses control of all his gold mines, but retains all his accumulated gold. Be careful when the hero returns to the resurrection point, any opponent who is in this cell automatically dies. Thus, you should avoid staying on the cell of the rebirth of one of the heroes ...
The hero cannot die of thirst. Thirst can leave a hero with one health unit, but not kill him.
End of the game
The game ends when the maximum number of moves is reached (usually 300). The winner is the hero with the most gold. If two players have the same amount of gold, there is no winner.
Rating
The system for assessing the relative strength of players uses Elo Rating The idea is this: it is better to be first than second, better to be second than third, and so on. I hope the principle is clear.
Using multiple bots at the same time
You can simultaneously run multiple instances of your bots and, in general, use any measures that you think are suitable for achieving dominant leadership. Fight!