๐ŸŽฏ I built Bulls & Cows inside WhatsApp using Rust + whatsapp-business-rs

โš“ Rust    ๐Ÿ“… 2025-10-21    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 5      

surdeus

Hey folks! :waving_hand:

I wanted to share a small but fun side project I recently finished โ€” a Bulls & Cows game that runs entirely on WhatsApp, powered by my Rust crate whatsapp-business-rs
.

The idea came from wanting to test the interactivity and message flow of the crate in a real-world setting. So instead of another โ€œsend message / get replyโ€ demo, I thought โ€” why not make something playful?

Using whatsapp-business-rs, I wired up:

Message handling for player guesses :brain:

Dynamic responses with hints (Bulls :ox: = correct digit & position, Cows :cow: = correct digit, wrong position)

A simple game state tracker per user (stored in memory for now)

A few emojis and delays to make it feel conversational :grinning_face_with_smiling_eyes:

Hereโ€™s what a game session looks like :down_arrow:

1

5

It was surprisingly fun to build and a great way to stress-test interactive message logic, buttons, and delivery events.

If youโ€™re into Rust, WhatsApp bots, or just want to see Rust do something a bit unexpected, check out the repo here:
:backhand_index_pointing_right: GitHub - veecore/whatsapp-business-rs: Rust SDK for the WhatsApp Business API โ€” bulk messaging, batching, and multi-tenant support.

Happy to answer questions about the crate, game flow, or how the WhatsApp Business API fits in.

1 post - 1 participant

Read full topic

๐Ÿท๏ธ Rust_feed