Reply to topic  [ 6 posts ] 
 random code learning progress 
Author Message
Level 7
Level 7
User avatar

Cash on hand:
615.29

Bank:
0.00
Posts: 797
Joined: Fri Mar 06, 2015 1:25 am
Location: louisiana
Group: Registered users
Country: United States (us)
Post random code learning progress
yep imma try to learn how to code and i made this thread to document my progress which will probably be little to none anyways...
first bit of progress using javascript is a html based dice roller which so far i haven't figured out how to allow changing the number of dice and what number of side they have but that'll have to wait for now anyways heres the roller https://www.dropbox.com/s/ryj9jislrpukl ... .html?dl=0

*EDIT* Version 1.02 is now live
changelog: added button

_________________
I WANT TO WATCH THE FUCKING WORLD BURN!!!!!!!!!!

_________________
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
2 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
2 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.


Tue Dec 20, 2016 5:44 am
Profile E-mail
Level 39
Level 39
User avatar

Cash on hand:
2,187.55

Bank:
5,250.50
Posts: 21063
Joined: Sat Feb 14, 2009 11:44 pm
Group: Sysop
Post Re: random code learning progress
Add a +1 to emulate true 6-sided dies. because there's no 'output zero' on 6-sided die.

_________________
Image
Yeap.

_________________
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
4 pcs.


Tue Dec 20, 2016 8:07 am
Profile E-mail WWW
Level 38
Level 38
User avatar

Cash on hand:
435.45

Bank:
2,750,364.30
Posts: 10364
Joined: Sun Oct 26, 2008 5:47 am
Group: Dev Team
Post Re: random code learning progress
yeah, instead of *7, change it to *6 + 1, and it will go between 1 and 6.

the reason it's *6 and not *5 is because random goes between 0 and 0.9999999999....
so random * 6 can never be 6.
so random * 6 is betwee 0 and 5.9999, (converting it to integers, it's between 0 and 5), and adding + 1 will make it go between 1 and 6

_________________
My Pixiv
Image
Spoiler: show
OLD VERSION, BITCHES!
Image


Tue Dec 20, 2016 10:40 pm
Profile E-mail
Level 7
Level 7
User avatar

Cash on hand:
615.29

Bank:
0.00
Posts: 797
Joined: Fri Mar 06, 2015 1:25 am
Location: louisiana
Group: Registered users
Country: United States (us)
Post Re: random code learning progress
i adjusted it accordingly

_________________
I WANT TO WATCH THE FUCKING WORLD BURN!!!!!!!!!!

_________________
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
2 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
2 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.


Tue Dec 20, 2016 11:42 pm
Profile E-mail
Level 7
Level 7
User avatar

Cash on hand:
615.29

Bank:
0.00
Posts: 797
Joined: Fri Mar 06, 2015 1:25 am
Location: louisiana
Group: Registered users
Country: United States (us)
Post Re: random code learning progress
new version uploaded

_________________
I WANT TO WATCH THE FUCKING WORLD BURN!!!!!!!!!!

_________________
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
2 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
2 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
1 pcs.


Sat Dec 24, 2016 10:05 am
Profile E-mail
Level 39
Level 39
User avatar

Cash on hand:
2,187.55

Bank:
5,250.50
Posts: 21063
Joined: Sat Feb 14, 2009 11:44 pm
Group: Sysop
Post Re: random code learning progress
BUTAN GET.

_________________
Image
Yeap.

_________________
Click the icon to see the image in fullscreen mode  
1 pcs.
Click the icon to see the image in fullscreen mode  
4 pcs.


Sat Dec 24, 2016 3:23 pm
Profile E-mail WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 
 

Similar topics

 
Hit the Konami code on buzzfeed.com
Forum: ./General Spam
Author: Pantsman
Replies: 5
[Suggestion] Random User Array of Avatars, Signatures, Etc?
Forum: ./Help & Suggestions
Author: RV-007
Replies: 3
Random Question
Forum: ./General Spam
Author: jakehead20
Replies: 13
Bumping topics from random pages
Forum: ./General Spam
Author: 「H A N Z O」
Replies: 2
Gravelaxes, some random shithole (Dwarf fortress Let's play)
Forum: Let's Play
Author: PuristMcBumass
Replies: 9
Top


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Mods Database :: Imprint :: Crawler Feeds :: Reset blocks
Designed by STSoftware for PTF.

Portal XL 5.0 ~ Premod 0.3 phpBB SEO