MeehoweCK

Untitled

Jun 13th, 2024
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. // tak wygląda obecnie:
  2. Tree::Tree(int depth, CheckersBoard &board) {
  3.     //color = side; //1- gra czarnymi, 0- gra bialymi
  4.     root = nullptr;
  5.     this->depth = depth;
  6.     root = new Node({}, board.currentTurn);
  7. }
  8.  
  9. // tak mógłby wyglądać:
  10. Tree::Tree(int _depth, CheckersBoard &board) : depth{_depth}, root{new Node{{}, board.currentTurn}} {}
Advertisement
Add Comment
Please, Sign In to add comment