Bulls and Cows in Rust + egui

โš“ Rust    ๐Ÿ“… 2025-09-09    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 9      

surdeus

Warning

This post was published 65 days ago. The information described in this article may have changed.

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 post - 1 participant

Read full topic

๐Ÿท๏ธ Rust_feed