Advertisement
lizardbros

Simon game board cout

Nov 10th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 6.97 KB | None | 0 0
  1. //two programs, meant to provide outputs for simon game
  2. //board size is 35 width, 21 height, all underscores
  3.  
  4. void ColorBoard(color) {        //input for display will be an array, translating into a number 0-3
  5.     if (color == 'G') {
  6.         cout << "___________________________________" << endl;
  7.         cout << "_                _                _" << endl;
  8.         cout << "_     GGGG       _                _" << endl;
  9.         cout << "_    G    G      _                _" << endl;
  10.         cout << "_   G            _                _" << endl;
  11.         cout << "_   G   GGGG     _                _" << endl;
  12.         cout << "_   G     GG     _                _" << endl;
  13.         cout << "_    G     G     _                _" << endl;
  14.         cout << "_      GGGG      _                _" << endl;
  15.         cout << "_                _                _" << endl;
  16.         cout << "___________________________________" << endl;
  17.         cout << "_                _                _" << endl;
  18.         cout << "_                _                _" << endl;
  19.         cout << "_                _                _" << endl;
  20.         cout << "_                _                _" << endl;
  21.         cout << "_                _                _" << endl;
  22.         cout << "_                _                _" << endl;
  23.         cout << "_                _                _" << endl;
  24.         cout << "_                _                _" << endl;
  25.         cout << "_                _                _" << endl;
  26.         cout << "___________________________________" << endl;
  27.     }
  28.     else if (color == 'R') {
  29.         cout << "___________________________________" << endl;
  30.         cout << "_                _                _" << endl;
  31.         cout << "_                _     RRRR       _" << endl;
  32.         cout << "_                _     R   R      _" << endl;
  33.         cout << "_                _     R   R      _" << endl;
  34.         cout << "_                _     RRRR       _" << endl;
  35.         cout << "_                _     RR         _" << endl;
  36.         cout << "_                _     R R        _" << endl;
  37.         cout << "_                _     R  R       _" << endl;
  38.         cout << "_                _                _" << endl;
  39.         cout << "___________________________________" << endl;
  40.         cout << "_                _                _" << endl;
  41.         cout << "_                _                _" << endl;
  42.         cout << "_                _                _" << endl;
  43.         cout << "_                _                _" << endl;
  44.         cout << "_                _                _" << endl;
  45.         cout << "_                _                _" << endl;
  46.         cout << "_                _                _" << endl;
  47.         cout << "_                _                _" << endl;
  48.         cout << "_                _                _" << endl;
  49.         cout << "___________________________________" << endl;
  50.     }
  51.     else if (color == 'Y') {
  52.         cout << "___________________________________" << endl;
  53.         cout << "_                _                _" << endl;
  54.         cout << "_                _                _" << endl;
  55.         cout << "_                _                _" << endl;
  56.         cout << "_                _                _" << endl;
  57.         cout << "_                _                _" << endl;
  58.         cout << "_                _                _" << endl;
  59.         cout << "_                _                _" << endl;
  60.         cout << "_                _                _" << endl;
  61.         cout << "_                _                _" << endl;
  62.         cout << "___________________________________" << endl;
  63.         cout << "_                _                _" << endl;
  64.         cout << "_   Y       Y    _                _" << endl;
  65.         cout << "_    Y     Y     _                _" << endl;
  66.         cout << "_     Y   Y      _                _" << endl;
  67.         cout << "_      YYY       _                _" << endl;
  68.         cout << "_       Y        _                _" << endl;
  69.         cout << "_       Y        _                _" << endl;
  70.         cout << "_       Y        _                _" << endl;
  71.         cout << "_                _                _" << endl;
  72.         cout << "___________________________________" << endl;
  73.     }
  74.     else if (color == 'B') {
  75.         cout << "___________________________________" << endl;
  76.         cout << "_                _                _" << endl;
  77.         cout << "_                _                _" << endl;
  78.         cout << "_                _                _" << endl;
  79.         cout << "_                _                _" << endl;
  80.         cout << "_                _                _" << endl;
  81.         cout << "_                _                _" << endl;
  82.         cout << "_                _                _" << endl;
  83.         cout << "_                _                _" << endl;
  84.         cout << "_                _                _" << endl;
  85.         cout << "___________________________________" << endl;
  86.         cout << "_                _                _" << endl;
  87.         cout << "_                _     BBBB       _" << endl;
  88.         cout << "_                _     B   B      _" << endl;
  89.         cout << "_                _     B   B      _" << endl;
  90.         cout << "_                _     BBBB       _" << endl;
  91.         cout << "_                _     B   B      _" << endl;
  92.         cout << "_                _     B   B      _" << endl;
  93.         cout << "_                _     BBBB       _" << endl;
  94.         cout << "_                _                _" << endl;
  95.         cout << "___________________________________" << endl;
  96.     }
  97. }
  98.  
  99. //next part is used between each display and at the end, just a blank board cout statement
  100.  
  101. void BlankBoard () {
  102.     cout << "___________________________________" << endl;
  103.     cout << "_                _                _" << endl;
  104.     cout << "_                _                _" << endl;
  105.     cout << "_                _                _" << endl;
  106.     cout << "_                _                _" << endl;
  107.     cout << "_                _                _" << endl;
  108.     cout << "_                _                _" << endl;
  109.     cout << "_                _                _" << endl;
  110.     cout << "_                _                _" << endl;
  111.     cout << "_                _                _" << endl;
  112.     cout << "___________________________________" << endl;
  113.     cout << "_                _                _" << endl;
  114.     cout << "_                _                _" << endl;
  115.     cout << "_                _                _" << endl;
  116.     cout << "_                _                _" << endl;
  117.     cout << "_                _                _" << endl;
  118.     cout << "_                _                _" << endl;
  119.     cout << "_                _                _" << endl;
  120.     cout << "_                _                _" << endl;
  121.     cout << "_                _                _" << endl;
  122.     cout << "___________________________________" << endl;
  123. }
  124.  
  125. //colors: 0=G 1=R 2=Y 3=B
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement