How do i code a truth or dare game? Please help!!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do i code a truth or dare game? Please help!!!

I want to code a truth or dare game, but have difficulties in writing the code line that will pick user rules and save them into the game and now generate them randomly upon a tap on truth and dare button respectively.

4th May 2017, 5:46 PM
Peter Claver
Peter Claver - avatar
7 Answers
+ 1
and some php as well
4th May 2017, 6:30 PM
Peter Claver
Peter Claver - avatar
0
I have learnt some basics in java and javascript
4th May 2017, 6:29 PM
Peter Claver
Peter Claver - avatar
0
is this *** new Array(); *** an array please i tried running the code but i had a blank output
4th May 2017, 6:52 PM
Peter Claver
Peter Claver - avatar
0
i understand this ***Get Stuff from an Array: array_name[x] NOTE: x should be a number, the index of the array the first value starts at 0 the second value is 1.. etc..*** but i dont know why the code isnt running
4th May 2017, 7:01 PM
Peter Claver
Peter Claver - avatar
0
it worked!!!! Thanks
4th May 2017, 7:06 PM
Peter Claver
Peter Claver - avatar
0
How about if i want to edit the rules from the game and not the code line and perhaps add more?
4th May 2017, 7:07 PM
Peter Claver
Peter Claver - avatar
0
Thanks so much!! I appreciate you for your marvelous work done (a smile on my face)
4th May 2017, 7:21 PM
Peter Claver
Peter Claver - avatar