Skip to content

veecore/call-n-said

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฏ Bulls and Cows (Rust + egui)

A weekend project that turned into a proper little game. Classic Bulls and Cows (a.k.a. Mastermind with digits)โ€ฆ but with a bot that can play against you โ€” or help you cheat against the bot. ๐Ÿ˜


๐Ÿ“ธ Screenshots

  • Game board: Game screenshot

  • Bot duel: Bot vs Bot

  • Human against BOt: Human vs Bot

  • Bot assist: Bot assist


๐Ÿ•น๏ธ How to play

  • Secret password = 4 unique digits.

  • Each guess gets scored:

    • ๐ŸŽฏ = correct digit & correct place
    • ๐ŸŽช = correct digit, wrong place
  • First to crack the code wins!

You can play vs the bot, or let the bot โ€œassist modeโ€ you while you claim the glory.


๐Ÿค– How the bot works

The bot isnโ€™t super fancy.

  • It generates all 10P4 possibilities.
  • After each guess, it filters the list based on feedback.
  • Then it just picks the first valid candidate.

Thatโ€™s it. No deep math, no magic. Just pure Rusty persistence.

Still โ€” it usually wins in ~7 guesses. ๐Ÿ†


๐Ÿš€ Running

cargo run --release

Requires Rust 1.86+ (probably works with earlier).


๐Ÿ”ฎ Roadmap / Ideas

  • Smarter strategies (Knuthโ€™s 5-guess, anyone?)
  • Prettier UI (animations, scoreboard, etc)
  • Fix CPU hogging (egui re-renders every frame โ€” Iโ€™ll get to it ๐Ÿ˜…)

๐Ÿค Contribute

Open PRs, file issues, or just fork and hack. Half the fun is seeing how you would make the bot smarter.


๐Ÿ“ License

MIT โ€” have fun with it.

About

๐ŸŽฏ A Rust + egui implementation of the classic Bulls and Cows game. Play against the bot, let the bot assist you (cheater ๐Ÿ˜), or watch bots duel it out. Simple backtracking brain, lots of fun.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages