From 76bff146207416bf0359e74e7de0a6f39eb83406 Mon Sep 17 00:00:00 2001 From: evasiveace Date: Thu, 7 Mar 2024 13:12:32 -0500 Subject: [PATCH] Ethan Webb-Ethan Hensley Format microservice to hold user scores --- GameMicroServer/Controllers/microController.cs | 7 ++++++- GameMicroServer/GameInfo.cs | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/GameMicroServer/Controllers/microController.cs b/GameMicroServer/Controllers/microController.cs index 467f9f2..931e493 100644 --- a/GameMicroServer/Controllers/microController.cs +++ b/GameMicroServer/Controllers/microController.cs @@ -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>(), + + }, new GameInfo { //Id = 2, Title = "Tetris", @@ -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>(), + }, new GameInfo { //Id = 3, @@ -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>(), }, }; diff --git a/GameMicroServer/GameInfo.cs b/GameMicroServer/GameInfo.cs index eb7f535..8732214 100644 --- a/GameMicroServer/GameInfo.cs +++ b/GameMicroServer/GameInfo.cs @@ -7,5 +7,6 @@ public class GameInfo public string Description { get; set; } public string DateAdded { get; set; } public string HowTo { get; set; } + public Stack> LeaderBoardStack { get; set; } } } \ No newline at end of file