Skip to content

Commit

Permalink
Merge pull request #3 from Redacted-Team/evasiveace-sprint-3
Browse files Browse the repository at this point in the history
Format microservice to hold user scores
  • Loading branch information
brewerkm1 authored Mar 7, 2024
2 parents 0980098 + 76bff14 commit 5b261f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion GameMicroServer/Controllers/microController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public class MicroController : ControllerBase
Description = "Snake is a classic arcade game that challenges the player to control a snake-like creature that grows longer as it eats apples. The player must avoid hitting the walls or the snake's own body, which can end the game.\r\n",
HowTo = "Control with arrow keys.",
//Thumbnail = "/images/snake.jpg" //640x360 resolution
},
LeaderBoardStack = new Stack<KeyValuePair<string, int>>(),

},
new GameInfo {
//Id = 2,
Title = "Tetris",
Expand All @@ -35,6 +37,8 @@ public class MicroController : ControllerBase
Description = "Tetris is a classic arcade puzzle game where the player has to arrange falling blocks, also known as Tetronimos, of different shapes and colors to form complete rows on the bottom of the screen. The game gets faster and harder as the player progresses, and ends when the Tetronimos reach the top of the screen.",
HowTo = "Control with arrow keys: Up arrow to spin, down to speed up fall, space to insta-drop.",
//Thumbnail = "/images/tetris.jpg"
LeaderBoardStack = new Stack<KeyValuePair<string, int>>(),

},
new GameInfo {
//Id = 3,
Expand All @@ -45,6 +49,7 @@ public class MicroController : ControllerBase
Description = "Pong is a classic arcade game where the player uses a paddle to hit a ball against a computer's paddle. Either party scores when the ball makes it past the opponent's paddle.",
HowTo = "Control with arrow keys.",
//Thumbnail = "/images/pong.jpg"
LeaderBoardStack = new Stack<KeyValuePair<string, int>>(),
},

};
Expand Down
1 change: 1 addition & 0 deletions GameMicroServer/GameInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ public class GameInfo
public string Description { get; set; }
public string DateAdded { get; set; }
public string HowTo { get; set; }
public Stack<KeyValuePair<string, int>> LeaderBoardStack { get; set; }
}
}

0 comments on commit 5b261f0

Please sign in to comment.