DEV Community

Cover image for I build tug of war: demo project ๐Ÿ˜‚
Puneet-Kumar2010
Puneet-Kumar2010

Posted on โ€ข Edited on

2 3 1 1 2

I build tug of war: demo project ๐Ÿ˜‚

๐Ÿง‘โ€๐Ÿ’ป Hey Developers! ๐Ÿ˜Ž

Hope you're all doing awesome! So, picture this: I was coding away like a pro today, and after some hardcore project grind, I hit that boredom wall. ๐Ÿ˜ด Naturally, I did what any sane developer would do โ€“ started making random games! ๐ŸŽฎ And voilร , I ended up with a hilarious little gem: Tug of War! ๏ฟฝ๏ฟฝp๐Ÿ’ช


๐ŸŽฎ Whatโ€™s the Game About?

This isn't just any tug of war โ€“ it's a 2-player showdown! ๐Ÿฅณ You and your opponent (or a clever bot ๐Ÿค–) go head-to-head in a space-key-mashing frenzy to pull the rope to your side. Don't hit that space bar fast enough? Guess what โ€“ your opponent's gotcha! ๐Ÿ˜‚


๐Ÿค” How to Play?

Waiting Room

  1. Enter the Waiting Room ๐Ÿ•’ When you join, you'll chill in a waiting room for 5 seconds. If no one else joins, no worries! A sneaky bot will hop in to challenge you. And trust me, this bot isnโ€™t some rookie โ€“ heโ€™s got moves! ๐Ÿ˜…

Image description

  1. The Showdown Begins! ๐Ÿงฎ

    Once the game starts, it's YOU vs. THEM (or the bot). Your job?

    Smash the space key as fast as your fingers can handle to pull that rope. Just keep going, and donโ€™t let them win! ๐Ÿ’ฅ

  2. And the Winner Isโ€ฆ ๐Ÿ†

    When the dust settles (or, you know, your keyboard survives the assault), the result pops up, declaring either Player 1 or Player 2 victorious! ๐ŸŽ‰


๐Ÿ›  Improvements & Feedback

Okay, I get it โ€“ the UI isn't exactly award-winning. ๐Ÿ˜… But hey, thatโ€™s where YOU come in!

If youโ€™ve got ideas to make this better or just wanna flex your development skills, head over to the repo: Open Repo and clone it for a pull request. ๐Ÿš€ Letโ€™s make this game the talk of the dev town!


๐Ÿ™ Acknowledgements

A huge shoutout to all contributors for their valuable time and effort in making this project even more amazing. Your support and creativity are deeply appreciated! Let's keep building awesome stuff together! ๐Ÿ’ปโœจ


Go on, give it a try and let me know what you think. And remember โ€“ mash that space key like a pro! ๐Ÿค“๐Ÿ”ฅ

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Sentry image

See why 4M developers consider Sentry, โ€œnot bad.โ€

Fixing code doesnโ€™t have to be the worst part of your day. Learn how Sentry can help.

Learn more

๐Ÿ‘‹ Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay