Fun Video Game
Jump to navigation
Jump to search
Fun Video Game is a simple program originating from a tweet by Jack Eisenmann in 2018. It plays an extremely fun video game in which the player must input integers starting from 0 and counting upwards (0, 1, 2, and so on). If the player fails to correctly input the next number in the sequence, the string "FAILURE" is printed and the game ends.
Implementations
Python
Here is the Python 2 implementation from the original tweet:
number = 0 while True: if int(raw_input()) != number: print "FAILURE" break number += 1
Here is a Python 3 implementation:
number = 0 while int(input()) == number: number += 1 print("FAILURE")
C
#include <stdio.h> typedef unsigned long ulong; int main(){ ulong number=0; ulong input=0; while(scanf("%lu",&input), number==input) { number++; } printf("FAILURE"); return 0; }
Befunge
v >0"ERULIAF">:#,_@ >0>:&\-| ^ +1<
BASE
ASSIGN num TO 0 ASSIGN i TO USER WHILE i IS num SUM num PLU 1 PRINT FAILURE
meow (tommyaweosme)
varia = 0 mew(pet==varia): varia = meow(varia+1) meow("FAILURE")
Scratch
Uyjhmn n
DECLARE THE NEW VARIABLE NUMBER DECLARE THE NEW VARIABLE ONE DECLARE THE NEW VARIABLE INPUT OPEN THE VARIABLE ONE ASSIGN 1 TO THE OPEN VARIABLE DEFINE THE NEW LABEL START OPEN THE VARIABLE INPUT GET INPUT AND STORE INTO OPEN VARIABLE AS A NUMBER OPEN THE VARIABLE NUMBER JUMP TO CORRECT IF NUMBER IS EQUAL TO INPUT JUMP TO WRONG IF ONE IS EQUAL TO ONE DEFINE THE NEW LABEL CORRECT ADD ONE TO THE OPEN VARIABLE JUMP TO START IF ONE IS EQUAL TO ONE DEFINE THE NEW LABEL WRONG PRINT THE CHARACTER WITH THE ASCII VALUE 70 PRINT THE CHARACTER WITH THE ASCII VALUE 65 PRINT THE CHARACTER WITH THE ASCII VALUE 73 PRINT THE CHARACTER WITH THE ASCII VALUE 76 PRINT THE CHARACTER WITH THE ASCII VALUE 85 PRINT THE CHARACTER WITH THE ASCII VALUE 82 PRINT THE CHARACTER WITH THE ASCII VALUE 69 END THIS PROGRAM
Momema
j 1 0 + *0 -1 j 0 j = + *0 *-8 j 1 -9 70 -9 65 -9 73 -9 76 -9 85 -9 82 -9 69
1+
11+1< (check|1## ". "/^"\</<\*1+^1+^#) (check) 11+""*"""**++; 11"+"*""**+; 11"+"""*+"**+; 11+""""*+"*+*; 11""++""*"*++; 11""++"*"*+; 11"+"*"""**++;
Rockstar
My expression is 0 My reality is 0 While my expression is my reality Listen to my expression if my expression is my reality Build my reality up Say "FAILURE"
akdrfsbathnede knem
##^-|^VI=$#^+|$> ##^+^V^V++#^+##^+^V*#^+^V+*^V^U ##^+V*^>V^<v#^+-^>>V^<<U >##^+^*^<+^V^U ##^+#^++^V^U ##^+^V^*#^+^V^+#^++^V^U ##^+#^+-^V^U >>##^+^V^*^+^U
External links
The original tweet from Jack Eisenmann, containing a Python 2 implementation