Multi-Mode Formula

Jump to navigation Jump to search

Multi-Mode Formula

I was working for a micro bot and I found a new type of multi-mode movement system.(I think)
Simply it is:
  • Complexity starts from 0.
  • Every time the bot dies, it increases the complexity.
  • Every time the enemy fires call setAhead(getDir(complexity)).
    public double getDir(int complexity) {
        double extraMove; 
        double moveDir = extraMove = 1.0 / complexity;
        for(int i = 1; i < complexity; i++) {
            moveDir += Math.sin(getTime() / i / (10.0 / (complexity + 1)));
        }
        return Math.signum(moveDir) * ((extraMove + 18) * (complexity + 1));
    }
Just with this code these happen:
  • First round: Musashi trick.
  • Second round: Stop'n go.
  • Third round: Random(not actually random) stop'n go.
  • Fourth round: Musashi trick + stop'n go + not random.
  • Fifth round: Oscillator movement.

Any thoughts?

Dsekercioglu (talk)11:22, 8 September 2017

Sorry for double post. Also like this it is possible to make Musashi Trick + Stop And Go + Random Movement

    public double getDir(int complexity) {
        double move = 1.0 / complexity;
        return move * 36 + (Math.signum(--complexity) * (Math.random() * 256 - 128));
    }
Dsekercioglu (talk)11:57, 8 September 2017
 

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Users.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

Return to Thread:Talk:Multi-Mode/Multi-Mode Formula/reply (2).

It can easily be done by starting with a complexity of 1.

Dsekercioglu (talk)14:39, 9 September 2017