Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // tak wygląda obecnie:
- Tree::Tree(int depth, CheckersBoard &board) {
- //color = side; //1- gra czarnymi, 0- gra bialymi
- root = nullptr;
- this->depth = depth;
- root = new Node({}, board.currentTurn);
- }
- // tak mógłby wyglądać:
- Tree::Tree(int _depth, CheckersBoard &board) : depth{_depth}, root{new Node{{}, board.currentTurn}} {}
Advertisement
Add Comment
Please, Sign In to add comment