Hello,

I have started learning Rust. I have only made a fibonaci series program so far but I would make more complex program as I progress in learning Rust :D

2 points

My first non-trivial program in Rust was a Markov chain. Right now I’m trying to build a REST API with Actix and a Mongo database. So far it has been an interesting experience.

permalink
report
reply
6 points

I had a pretty good time rewriting various coreutils in Rust. I liked it because the difficulty of doing so ranges from something as easy as the true command, where you simply exit with a success status, to more challenging stuff like writing a basic shell.

Granted, it’s not that complicated to write CLIs with simple inputs and outputs, so maybe it’s not valuable for others but it certainly helped me understand Rust better than before.

permalink
report
reply
1 point

I am also thinking about making an IRC bot in Rust but I don’t have enough experience to do so yet

permalink
report
parent
reply
8 points

make a game engine

/s

permalink
report
reply
6 points

When I’m curious about a language, I usually first build some implementation of a perceptron or basic neural network, as well as a (usually very bad) text editor.

I feel like once I have those behind me, I’ve got some fundamentals and can dive deeper into what makes the specific language actually special :)

permalink
report
reply
4 points

perhaps a simple turn based card game with the ability to add custom cards

permalink
report
reply
1 point
*

Single player blackjack against the dealer is a good choice.

The basic rules of the game are easy to implement so the payoff is quick and you can extend it later with additional complexity if you like.

  • Aces as 1 or 11
  • splitting doubles
  • Betting
  • Random card, single deck, multiple decks etc
  • Dealer logic as AI
  • Player AI with card counting
permalink
report
parent
reply

Rust Programming

!rust@lemmy.ml

Create post

Community stats

  • 231

    Monthly active users

  • 120

    Posts

  • 277

    Comments

Community moderators