commit c1df2b6211e4854c275bda2cb606926fa325c134
parent 9a3daf51ba202dbd1fbf06307bc92aa8b3184454
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date: Tue, 25 Mar 2025 12:54:08 -0500
Update README.md
Diffstat:
2 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
@@ -18,18 +18,29 @@ sudo make install
## Usage
-First, run the server
+First, download the quotes file from monkeytype.
```sh
-./ttsrv <port> <json>
+curl https://monkeytype.com/quotes/english.json -o quotes_english.json
```
-The, run the client:
+Then, choose a port number (from 1024 to 65535) and run the server:
+
+```sh
+ttsrv <port> quotes_english.json
+```
+
+In another terminal, run the client with the server's host and port. If you are
+running the server and client on the same machine, you can use `127.0.0.1` as
+the host.
```sh
./ttcli <host> <port>
```
+In the client, press `Enter` to start the game.
+
## License
-This project is licensed under the MIT License. See the LICENSE file for details.
+This project is licensed under the MIT License. See the LICENSE file for
+details.
diff --git a/ttcli.c b/ttcli.c
@@ -12,7 +12,7 @@
#define AHEAD_SHOW 4
#define AHEAD_HIDE 2
-#define WAIT_TIME 1500000000
+#define WAIT_TIME 1000000000
#define MAX(a, b) ((a) < (b) ? (b) : (a))
#define MIN(a, b) ((a) < (b) ? (a) : (b))