Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error : No such file or directory #50

Open
accforgithubtest opened this issue Jan 8, 2024 · 5 comments
Open

Error : No such file or directory #50

accforgithubtest opened this issue Jan 8, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@accforgithubtest
Copy link

Tried to use the docker image, and see this error in the logs.
Are any volume mappings necessary for this to work ?

Am I correct to assume that I will be able to play the game via browser if the container is up and running ?
I dont see a mention of any ports, so I assume its port 80 by default ?

Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
Error: Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }
Error: Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }
Error: Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }
Error: Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }
@accforgithubtest accforgithubtest added the bug Something isn't working label Jan 8, 2024
@thomas-mauran
Copy link
Owner

To play the game using the docker command you need to run the container using -it (interactive TTY) since the docker image only gives an entrypoint to the chess-tui binary, this is why you don't see any port number.
You can pull the image and directly run it using this command docker run --rm -it ghcr.io/thomas-mauran/chess-tui:main or build it locally and run it but don't forget -it

@accforgithubtest
Copy link
Author

Hi! thanks for your reply @thomas-mauran !

Any chances that this will be playable over a browser in the future ?
The scenario in my mind is to have a self hosted version of the game running a home server accessible over a browser.

@thomas-mauran
Copy link
Owner

Hi! thanks for your reply @thomas-mauran !

Any chances that this will be playable over a browser in the future ? The scenario in my mind is to have a self hosted version of the game running a home server accessible over a browser.

Mmmh currently the game is using the library ratatui which doesn't offer a web browser portage to my knowledge, meaning that we would need to rewrite the whole UI part of the game. This will unfortunately not be done since chess-tui is a TUI project (Terminal UI) but the idea of a central game server for 2 clients to connect is good and could be done !

@accforgithubtest
Copy link
Author

Thanks for the reply !
Makes sense that replacing a UI library central to the application is a lot of work.

Yes my thinking was that would be great to have 2 people play via a self hosted server.

@accforgithubtest
Copy link
Author

accforgithubtest commented Feb 6, 2024

Just came across this project that seems to enable browser access to ratatui.
[I am not a developer, so apologies if my understanding of what I read there is incorrect].

https://github.com/aschey/ratatui-wasm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants