User Tools

Site Tools


notes:discrete:fall2023:projects:ttb1

This is an old revision of the document!


TTB1

BITWISE LOGIC

BITWISE AND

Bitwise AND uses the “&” symbol. It checks if the two inputs are numbers and if so then it gives back a 1.

For example if we have an int set to 12 and an int set to 6 if we preform a bitwise and operation on them the result would be a 4.

12 6 6&12
1 0 0
1 1 1
0 1 0
0 0 0

BITWISE OR

Bitwise OR uses the “|” symbol. It checks if the either of the two inputs are not zero and gives a 1.

BITWISE XOR

Bitwise XOR uses the “^” symbol. It checks if the two inputs are the same and if they are it give a 1.

BITWISE NOT

Bitwise NOT uses the “~” symbol. It inverts all the bits in a single number.

POTENTIAL FEATURES

LARGER PADDLE

PADDLE MAGNET

BRICK HIT POINTS

INVINCIBLE BALL

notes/discrete/fall2023/projects/ttb1.1694880403.txt.gz · Last modified: 2023/09/16 16:06 by jwieland