XOR: Kő, papír, olló bináris változata

[code]
xor(6) xor(6)

NAME
xor - binary hand game for programmers

DESCRIPTION
The game is played between two players, Player 0 and Player 1. Both players say "Oh, One, One-oh,
Xor!". As the word "Xor" is said, the two players quickly and simultaneously thrust a fist into the
center, extending a thumb finger, or not, indicating zero or one. The logical operation exclusive OR of
displayed binary numbers decides the winner: player 0 wins if the same numbers are shown, player 1 wins
otherwise.

:) :(
,--.____ ____.--, ,--.____ ____.--,
----" _, \___) (___/ ,_ "---- case A ----" _, \___) (___/ ,_ "----
/ _/____) OH! (____\_ \ ,- - - - - -> / _/____) (____\_ \
\//(____) (____)\\/ : \//(____) (____)\\/
----\ (__) (__) /---- : ----\ (__) (__) /----
`-----" "-----' : `-----" "-----'
_||_ :
_ \ / _ : :( :)
//\ \/ /\\ : ,--.____ _________.--,
/ / \ \ : case B ----" _, \___) (________/ ,_ "----
/ (____ ____) \ +- - - - - -> / _/____) (____\_ \
----" ,(___) (___), "---- : \//(____) (____)\\/
,'(____) ONE! (____)', : ----\ (__) (__) /----
(____) (____) : `-----" "-----'
----\ (__) (__) /---- :
`-----" "-----' : :( :)
_||_ : ,--._________ ____.--,
\ / : case C ----" _, \________) (___/ ,_ "----
\/ +- - - - - -> / _/____) (____\_ \
,--._________ _________.--, : \//(____) (____)\\/
----" _, \________) (________/ ,_ "---- : ----\ (__) (__) /----
/ _/____) (____\_ \ : `-----" "-----'
\//(____) (____)\\/ :
----\ (__) ONE-OH! (__) /---- : :) :(
`-----" "-----' : ,--._________ _________.--,
_||_ : case D ----" _, \________) (________/ ,_ "----
\ / +- - - - - -> / _/____) (____\_ \
\/ : \//(____) (____)\\/
: ----\ (__) (__) /----
XOR! - - - - - - - - - - - -' `-----" "-----'

[/code]

Hozzászólások