Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/3rfaan/courses
/ ShouldPlay
Function
ShouldPlay
C#/ReturnMethods/Program.cs:7–12 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
5
if (ShouldPlay()) PlayGame();
6
7
bool ShouldPlay()
8
{
9
string input = Console.ReadLine();
10
11
return input.ToLower().Equals(
"y"
);
12
}
13
14
void PlayGame()
15
{
Callers
2
Program.cs
File · 0.85
PlayGame
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected