#two-player subghz game (rock-paper-scissors)

21 messages · Page 1 of 1 (latest)

outer field
#

As part of my [Flipper Zero Tutorials](#1070543191880781885 message) I am creating a rock-paper-scissors game.

The idea I had was...

  • beacon that a game is available.
  • display the available games.
  • join a game.
  • play a game.
    1. Both players press OK button for saying "1".
    2. Both players press OK button for saying "2".
    3. Both player either press UP for Rock, RIGHT for Paper, DOWN for Scissors.
    4. Display win/loss/tie message. (Rock beats [smashes] scissors, Paper beats [covers] rock, Scissors beats [cuts] paper)
  • game is social, so when you play, you exchange a small message (like flipper name, discord handle, YouTube name, etc.)
  • view your contact list of people you have played with (which will be saved on the SD card.)

In the future, I will continue to expand the game/tutorial. One idea is adding "Spock" and "Lizard" (versioning the app.) Another idea is to add other ways to communicate (GPIO/ Infrared/1-wire/etc.) Third idea is adding hardware for input and output instead of using built-in screen/keyboard.

strange geode
#

sounds cool

grand robin
#

How can you prevent a 3rd player using same package and frequency from acting like player 1 or 2?

sacred tide
# outer field As part of my [Flipper Zero Tutorials](https://discord.com/channels/740930220399...

Yyyyeeeessss. Lol. Social, interactive, non destructive, and could also maybe give a few points of exp per game played up to a certain number of exp per day...?? I like the idea if you couldn't tell. Does then the same idea for a game of sayyyyy Russian Roulette also apply to the base mechanics? It would be funny if you coded a little gun to lift up and Sim a trigger pull, either you get a bang animation or nothing and the gun sets back down. I love this community.

sacred tide
# sacred tide Yyyyeeeessss. Lol. Social, interactive, non destructive, and could also maybe gi...

Geez doesn't that kind of also open the door to make all kinds of 2 player games available like this? (two unique players over subGhz) Chess, tic tac toe, checkers, connect 4, othello?? Lol just venting, sorry. And then what about a "button smashing" game...Stay with me now you flash an on your mark get set go animation, players button smash u,d,l,or r for a period of time. Computers calculate results, most presses wins. Apply this method of game play to arm wrestling, tug of war, sprinting (running), height (grow a tower), and other games of those types? And sorry for my ignorance on this, I just like getting my ideas out, even if they may be bad.

outer field
#

A text, non-fun proof-of-concept, version is pushed to GitHub. Hopefully, I'll release an improved version in the next week or two, that is more fun to play.

https://github.com/jamisonderek/flipper-zero-tutorials/tree/main/subghz/plugins/rock_paper_scissors

GitHub

I will use this repository for my Flipper Zero projects. The various README.md files should describe how to use the files on your Flipper Zero. - flipper-zero-tutorials/subghz/plugins/rock_paper_s...

outer field
# grand robin How can you prevent a 3rd player using same package and frequency from acting li...

Great question! Right now, what I have is a game number; so that multiple people in the same room can play different games. But I like the idea of adding a feature so that we try to secure the communication -- I guess I need to go back and read about "Alice" and "Bob" communicating without "Mallory" messing it all up. https://en.wikipedia.org/wiki/Alice_and_Bob

I don't want to complicate the game too much yet, since I want to turn it into a tutorial for other game makers. (But I think security features would make awesome tutorials as well.)

Alice and Bob are fictional characters commonly used as placeholders in discussions about cryptographic systems and protocols, and in other science and engineering literature where there are several participants in a thought experiment. The Alice and Bob characters were invented by Ron Rivest, Adi Shamir, and Leonard Adleman in their 1978 paper ...

outer field
# sacred tide Geez doesn't that kind of also open the door to make all kinds of 2 player games...

I love your ideas here! Once I make finish the game and make the tutorial, hopefully you or someone else in the community can create it! I'm also going to do some more GPIO tutorials, so instead of only clicking the buttons, we could make your games use different sensors (like accelerometer, sound detection, fart detection, etc.)

Talking about button smashing... 6-years ago I made this https://youtu.be/Ji2-2ehLCOQ and I was thinking of redoing the design to use the Flipper Zero. 🙂

I bought a bunch of sensors when I worked on https://youtu.be/7y_7iYYV7Ic hackathon project.

SwitchScience SKU#2455 is a relay touch board with driver. The driver needs to be supplied 5 volts. When the enable pin is high it acts as if a finger is touching the screen, when the pin is low the finger is removed. Using an Arduino we pulse the touch board at the desired rate (using Serial port in this proof of concept). On my phone it see...

▶ Play video

This is a demo for the https://fordsmart.devpost.com/ Ford Smart Vehicle Connectivity challenge. "low BAC" (Blood Alcohol Content) is an IoT device that replaces your keys by remotely unlocking & starting your car (as long as your BAC is low enough.)

At 0:08 Thanks to my wife Karol for helping with the video.
At 0:21 The sensor is the MQ-3 Alc...

▶ Play video
outer field
sacred tide
outer field
#

Update #2. I've got some basic graphics. The code needs some serious refactoring, but hopefully the game is playable on two Flipper Zeros now. https://youtu.be/IzfrcORHvjA

Update #2 on current progress of Rock, Paper, Scissors game for Flipper Zero. Two player game using subghz and you can exchange social info (like handler).

Please join the conversation at...
#1073593151337541673 message
and provide your ideas on improvements in game play, similar games...

▶ Play video
quaint vault
#

This an AMAZING CONCEPT but I’m not super tech inclined, can you also release a video/ written tutorial on how to get this in my flipper?

#

ALSO I have another game idea that I posted in other parts of this discord and you seem like you’d be able to put this into light,….. lazer tag would be incredibly fun to play with the flipper zero using the infrared sensors, hopefully this will spark you imagination

outer field
#

@quaint vault Do you have two Flippers? Which firmware are you currently using? What version (Settings, About, Next, Next, Next... until the last screen)

quaint vault
#

I’m running a different firmware that I can’t mention on here

outer field
#

My firmware is in "C:\Repo\Flipper\firmware" and the tutorials are in "C:\repo\flipper\flipper-zero-tutorials". If your files are in different folders, then you need to adjust all of the paths in my directions accordingly. On Windows I do the following steps...

C:\repo\flipper\firmware>cd applications\plugins

C:\repo\flipper\firmware\applications\plugins>mklink /D rock_paper_scissors \repo\flipper\flipper-zero-tutorials\subghz\plugins\rock_paper_scissors

C:\repo\flipper\firmware\applications\plugins>cd ..\..

C:\repo\flipper\firmware>fbt updater_package

C:\repo\flipper\firmware>cd dist\f7-c

C:\repo\flipper\firmware\dist\f7-c>cd f7-update (tab)

At that point you can copy all files into an "install" folder on your SD card & then run "Install" on your Flipper; or you can open the resources.tar file and extract the FAP file from the apps\games folder.

outer field
#

The first version of the game should be available tomorrow. The code needs some major love, but I'm happy with the protocol & file formats. If you want to totally GEEK OUT, you can see the messages in "subghz chat" and type your moves in the CLI. I'll release a video of the game tomorrow.

outer field
pine terrace
#

this is so cool

quaint scroll
#

How close do you have to be in order to play?