aboutsummaryrefslogtreecommitdiff
path: root/higgs.cc
diff options
context:
space:
mode:
Diffstat (limited to 'higgs.cc')
-rwxr-xr-xhiggs.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/higgs.cc b/higgs.cc
index 237346a..94da7cd 100755
--- a/higgs.cc
+++ b/higgs.cc
@@ -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;
+}