diff options
author | tomsmeding <hallo@tomsmeding.nl> | 2015-04-26 21:39:04 +0200 |
---|---|---|
committer | tomsmeding <hallo@tomsmeding.nl> | 2015-04-26 21:39:04 +0200 |
commit | e8e24f187f451d51551a1db76321e03efe94cc9d (patch) | |
tree | c294a79de970a662d3b89e4f5f86f97a92a2c62a /higgs.cc | |
parent | f3b7df07e4fd136521186baee86faa822dc68d16 (diff) |
Try to fix all kinds of shit
Diffstat (limited to 'higgs.cc')
-rwxr-xr-x | higgs.cc | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -115,3 +115,12 @@ Board::Board() { square[neutron] = -1;
move_count = 0;
}
+
+Board::Board( Board& board ) {
+ for( int i = 0; i < SS; i++ )
+ square[i] = board.square[i];
+ for( int i = 0; i < 2*S; i++ )
+ proton[i] = board.proton[i];
+ neutron = board.neutron;
+ move_count = board.move_count;
+}
|