diff options
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;
+}
|