C
C#3y ago
kiteflora

❔ Console Game Project (Memory Matching)

Hi all! I'm not sure if this is the right channel, but I have a question... I'm New to programming (computer science major) I have a home project to create a simple c# console game. It's like a memory matching game which shows card values for a given number of time (depending on difficulty level) for example: Card 14: Dog Card 3: House (Because the cards don't match they are supposed to be erased from the console in x amount of time, say 3 seconds, and the player has to choose again another pair of cards he thinks will match) How do I code this timing function that will 'hide (clear)' the cards after a given amount of time)? Thanks in advance! Our university teaches c#, so my project has to be in c# (visual studio)
4 Replies
Angius
Angius3y ago
Use a timer We currently have, like, 7 different timers in C#, so just pick one
kiteflora
kitefloraOP3y ago
Hey, thanks for the response How to I navigate to the timer? Are there any specific functions/data structures/ tabs in visual studio you can recommend for this?
Angius
Angius3y ago
Timers are a .NET thing, it's not something specific to VS Task.Delay() I think will be what you want
Accord
Accord3y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server