Compare commits

..

No commits in common. 'cb07a3a3c54ba0c646387842dee57a1f6e06610b' and '2062ca7462340ad3c14b6d9227469b0c9b49b1a9' have entirely different histories.

@ -51,12 +51,6 @@ fn parser(query: []const u8) !void {
if (mem.eql(u8, query, "quit")) { if (mem.eql(u8, query, "quit")) {
try quitApp(); try quitApp();
} }
if (mem.eql(u8, query, "hello")){
try stdOut.writer().print("Welcome\n", .{});
}
if (mem.eql(u8, query, "thank you")){
try stdOut.writer().print("{s}\n", .{"You're welcome"});
}
if (mem.eql(u8, query, "player1")) { if (mem.eql(u8, query, "player1")) {
player1Name = try getInput(); player1Name = try getInput();
try stdOut.writer().print("Player 1 is now {s}\n", .{player1Name}); try stdOut.writer().print("Player 1 is now {s}\n", .{player1Name});
@ -79,5 +73,3 @@ fn getInput() ![]const u8{
const input = (try nextLine(stdIn.reader(), &buffer)).?; const input = (try nextLine(stdIn.reader(), &buffer)).?;
return input; return input;
} }

Loading…
Cancel
Save