r/learnrust • • 5d ago

New to programming, learning to code on my phone with Termux

I'm a beginner, learning coding newly, my first serious language is Rust. This is my GitHub link, there are some small projects here, I'll be glad to accept reviews.

https://github.com/MD-FAHAD25624

0 Upvotes

4 comments sorted by

1

u/Discordbothost 4d ago

I opened your tic-tac-toe main.rs. When stdin closes, read_line returns Ok(0), so read_number keeps asking for a number forever. Treat Ok(0) like q and return None. I'd give read_size the same exit path so it works at the first prompt too.

0

u/md_Fahad25624 4d ago

Thank you very much, I'll work on it. 

-4

u/OkBug7820 4d ago

your projects are screaming intermediate rather than beginner

-3

u/md_Fahad25624 4d ago

Really? 😅 Thanks for the review, you can check on the codes too, I'll love to see your review.