2010
01.21
01.21
I was working on a puzzle game today and when checking legal moves, found that AS3 needs a logical XOR. So here it is.
package biz.hatu.utils {
public function xor(lhs:Boolean, rhs:Boolean):Boolean {
return !( lhs && rhs ) && ( lhs || rhs );
}
}
No Comment.
Add Your Comment