Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <unistd.h>
- using namespace std;
- int Timer = 1;
- int Style = 0;
- /*
- Style 0 does
- $ # #
- # $ #
- # # $
- $ # #
- repeat.
- Style 1 does
- $ # #
- # $ #
- # # $
- # $ #
- $ # #
- repeat.
- */
- vector<string> tile {
- "$", //0
- "#", //1
- "#", //2
- "#", //3
- "#", //4
- "#", //5
- "#", //6
- "#", //7
- "#", //8
- "#", //9
- "#", //10
- "#", //11
- "#", //12
- "#", //13
- "#", //14
- "#", //15
- "#", //16
- "#", //17
- "#", //18
- "#", //19
- "#", //20
- "#", //21
- "#", //22
- "#", //23
- "#", //24
- "#", //25
- "#", //26
- "#", //27
- "#", //28
- "#", //29
- "#", //30
- "#", //31
- "#", //32
- "#", //33
- "#", //34
- "#" //35
- };
- void StyleOne() {
- tile[35] = tile[34];
- tile[34] = tile[33];
- tile[33] = tile[32];
- tile[32] = tile[31];
- tile[31] = tile[30];
- tile[30] = tile[29];
- tile[29] = tile[28];
- tile[28] = tile[27];
- tile[27] = tile[26];
- tile[26] = tile[25];
- tile[25] = tile[24];
- tile[24] = tile[23];
- tile[23] = tile[22];
- tile[22] = tile[21];
- tile[21] = tile[20];
- tile[20] = tile[19];
- tile[19] = tile[18];
- tile[18] = tile[17];
- tile[17] = tile[16];
- tile[16] = tile[15];
- tile[15] = tile[14];
- tile[14] = tile[13];
- tile[13] = tile[12];
- tile[12] = tile[11];
- tile[11] = tile[10];
- tile[10] = tile[9];
- tile[9] = tile[8];
- tile[8] = tile[7];
- tile[7] = tile[6];
- tile[6] = tile[5];
- tile[5] = tile[4];
- tile[4] = tile[3];
- tile[3] = tile[2];
- tile[2] = tile[1];
- tile[1] = tile[0];
- tile[0] = tile[35];
- }
- void StyleTwo() {
- tile[1] = tile[0]
- tile[2] = tile[1]
- tile
- }
- string pp;
- int main() {
- for (int x = 1000000; x >= 0; x--) {
- sleep(Timer);
- cout << tile[0] << tile[1] << tile[2] << tile[3] << tile[4] << tile[5] << "\n";
- cout << tile[6] << tile[7] << tile[8] << tile[9] << tile[10] << tile[11] << "\n";
- cout << tile[12] << tile[13] << tile[14] << tile[15] << tile[16] << tile[17] << "\n";
- cout << tile[18] << tile[19] << tile[20] << tile[21] << tile[22] << tile[23] << "\n";
- cout << tile[24] << tile[25] << tile[26] << tile[27] << tile[28] << tile[29] << "\n";
- cout << tile[30] << tile[31] << tile[32] << tile[33] << tile[34] << tile[35] << "\n";
- if (Style == 0) {
- StyleOne();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement