Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Strategy.h"
- #define _USE_MATH_DEFINES
- #include <cmath>
- class MyStrategy : public Strategy {
- public:
- void Move(model::Tank self, model::World world, model::Move& move);
- model::TankType SelectTank(int tank_index, int team_size);
- private:
- int a, b, c, d, e, f;
- };
- using namespace model;
- void MyStrategy::Move(Tank self, World world, model::Move& move) {
- a = 1; b = 2; c = 3; d = 4; e = 5; f = 6;
- move.set_left_track_power(-1.0);
- move.set_right_track_power(1.0);
- move.set_turret_turn(M_PI);
- move.set_fire_type(PREMIUM_PREFERRED);
- }
- TankType MyStrategy::SelectTank(int tank_index, int team_size) {
- return MEDIUM;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement