Skip to content

Instantly share code, notes, and snippets.

@Sarverott
Created December 19, 2021 20:07
Show Gist options
  • Save Sarverott/e789a577bae65704e7f862694f44bff5 to your computer and use it in GitHub Desktop.
Save Sarverott/e789a577bae65704e7f862694f44bff5 to your computer and use it in GitHub Desktop.
▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓
▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓
▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒
▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒
▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓
▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓
▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒
▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒
▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓
▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓
▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒
▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒
▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓
▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓
▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒
▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒▓▓▓▓▒▒▒▒
#include <iostream>
using namespace std;
class Chessboard{
public:
int cellWidth=4;
int cellHeight=2;
int boardWidth=8;
int boardHeight=8;
char whiteChar=(char)177;
char blackChar=(char)178;
Chessboard(){}
void print(){
for(
int i=0;
i<cellWidth*cellHeight*boardHeight*boardWidth;
i++
){
if(i%(cellWidth*boardWidth)==0)cout<<"\n";
cout<<(char)(whiteChar+(blackChar-whiteChar)*(i/cellWidth+(i/(cellWidth*boardWidth*cellHeight))%2)%2);
}
}
};
int main()
{
Chessboard playground;
playground.print();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment