forked from Russian-AI-Cup-2014/cpp-cgdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1de6121
Showing
59 changed files
with
7,356 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/wipe.bat | ||
/UpgradeLog*.XML | ||
/_UpgradeReport_Files | ||
/cpp-cgdk.xcodeproj | ||
/ipch | ||
/cpp-cgdk*.ncb | ||
/cpp-cgdk*.sdf | ||
/cpp-cgdk*.suo | ||
/cpp-cgdk*.vcproj.user | ||
/cpp-cgdk*.vcproj.*.user | ||
/cpp-cgdk*.vcxproj.user | ||
/cpp-cgdk*.vcxproj.*.user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "MyStrategy.h" | ||
|
||
#define PI 3.14159265358979323846 | ||
#define _USE_MATH_DEFINES | ||
|
||
#include <cmath> | ||
#include <cstdlib> | ||
|
||
using namespace model; | ||
using namespace std; | ||
|
||
void MyStrategy::move(const Hockeyist& self, const World& world, const Game& game, Move& move) { | ||
move.setSpeedUp(-1.0); | ||
move.setTurn(PI); | ||
move.setAction(STRIKE); | ||
} | ||
|
||
MyStrategy::MyStrategy() { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#pragma once | ||
|
||
#ifndef _MY_STRATEGY_H_ | ||
#define _MY_STRATEGY_H_ | ||
|
||
#include "Strategy.h" | ||
|
||
class MyStrategy : public Strategy { | ||
public: | ||
MyStrategy(); | ||
|
||
void move(const model::Hockeyist& self, const model::World& world, const model::Game& game, model::Move& move); | ||
}; | ||
|
||
#endif |
Oops, something went wrong.