Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Help 

How will you approach this task ??

You are making a simple game with four buttons (by default) that turn on and off. At the start, they are all in the ‘on’ state. The goal is to press them in the right order to turn all buttons off; however, each button is associated with one other button (this is a one-way non-changing association). Whenever a button is pressed, it flips the state of itself and of its associated button. Each can be pressed in either state.

Requirements:
Use CSS to make the interface look decent
Make the button associations random each time
Add a congratulations screen when the user finishes
Make it able to expand to more buttons and/or more associations


thanks !!
You'll have to post the association between the buttons or and example of a correct association.
Hi!
i did a quick & dirty jsfiddle for you to show a possible way:
jsfiddle net/h2j9L95p/
As i said its dirty. Things can be done way better and even without jQuery. But this is your job now.

have fun

edit: cmon... can't post links until i spam more posts..
My suggestion: https://jsfiddle.net/orkatek/qs83dpsk/

This shows the logic but styling and expansion (almost done) is up to yourself.
I'd approach this task by getting my ass of Hackforums and starting doing my homework.
If you want some actual help either pay someone to get it done, or post what you've tried and what specific problems you're running into.
(Apr 5, 2017 07:44 AM)foobar123 Wrote:  Hi!
i did a quick & dirty jsfiddle for you to show a possible way:
jsfiddle net/h2j9L95p/
As i said its dirty. Things can be done way better and even without jQuery. But this is your job now.

have fun

edit: cmon... can't post links until i spam more posts..

Thanks man !! It's nice 🤝


(Apr 5, 2017 04:55 PM)Dialog Wrote:  I'd approach this task by getting my ass of Hackforums and starting doing my homework.
If you want some actual help either pay someone to get it done, or post what you've tried and what specific problems you're running into.

You are right , i got some pointers now . I will post my solution soon and next time i will try myself first !!😉
(Apr 5, 2017 10:09 PM)kakarot007 Wrote:  Thanks man !! It's nice 🤝
You are welcome. Glad i could help


Possibly Related Threads...
Thread / Author Replies Views Last Post
by clovaksSep 6, 2023 05:52 AM 7 319 Sep 6, 2023 05:52 AM
Last Post: BiNBo
by SIM-1947090Jan 31, 2017 01:43 PM 0 85 Jan 31, 2017 01:43 PM
Last Post: SIM-1947090
by GilesJun 30, 2016 04:18 AM 7 132 Jun 30, 2016 04:18 AM
Last Post: Giles