test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
29
.config/Code/User/History/a787b13/CyFm.cpp
Normal file
29
.config/Code/User/History/a787b13/CyFm.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#ifndef LEVEL3_H
|
||||
#define LEVEL3_H
|
||||
|
||||
#include "GameLevel.h"
|
||||
|
||||
class Level3 : public GameLevel{
|
||||
public:
|
||||
Level3(){
|
||||
pattern(0);
|
||||
}
|
||||
void pattern(int i){
|
||||
if(i<15){
|
||||
patternHelper(i, 0);
|
||||
pattern(i+1);
|
||||
}
|
||||
}
|
||||
void patternHelper(int i, int j){
|
||||
if(j<15){
|
||||
bricks[i][j] = new Brick();
|
||||
// if(i == 0 || i == 14) bricks[i][j] = new Brick();
|
||||
// else if(j <= j-i && j >= j+i) bricks[i][j] = new Brick();
|
||||
patternHelper(i, j+1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
};
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue