thomas-mauran / tic-tac-toe

Rust simple tic tac toe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect rendering of X and O

0xDEADC0DER opened this issue · comments

The hardcoded X and O ASCII arts don't render properly on terminals having large font size.

Yeah, having the same issue on chess-tui and to fix that you need to manualy zoom in or out of your terminal using ctrl + / - for the moment it is the only effective way to adjust the pieces size

I think using the Canvas widget might help.
The widget allows you to draw arbitrary shapes on the terminal.
Perfect for drawing diagonal lines and circles which are the required shapes for the game.
I am learning ratatui myself, maybe some time later I'll make a PR fixing this problem.

Same goes for chess-tui

Good idea, if you wanna make a pr go ahead !