Added player name entry.
This commit is contained in:
+6
-7
@@ -18,6 +18,12 @@ pub fn main() anyerror!void {
|
||||
// var fba = std.heap.FixedBufferAllocator.init(&buffer);
|
||||
// const allocator = fba.allocator();
|
||||
|
||||
// Useage of app:
|
||||
// 1. create players
|
||||
// 2. set up new table
|
||||
// 3. mark points as game is being played
|
||||
// 4. rematch? (keep players)
|
||||
|
||||
try stdOut.writer().print(">", .{});
|
||||
while (!quit) {
|
||||
const input = (try nextLine(stdIn.reader(), &buffer)).?;
|
||||
@@ -40,7 +46,6 @@ fn nextLine(reader: anytype, buffer: []u8) !?[]const u8 {
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: Create command parser
|
||||
fn parser(query: []const u8) !void {
|
||||
const stdOut = io.getStdOut();
|
||||
if (mem.eql(u8, query, "quit")) {
|
||||
@@ -68,9 +73,3 @@ fn getInput() ![]const u8{
|
||||
const input = (try nextLine(stdIn.reader(), &buffer)).?;
|
||||
return input;
|
||||
}
|
||||
|
||||
//TODO: Create inital settings
|
||||
|
||||
test "basic test" {
|
||||
try std.testing.expectEqual(10, 3 + 7);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user