Guest User

Untitled

a guest
May 30th, 2023
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.91 KB | None | 0 0
  1. class PreviousHistory
  2. {
  3.     public void ViewHistory()
  4.     {
  5.         List<string> addGames = new();
  6.         List<string> subGames = new();
  7.         List<string> multGames = new();
  8.         List<string> divGames = new();
  9.  
  10.         List<string> previousHistory = new()
  11.         {
  12.             "Addition Games",
  13.             "Subtraction Games",
  14.             "Multiplication Games",
  15.             "Division Games"
  16.         };
  17.  
  18.         previousHistory[1].Insert(addGames);
  19.         previousHistory[3].Insert(subGames);
  20.         previousHistory[5].Insert(multGames);
  21.         previousHistory[-1].Insert(divGames);
  22.  
  23.         for (int i = 0; i < previousHistory.Count; i++)
  24.         {
  25.             // check if item is a string -> write to console if so
  26.             // otherwise, iterate through sub list -> write items
  27.         }
  28.  
  29.         Console.WriteLine("Previous Games You've Played.");
  30.         // print games here
  31.     }
  32. }
Add Comment
Please, Sign In to add comment