Skip to content

Commit 18404e9

Browse files
committed
tug of war raw string literal
1 parent f91a6cf commit 18404e9

File tree

2 files changed

+32
-30
lines changed

2 files changed

+32
-30
lines changed

Diff for: Projects/Tug Of War/Program.cs

+16-15
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,22 @@
1919
new string(' ', 2);
2020
bool frame_a = false;
2121
Console.Clear();
22-
Console.WriteLine(@"
23-
Tug Of War
24-
25-
Out pull your opponent in a rope pulling
26-
competition. Mash the [left]+[right] arrow
27-
keys and/or the [A]+[D] keys to pull on the
28-
rope. First player to pull the center of the
29-
rope into their boundary wins.
30-
31-
Choose Your Opponent:
32-
[1] Easy.......2 mashes per second
33-
[2] Medium.....4 mashes per second
34-
[3] Hard.......8 mashes per second
35-
[4] Harder....16 mashes per second
36-
[escape] give up");
22+
Console.Write("""
23+
Tug Of War
24+
25+
Out pull your opponent in a rope pulling
26+
competition. Mash the [left]+[right] arrow
27+
keys and/or the [A]+[D] keys to pull on the
28+
rope. First player to pull the center of the
29+
rope into their boundary wins.
30+
31+
Choose Your Opponent:
32+
[1] Easy.......2 mashes per second
33+
[2] Medium.....4 mashes per second
34+
[3] Hard.......8 mashes per second
35+
[4] Harder....16 mashes per second
36+
[escape] give up
37+
""");
3738
int? requiredMash = null;
3839
while (requiredMash is null)
3940
{

Diff for: Projects/Website/Games/Tug Of War/Tug Of War.cs

+16-15
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,22 @@ public async Task Run()
2727
new string(' ', 2);
2828
bool frame_a = false;
2929
await Console.Clear();
30-
await Console.WriteLine(@"
31-
Tug Of War
32-
33-
Out pull your opponent in a rope pulling
34-
competition. Mash the [left]+[right] arrow
35-
keys and/or the [A]+[D] keys to pull on the
36-
rope. First player to pull the center of the
37-
rope into their boundary wins.
38-
39-
Choose Your Opponent:
40-
[1] Easy.......2 mashes per second
41-
[2] Medium.....4 mashes per second
42-
[3] Hard.......8 mashes per second
43-
[4] Harder....16 mashes per second
44-
[escape] give up");
30+
await Console.Write("""
31+
Tug Of War
32+
33+
Out pull your opponent in a rope pulling
34+
competition. Mash the [left]+[right] arrow
35+
keys and/or the [A]+[D] keys to pull on the
36+
rope. First player to pull the center of the
37+
rope into their boundary wins.
38+
39+
Choose Your Opponent:
40+
[1] Easy.......2 mashes per second
41+
[2] Medium.....4 mashes per second
42+
[3] Hard.......8 mashes per second
43+
[4] Harder....16 mashes per second
44+
[escape] give up
45+
""");
4546
int? requiredMash = null;
4647
while (requiredMash is null)
4748
{

0 commit comments

Comments
 (0)