Python-Robocode icon indicating copy to clipboard operation
Python-Robocode copied to clipboard

Game balance

Open jc1bert opened this issue 11 years ago • 5 comments

Hi,

I plan on using this game with my students learning Python. At this time, a fire(n) has the following effects on health:

  • you lose n when firing,
  • you win n when hitting,
  • you lose n when hit.

I find these rules a bit imbalanced since they greatly favour defensive bots over aggressive bots (and runner bots over sniper bots). For exemple when shooting 3 bullets for only 1 hit:

  • shooter will lose 2*n health,
  • target will only lose n health.

I've already made the following changes. When fire(n) is used:

  • you lose n when shooting,
  • you lose 3*n when hit,
  • you earn 2*n when hitting.

How about making this gameplay change in the github code?

jc1bert avatar Dec 14 '13 13:12 jc1bert

Hi,

I'm glad to know that you use my code, I have made this just for fun (I wanted to work on AI with multi-level brain), I am curious to know what you think about it.

Yes, you are right, it is a little imbalanced, give me your modification and I will update this code.

What kind of student have you ? I fill fulfilled, I have learnt programming by myself. Tell me a little about you, I will be happy to meet and help you!

Regards, Charlie

turkishviking avatar Dec 16 '13 01:12 turkishviking

Hi Charlie,

I'm glad to know that you use my code, I have made this just for fun (I

wanted to work on AI with multi-level brain)

I'm really glad to have found a working python version of Robocode. Since my students are at the early stages of computer science, we will only program simple bots (wall crawlers, turrets, ...).

Yes, you are right, it is a little imbalanced, give me your modification and I will update this code.

These are 2 minor modifications in robot.py, in the __bulletRebound method: line 504: self.__changeHealth(self, -3_bullet.power) line 507: self.__changeHealth(bullet.robot, 2_bullet.power)

What kind of student have y am curious to know what you think about it.ou ? I fill fulfilled, I have learnt programming by myself.

I'm teaching physics in the equivalent of 1st year college in France (in classes préparatoireshttp://en.wikipedia.org/wiki/Classe_pr%C3%A9paratoire_aux_grandes_%C3%A9coles#Scientific_CPGEto be more precise). Computer programming was introduced in our programs this year, and I had to learn Python last summer (my last programming experience was in C/C++ 10 years ago)...

I'm therefore not the most qualified to review your code (but the fact that it's cleanly written with self explanatory functions' name is really helpful).

We are using Python but the requirements are really simple (and almost language independant): while and for loops, if statements, creation and use of lists for the first year; recursive functions, trees for second year.

I've already written a small manual for my students. It's in French but I can translate it in English to be included in the program.

Our first games will take place next saturday. I'll have then have many simple bots that could also be included in your game.

Regards, Jean-Christophe

jc1bert avatar Dec 17 '13 10:12 jc1bert

Hi Bobyl,

I'm French and have taught in engineering school too ^^ (multidisciplinary - innovative design) if you give me your mail I 'll can help you for understanding the game physics, and improve it with your collaboration. If you are interested we can work on AI with your students (and make a tournament ?) , it is not very much more complicated than the programming bases

Regards, Charlie

PS: Update Done

turkishviking avatar Dec 17 '13 14:12 turkishviking

Hi Charlie,

if you give me your mail I 'll can help you for understanding the game physics, and improve it with your collaboration.

@**.org

I'd be happy to contribute, either with doc, new bots or new methods to broaden the strategy possibilities.

PS: Update Done

Thanks!

Regards, Jean-Christophe

jc1bert avatar Dec 18 '13 06:12 jc1bert

Hi! Cool project. Maybe this issue can be closed now?

minac avatar Oct 21 '20 14:10 minac