Battlemon Trading Card Game
C# ASP.NET card game
Battlemon Trading Card Game (BTCG) is a card game created in ASP.NET using C#. It showcases the use of MVC pattern. There was a database with certain data such as accounts, all CPU opponents and all Battlemon cards. I have used a repository pattern to fetch data from my database. Accounts have roles, so by logging in you got access to functionalities based on your role.
Context methods get used in the controller. It fetches the data and uses a ViewModelConverter to convert the raw data, in this case a list of all Battlemon, into a ViewModel which in turn gets used to show the actual data in the View for the player to see.