r/reactjs • • Nov 22 '21

Show /r/reactjs I've created CLI minesweeper game using ReactJS and ink 💣

579 Upvotes

24 comments sorted by

View all comments

2

u/Soft-Celebration3369 Nov 22 '21

Nice! Haven't played for the longest time. Cleared the intermediate mode. The number isn't aligned to the center of the cell so it makes it a little hard to play and read

4

u/nordvin Nov 22 '21 edited Nov 22 '21

Glad you liked it!

The number isn't aligned to the center

Yeah, that's, sadly, due to renderer limitations. Each cell is 2 symbols, so I either can place a number left or right. Emoji is 2 symbol width, so they're centered. I did think about replacing numbers with 1️⃣2️⃣ etc, but will it be playable without colors?