Ryan-T1412
Ryan-T1412
CC#
Created by Ryan-T1412 on 12/25/2022 in #help
❔ ✅ error CS0150 A constant value is expected
!close
20 replies
CC#
Created by Ryan-T1412 on 12/25/2022 in #help
❔ ✅ error CS0150 A constant value is expected
now it works
20 replies
CC#
Created by Ryan-T1412 on 12/25/2022 in #help
❔ ✅ error CS0150 A constant value is expected
if (winningSituations[userChoice] == botChoice)
{
Console.WriteLine("You Won the Round!");
}else
{
Console.WriteLine("You Lost the Round!");
}
if (winningSituations[userChoice] == botChoice)
{
Console.WriteLine("You Won the Round!");
}else
{
Console.WriteLine("You Lost the Round!");
}
20 replies
CC#
Created by Ryan-T1412 on 12/25/2022 in #help
❔ ✅ error CS0150 A constant value is expected
ok i replaced switch-case with if else statement
20 replies
CC#
Created by Ryan-T1412 on 12/25/2022 in #help
❔ ✅ error CS0150 A constant value is expected
or dictionary
20 replies
CC#
Created by Ryan-T1412 on 12/25/2022 in #help
❔ ✅ error CS0150 A constant value is expected
so i can not use switch-case with strings
20 replies
CC#
Created by Ryan-T1412 on 12/25/2022 in #help
❔ ✅ error CS0150 A constant value is expected
maybe this
20 replies
CC#
Created by Ryan-T1412 on 12/25/2022 in #help
❔ ✅ error CS0150 A constant value is expected
string botChoice = cards.Shuffle(random).First();
20 replies
CC#
Created by Ryan-T1412 on 12/25/2022 in #help
❔ ✅ error CS0150 A constant value is expected
i have no idea
20 replies
CC#
Created by Ryan-T1412 on 12/25/2022 in #help
❔ ✅ error CS0150 A constant value is expected
i don't think switch case causing the error
20 replies
CC#
Created by Ryan-T1412 on 12/25/2022 in #help
❔ ✅ error CS0150 A constant value is expected
idk why i'm getting this error but its first time that i tried to use a module
20 replies