11 Replies
idk why i'm getting this error but its first time that i tried to use a module
i don't think switch case causing the error
it is the case causing te error
i have no idea
string botChoice = cards.Shuffle(random).First();
maybe thishint: don't use a
switch
-case
in this scenario
as the string isn't a compile-time constantso i can not use switch-case with strings
yes you can
or dictionary
but only when they're constant
ok i replaced switch-case with if else statement
now it works
!close
Closed!
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.