A narcissist program is simple. It is related to a quine.
If the input is equal to it's source code, it prints a truthy value, if not it prints a falsy one. That is it.
Rules:
It can't read it's own file.
This is code-golf, so the shortest answer wins.
An example would be:
Code:
somepro...
@CᴏɴᴏʀO'Bʀɪᴇɴ if you'd like to help with edge-case testing, in the C9, add a testcase in test.js and run node test.js, to test the test cases. If the results look really weird, then you've found a bug!
A narcissist program is simple. It is related to a quine.
If the input is equal to it's source code, it prints a truthy value, if not it prints a falsy one. That is it.
Rules:
It can't read it's own file.
This is code-golf, so the shortest answer wins.
Hash functions are not allowed. This ...
Zipdeck!
king-of-the-hill
A few years ago I invented a simple card game named "Zip Deck". It's not that much fun for humans, but should be perfect for bots. This contest will be run in Python 3.
Zip Deck rules:
There are N players, and a deck with N*4 cards. The deck is shuffled (Python's ...
KOTH - Colored circles
king-of-the-hill
This is something that was made for an AI competition that never happened, so I already have a program to run the AIs against each other. This is my first KOTH as well, so any advice for improvement is appreciated.
1 versus 1
n by n board (random size...
This question is specifically about a high school course, but it should be applicable to any online course in general.
I was taking a physics course online to skip it in school, those courses are really expensive, so I took the cheapest one that my school was allowing me to take, and it was unde...
Meme: Oy
Origin: rchern
Cultural Height: TBD
First Seen: MSO Chat, probably in The Tavern
Background: Not completely known. Some believe it is the Jewish / Yiddish phrase "Oy Vey". Others like Michael Myers believe "It's 'yo' backwards. [Because] everything is backwards in Missouri.". "Oy" mo...