-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathstrategy.h
33 lines (29 loc) · 838 Bytes
/
strategy.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef STRATEGY_H
#define STRATEGY_H
class Strategy {
private:
int strategyImplementation [ 243 ];
int score;
int birthGeneration;
int mutationCount;
public:
Strategy( );
//~Strategy( );
int element ( int index );
void writeStrategy ( int sArray [ ] );
void printStrategy ( );
void setRandomStrategy ( );
int getAction ( int index );
friend Strategy* copulate ( Strategy l, Strategy r );
Strategy& operator = ( const Strategy& rhs );
void mutate( void );
friend bool identical ( Strategy l, Strategy r, int& diffPos );
friend int similarityCount ( Strategy l, Strategy r );
void updateScore ( int newScore ) ;
int getScore ( void );
void updateMutationCount ( void);
void setBirthGeneration ( int generation );
int getBirthGeneration ( void );
int getMutationCount ( void );
};
#endif