a figth simulator

Here you can post about your scenario's, mods, custom maps and YouTube channels!
User avatar
France bwinner
Howdah
Donator 01
Posts: 1292
Joined: Mar 14, 2016
ESO: bwinner

a figth simulator

  • Quote

Post by bwinner »

I have created a fight simulator. The algorithm is on python. I maid it so that people can use it easily without understanding the code (which is quite long as a result). To use it you just have to know everything about the units (stats) and how you want to make them figth (ie musk Attack pike 1st and then lb).
To use this, you need to have python, then just run the code, enter play_1() on the shell and follow the instructions.
I put some pictures to show how it works and the code in attachments.
Thx for @Kaiserklein for giving me the idea a long time ago, @Diarouga for giving me the motivation to do it and @Gendarme for allowing me to put a python file in attachment^^
Note : The code isn't perfect and let me now if you want me to add smthg

A few think that isn't implemented yet :
-change unit from range to hand Attack when attacking another unit (may come later)
-splash dammages (not idea how to do this)
-lb and other unit animation
-range consideration (I considere every units fight from the start which is wrong, I may change that)
EDIT : There was a misstake in my code for the bonus, I have correct it now
Attachments
fight_2.py
(4.88 KiB) Downloaded 31 times
Capture d’écran (4).png
Capture d’écran (3).png
Capture d’écran (2).png
Image

Who is online

Users browsing this forum: No registered users and 1 guest

Which top 10 players do you wish to see listed?

All-time

Active last two weeks

Active last month

Supremacy

Treaty

Official

ESOC Patch

Treaty Patch

1v1 Elo

2v2 Elo

3v3 Elo

Power Rating

Which streams do you wish to see listed?

Twitch

Age of Empires III

Age of Empires IV