The Hacker Project - a free online game

April 19, 2024, 03:06:00 AM
Welcome, Guest. Please login or register.

Login with username, password and session length











"Don't be evil."
Pages: 1 ... 33 34 [35] 36 37 38
Print
Author Topic: Count to a thousand  (Read 221297 times)
ãłþħά-∆9
Hero Member
*****
Posts: 1235



View Profile
« Reply #510 on: November 23, 2009, 12:00:43 PM »

Logged

docslax
Full Member
***
Posts: 107



View Profile
« Reply #511 on: November 24, 2009, 01:41:54 PM »

The 512 St Clair streetcar route operates between St. Clair Station on the Yonge-University-Spadina Subway and the area of St. Clair Avenue West and Keele Street, generally in an east-west direction.  It also serves the St. Clair West Station on the Yonge-University-Spadina Subway.  St. Clair Station is an accessible subway station.
Logged

Derailing and trolling forum posts since Sept 2009!
bontrose
Hero Member
*****
Posts: 1597



View Profile
« Reply #512 on: November 24, 2009, 02:49:33 PM »

513
Logged

i win
you lose
get over it

NOW
ãłþħά-∆9
Hero Member
*****
Posts: 1235



View Profile
« Reply #513 on: November 24, 2009, 06:26:46 PM »


N=14+(250*2)
Logged

gs 059
Sr. Member
****
Posts: 357


View Profile
« Reply #514 on: November 24, 2009, 07:30:52 PM »


N=14+(250*2)

what are the parentheses for?

515...
Logged

Triadian
Select Member
Hero Member
*****
Posts: 546


Guilty as charged


View Profile Email
« Reply #515 on: November 24, 2009, 07:36:24 PM »



N=14+(250*2)
what are the parentheses for?

515...

516- the order of things must be done correctly otherwise 14+250*2 = 528 and thus becomes a fail
Logged
Exousia
Guest
« Reply #516 on: November 24, 2009, 11:42:59 PM »




N=14+(250*2)
what are the parentheses for?

515...

516- the order of things must be done correctly otherwise 14+250*2 = 528 and thus becomes a fail

However, we forget that algebraic order of operations specifies that we perform multiplication operations before addition operations, making the parenthesis redundant but still correct. This is unless we're using an older calculator commonly referred to as a "polish logic" calculator which performs operations in the order given, in which case we need only reverse the order to N=250*2+14 for it to come out correctly.

Either way is a correct expression in algebra, or in a scientific calculator, however, so it's all moot.

517
Logged
bontrose
Hero Member
*****
Posts: 1597



View Profile
« Reply #517 on: November 25, 2009, 09:04:46 AM »

lol
518
Logged

i win
you lose
get over it

NOW
ãłþħά-∆9
Hero Member
*****
Posts: 1235



View Profile
« Reply #518 on: November 26, 2009, 12:41:26 PM »




N=14+(250*2)
what are the parentheses for?

515...

516- the order of things must be done correctly otherwise 14+250*2 = 528 and thus becomes a fail

However, we forget that algebraic order of operations specifies that we perform multiplication operations before addition operations, making the parenthesis redundant but still correct. This is unless we're using an older calculator commonly referred to as a "polish logic" calculator which performs operations in the order given, in which case we need only reverse the order to N=250*2+14 for it to come out correctly.

Either way is a correct expression in algebra, or in a scientific calculator, however, so it's all moot.

517

Heh exotic reply
@name Counter
@inputs Post
@outputs
@persist LastNumber:integer

if(Post) {Number = LastNumber + 1} else {Number = LastNumber}

Gmod expression 2 <3
Logged

gs 059
Sr. Member
****
Posts: 357


View Profile
« Reply #519 on: November 26, 2009, 01:59:35 PM »

so if there is a post, than your number is the last persons number +1, but if there is no post, than where does last number come from? or did you set it to 1 when it was declared?

520 has a really bad bridge....
Logged

bontrose
Hero Member
*****
Posts: 1597



View Profile
« Reply #520 on: November 27, 2009, 12:08:35 PM »

521
Logged

i win
you lose
get over it

NOW
ãłþħά-∆9
Hero Member
*****
Posts: 1235



View Profile
« Reply #521 on: November 30, 2009, 04:53:06 AM »

so if there is a post, than your number is the last persons number +1, but if there is no post, than where does last number come from? or did you set it to 1 when it was declared?

520 has a really bad bridge....


if(Post) {Number = LastNumber + 1} else {Number = LastNumber} else{LastNumber=0}
And post is the input, like a button
Anyone who enjoys coding and building crap should definately look into getting gmod

522

Logged

gs 059
Sr. Member
****
Posts: 357


View Profile
« Reply #522 on: November 30, 2009, 05:00:41 AM »

I am sure you meant
if(Post) {Number = LastNumber + 1} else {Number = LastNumber} else{Number=0}
since your previous said that if all else fails set LastNumber = 0, but than Number is still = nothing....

523
Logged

Triadian
Select Member
Hero Member
*****
Posts: 546


Guilty as charged


View Profile Email
« Reply #523 on: November 30, 2009, 08:49:57 AM »

you guys need to edit instead of reply

525
« Last Edit: November 30, 2009, 01:52:43 PM by Triadian » Logged
ãłþħά-∆9
Hero Member
*****
Posts: 1235



View Profile
« Reply #524 on: November 30, 2009, 01:03:53 PM »

I am sure you meant
if(Post) {Number = LastNumber + 1} else {Number = LastNumber} else{Number=0}
since your previous said that if all else fails set LastNumber = 0, but than Number is still = nothing....

523


I did it so if Post isn't true (if the button isn't pressed or =0) the number stays the same as the last number, which is right, it doesnt make sense for it to be +1 else lastnumber else 0 because theres nothing for the second else to decide  21

In fact looking down it appears i completely screwed up my post to begin with actually D: the "else{LastNumber=0}" isnt meant to be there at all wtf

But i see what you're saying, because if Post isnt true it'd be like wtf and fail, so:

runOnTick(1)
if(Post) {Number = LastNumber + 1} elseif(!Post) {Number = LastNumber}
 
Which is actually the same and would also work, because its like, if post is true then add one, else dont and stay the same, whereas this method is like, if post is true add one, otherwise if it isnt true, stay the same




@Tri
But we're still playing and that'd just be confusing... also you missed 524 and 525  laugh
lol just looked down and noticed i double posted instead of editing, they should move that button further away!  14
It was early morning for me, to be fair.

I don't know what number to go for now its combo broken, i'll go for 525, as that's what it would be if triadian fixes his  5
Logged

Pages: 1 ... 33 34 [35] 36 37 38
Print
Jump to: