fix orange color & added makefile

This commit is contained in:
leca 2024-08-28 21:30:18 +03:00
parent d7f90ccbe6
commit ed0e12c7d6
2 changed files with 5 additions and 1 deletions

4
Makefile Normal file
View File

@ -0,0 +1,4 @@
squared:
g++ squared.cpp -lsfml-window -lsfml-system -lsfml-graphics -o squared
skins:
g++ skins.cpp -lsfml-window -lsfml-system -lsfml-graphics -o skins

View File

@ -173,7 +173,7 @@ void printBoard(RenderWindow* win, vector<vector<int>>* board, int width, int he
if((*board)[i][j] % 7 == 0) {
rectangle->setFillColor(Color::Red);
} else if ((*board)[i][j]% 7 % 6 == 0) {
rectangle->setFillColor(Color::Orange);
rectangle->setFillColor(Color(255, 165, 0, 255));
} else if ((*board)[i][j] % 7 % 5 == 0) {
rectangle->setFillColor(Color::Yellow);
} else if ((*board)[i][j] % 7 % 4 == 0) {