Author Topic: Grammer Tutorial  (Read 18643 times)

0 Members and 1 Guest are viewing this topic.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Tutorial
« Reply #15 on: April 05, 2012, 03:42:14 pm »
since juju's server works now, this is an alternate address:
http://www.yeong.57o9.org
Sig wipe!

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Tutorial
« Reply #16 on: April 06, 2012, 01:25:32 pm »
Chapter 4 added. I decided to separate Loops and Logic since the page was getting big X.x
Sig wipe!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Tutorial
« Reply #17 on: April 06, 2012, 02:42:08 pm »
Hmm, AND and OR (and even XOR) are math operations... So what they really do is perform Bit-Wise logic. For example, if you do "3 and 6", it will return 2. The reason is if you AND these two:
0000000000000011 (this is 3 in binary)
0000000000000110 (this is 6 in binary)
0000000000000010 (you get this which is 2)

The result has a 1 bit only if both bits from the inputs are 1. So, if you did this:
Code: [Select]
If A=3: and B=6
You would be doing this:
Code: [Select]
If (A=3) and (B=6)
However, doing this will result in 0 no matter what:
Code: [Select]
If A=6 and B=3
Lets say B=3 and A=6. The reason is that if you break it down:
A=6 and B=3
A=6 and 1
A=0
0

See the issue? 6 and 1 returns 0 :/

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Tutorial
« Reply #18 on: April 14, 2012, 03:50:44 pm »
Ok, xeda. I'll try to implement that.
Ch 5 coming out tomorrow. :D
Sig wipe!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Tutorial
« Reply #19 on: April 16, 2012, 10:33:40 am »
I still see:
Quote
Conditon1 AND Conditon2: Returns "true" only if two conditons are true.
Conditon1 OR Condition2 : Returns "true" as long as at least one of the conditions is true.
Those aren't correct D:

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Tutorial
« Reply #20 on: April 16, 2012, 05:10:27 pm »
Oh. I have it fixed. I just haven't uploaded yet. :P
I think I'll upload them all at once once I reach like ch.10.
Sig wipe!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Tutorial
« Reply #21 on: April 16, 2012, 08:58:03 pm »
Ah, okay XD Can't wait :D When I update the command list, I am probably going to link to your tutorial :)

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Tutorial
« Reply #22 on: April 16, 2012, 09:18:30 pm »
oh wait. I just correctly understood your bitwise logic. XP
Time to fix it again.
Also, Grammer does have XOR, right?
« Last Edit: April 16, 2012, 09:18:42 pm by TBO_Yeong »
Sig wipe!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Tutorial
« Reply #23 on: April 16, 2012, 09:31:06 pm »
Yes, it is the xor token :)

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Tutorial
« Reply #24 on: April 16, 2012, 09:37:58 pm »
now that means that I have to add XOR command.... XP
Sig wipe!