Added screenshots.

This commit is contained in:
retoor 2025-01-10 23:14:36 +01:00
parent c323ff5163
commit ede3382546
11 changed files with 10 additions and 2 deletions

View File

@ -18,6 +18,14 @@ Run this server and it will run multiple sudoku generators and keeps track of ma
### Screenshots ### Screenshots
Will come when I figured out how to use this project again. Will come when I figured out how to use this project again.
#### First version
![screenshot](images/sudoku1.png)
#### Second version
![screenshot](images/sudoku2.png)
![screenshot](images/sudoku3.png)
#### Last version including the web interface reachable on 9999.
![screenshot](images/sudoku4.png)
![screenshot](images/sudoku5.png)
## How to use ## How to use

BIN
a.out

Binary file not shown.

BIN
images/sudoku1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
images/sudoku2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
images/sudoku3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
images/sudoku4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

BIN
images/sudoku5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
solve

Binary file not shown.

BIN
sudoku

Binary file not shown.

Binary file not shown.

4
web.c
View File

@ -1,4 +1,4 @@
#include <rlib.h> #include "rlib.h"
#include <pthread.h> #include <pthread.h>
int request_handler(rhttp_request_t * r) { int request_handler(rhttp_request_t * r) {
@ -12,7 +12,7 @@ int request_handler(rhttp_request_t * r) {
void * serve_thread(void * arg){ void * serve_thread(void * arg){
int port = *(int*)arg; int port = *(int*)arg;
printf("Serving on port: %d\n", port); printf("Serving on port: %d\n", port);
rhttp_serve("0.0.0.0", port, 1024, 1, 1, request_handler); rhttp_serve("0.0.0.0", port, 1024, 1, 1, request_handler,NULL);
return NULL; return NULL;
} }