ref: 61529ef0b56da740258bba1e2b7025501c9f7d7d
parent: bddab37cd3097c40fe14090fe880b9131dc3bd31
author: mkf <mkf@cloud9p.org>
date: Wed Jun 5 16:05:22 EDT 2024
gui9: add nick and side
--- a/gui9.c
+++ b/gui9.c
@@ -281,11 +281,13 @@
void
main(int argc, char **argv)
{
+ char *side;
Mouse m;
Event ev;
Netmsg *msg;
int e, mousedown=0;
+ pnick = getenv("user");
/* todo, add flags for human playing */
ARGBEGIN{
case 'D':
@@ -298,11 +300,18 @@
case 'g':
ptype[1] = Computer;
break;
+ case 's':
+ side = EARGF(usage());
+ pside = atoi(side);
+ break;
case 'n':
ptype[0] = Net;
ptype[1] = Net;
networked = 1;
server = EARGF(usage());
+ break;
+ case 'N':
+ pnick = EARGF(usage());
break;
default:
usage();