aboutsummaryrefslogtreecommitdiff
path: root/higgs.cc
diff options
context:
space:
mode:
authortomsmeding <hallo@tomsmeding.nl>2015-04-26 21:39:04 +0200
committertomsmeding <hallo@tomsmeding.nl>2015-04-26 21:39:04 +0200
commite8e24f187f451d51551a1db76321e03efe94cc9d (patch)
treec294a79de970a662d3b89e4f5f86f97a92a2c62a /higgs.cc
parentf3b7df07e4fd136521186baee86faa822dc68d16 (diff)
Try to fix all kinds of shit
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;
+}