Bulls and Cows in Rust + egui

I built a small weekend project in Rust with egui — the classic Bulls and Cows (Mastermind with digits).
You can:

  • Play against a bot
  • Use the bot in assist mode to “cheat” :sweat_smile:
  • Or just let bots duel it out

The bot isn’t fancy — it brute-filters all 10P4 permutations and usually cracks the code in ~7 guesses. Simple but surprisingly effective.

Screenshots:

Game screenshot
Bot vs Bot

Would love feedback on both the game and how I can make egui run a bit leaner (CPU usage is a bit high at the moment).

Repo link

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.