diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-05-27 17:42:51 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-05-27 17:42:51 +0530 |
| commit | 58b2c8b6e2041e63c46b579eccc141d21801e985 (patch) | |
| tree | 8faa61241e702e3c368e9ddf3f41f3a96f80df5d /src/main.c | |
| parent | 49cc88def2f9edea59e79ca37f41400ad870579e (diff) | |
main.c message reached JS
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -13,13 +13,27 @@ int main(int argc, char** argv) { return 0; } -#include "ipc.h" +#include "ipc.c" void comms_main() { mqd_t tx = mq_open("/engine_to_server", O_WRONLY); mqd_t rx = mq_open("/server_to_engine", O_RDONLY); - char msg[] = "hello"; - mq_send(tx, msg, sizeof(msg), 0); + send_queue(tx, "hello"); + send_queue(tx, "hello2"); + // send_queue(tx, "hello"); + + // moves_t moves = moves_init(); + // position_t position = position_starting(); + // // get_queen_moves(&moves, position); + // + // bitboard_t b = 0; + // + // for (int i = 0; i < moves.length; i++) { + // b |= (bitboard_t)1 << moves.moves[i].to; + // printf("%d %d | ", (moves.moves[i].from), (moves.moves[i].to)); + // } + // + // print_bitboard(b); } int direct_run() { |
