Lengkap

python script for my raspberry

I am looking for a raspberry script for running a small game for my daughter.

First I will try to describe the situation before describing the needed script.

I installed a console with five buttons. Each one can be lighted. The colours of these buttons are: red, green, blue, yellow and gold.

Also I installed three rings with two sensors each. The sensors should bessure when a ball hits a ring.

The script should do the following:

1st phase:

User should be asked how many player want to play. If a button is pressed, the light of the button should turn on. If it is pressed again, it must be turned of. When hitting the golden button, jump to phase 2. The colour and number of the buttons which are lighted at that moment will give the number and colours of the players.

2nd phase:

User should be asked how long a game should be. The buttons can be used as a selection. The coloured buttons are for 1, 3, 5 and 10 minutes. When the golden button is pressed, jump to phase 3.

3rd phase:

check the sensors. All the sensors, which are inactive should be turned off. Thereafter the game should start. for each ring there must be a random selector. the selection can be either one of the player- colours or it is "broken". The display must show which ring has which colour at the moment. Every 10 seconds this selector has to change this selection and show the result again on screen.

When a ring is hit, add 10 Points to the player of the according colour.

This goes on until 20 seconds before the selected end of the game. Then we need an additional randomizer. This one selects a number out of (number of players + 2). If the selected number is one of the players, turn on the light of the golden button and tell on screen which player should press it. It stays on for 3 seconds, then must be turned off again. wait for 2 seconds and start this randomizer again. If the randomizer selects a number which is NOT a player, then the button must stay off.

The game finishes when the golden button is pressed while the light is turned on. The player who was selected before for this golden button will get additional 150 points.

4th phase:

The game plays a small sound and tells the players who won. After that the player can choose to play again and the whole script would start again.

I tried to program this script by myself, but it was to slow and therefore did not work.

Kemahiran: Python, Kejuruteraan Perisian, Linux, Arduino, Raspberry Pi

Lihat lagi: raspberry pi run python script from terminal, run python script from php raspberry pi, auto run python script raspberry pi, raspberry pi run python script from command line, raspberry pi run python script on boot, make python script executable raspberry pi, raspberry pi run python script on startup, raspberry pi run python script from web, raspberry pi crontab python script, raspberry pi run python script as service, run python script raspberry pi ssh, how to run python script in raspberry pi, python script to find broken links, raspberry pi run python script remotely, raspberry pi check if python script is running, raspberry pi startup python script, run python script as service raspberry pi, raspberry pi run python script forever, python script for raspberry pi to connect wifi automatically, raspberry pi run python script on boot crontab

Tentang Majikan:
( 0 ulasan ) Germany

ID Projek: #28283961

Dianugerahkan kepada:

prakashanandan89

Hi, I am interested to script the game for your daughter. I have good experience developing GUI and logical scripts like yours using Python. Expecting your reply.

€112 EUR dalam 7 hari
(4 Ulasan)
2.9

8 pekerja bebas membida secara purata €162 untuk pekerjaan ini

letsstartcoding

yes i m expert with the python so i can provide u raspberry script and i got your task ready to satrt work from now

€200 EUR dalam 2 hari
(28 Ulasan)
5.6
mho582c9ce7b7cd0

I’m an experienced developer with a keen interest in the Raspberry Pi. I’ve worked on many Pi related projects using various inputs, outputs, boards and sensors. I would be very interested in working with you on your Lagi

€250 EUR dalam 10 hari
(12 Ulasan)
5.5
benliao

Hello I have read your job description carefully. Also, I have rich experience in python for RASP So I am interested in and I am confident in your project. I always provide perfect results to my clients as you can see Lagi

€140 EUR dalam 3 hari
(8 Ulasan)
4.4
(9 Ulasan)
4.4
rochaksharma7

hello sir.✋ I have just read your job description and your project is really interesting to me. The Items you raised are similar to what I have already done in practice and I think you can do it in a short time if you Lagi

€120 EUR dalam 7 hari
(24 Ulasan)
4.0
NehalSK

Hi, I have worked on various python scripts and have a lot of experience on working with a raspberry-pi. Your project seems do able i will optimize the code to work well on raspberry. Thanks

€120 EUR dalam 3 hari
(2 Ulasan)
0.8
alperblm

Hello. I have many experiences with linux systems and raspberry pi. I can help your project. Please contact with me for other details.

€200 EUR dalam 7 hari
(1 Ulasan)
0.6