This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues or pull requests.
DamesEtCo/src/Plateau.cpp

24 lines
415 B
C++
Raw Normal View History

#include "../includes/Plateau.hpp"
2023-11-21 18:07:13 +01:00
Plateau::Plateau(int t) {
plateau = new Piece **[t];
for (int i = 0; i < t; i++) {
plateau[i] = new Piece *[t];
for (int j = 0; j < t; j++) {
plateau[i][j] = nullptr;
}
}
}
Plateau::~Plateau() {}
Plateau::Plateau(const Plateau &) {}
const Plateau &Plateau::operator=(const Plateau &src) {
if (this == &src) {
return *this;
}
return *this;
}