Improving C++ API
[progcomp2013.git] / agents / silverfish / silverfish.cpp
diff --git a/agents/silverfish/silverfish.cpp b/agents/silverfish/silverfish.cpp
new file mode 100644 (file)
index 0000000..20eb9e9
--- /dev/null
@@ -0,0 +1,30 @@
+#include "silverfish.h"
+
+using namespace std;
+
+Silver::Silver(const string & colour) : Agent(colour), values()
+{
+       values[Piece::PAWN] = 1;
+       values[Piece::BISHOP] = 3;
+       values[Piece::KNIGHT] = 3;
+       values[Piece::ROOK] = 5;
+       values[Piece::QUEEN] = 9;
+       values[Piece::KING] = 100;
+       values[Piece::UNKNOWN] = 1.5;
+}
+
+Silver::Silver(const string & colour, const map<Piece::Type, double> & new_values) : Agent(colour), values(new_values)
+{
+       //TODO: Assert map is valid
+}
+
+Square & Silver::Select()
+{
+       
+       return Agent::Select();
+}
+
+Square & Silver::Move()
+{
+       return Agent::Move();
+}
\ No newline at end of file

UCC git Repository :: git.ucc.asn.au