• Write a Console Application One Line/Change/Addition at a Time
    24 replies, posted
Go here instead: [url]https://github.com/TeamEnternode/facepunchbuildsaconsoleapp[/url] Rules explained there.
program.h: [code] //This is simply a header file. You can declare functions, global vars, or classes here. //This file is currently empty. [/code] program.cpp: [code] //This is the main file. Declare the main function or define functions, global vars, or classes, or include standard library headers here. #include <iostream> //I know you're going to use it, just so nobody has to waste a turn #include "program.h" int main() { while(true){ std::cout<<"dicks! "; } return 0; } [/code]
Wouldn't it be easier to simply make a github repo and then just do small PRs? Would be easier to maintain and you can easily see changes.
program.cpp: [code]//This is the main file. Declare the main function or define functions, global vars, or classes, or include standard library headers here. #include <iostream> //I know you're going to use it, just so nobody has to waste a turn #include "program.h" int main() { while(true){ std::cout<<"dicks! "; break; } return 0; }[/code]
Oops [editline]14th September 2015[/editline] changed it
[QUOTE=cartman300;48678807]Wouldn't it be easier to simply make a github repo and then just do small PRs? Would be easier to maintain and you can easily see changes.[/QUOTE] I feel if I do that it ruins the point in it being a forum game.
program.h [code]int mystery (int(*a)(int(*)(int(*)()),int(*)(int(*)(int**))), int(*b)(int(*)(int(*)()),int*,int(*)(int(*)())));[/code] program.cpp [code]//This is the main file. Declare the main function or define functions, global vars, or classes, or include standard library headers here. #include <iostream> //I know you're going to use it, just so nobody has to waste a turn #include "program.h" int main() { while(true){ std::cout<<"dicks! "; break; } return 0; } int mystery (int(*a)(int(*)(int(*)()),int(*)(int(*)(int**))), int(*b)(int(*)(int(*)()),int*,int(*)(int(*)()))){return (int)((((int(*)(int(*)(int(*)()),int(*)(int(*)())))a)> ((int(*)(int(*)(int(*)()),int(*)(int(*)())))b))?((int(*)(int(*)(int(*)()),int(*)(int(*)())))a):((int(*)(int(*)(int(*)()),int(*)(int(*)())))b));??> [/code]
[QUOTE=NixNax123;48679028]program.h [code]int mystery (int(*a)(int(*)(int(*)()),int(*)(int(*)(int**))), int(*b)(int(*)(int(*)()),int*,int(*)(int(*)())));[/code] program.cpp [code]//This is the main file. Declare the main function or define functions, global vars, or classes, or include standard library headers here. #include <iostream> //I know you're going to use it, just so nobody has to waste a turn #include "program.h" int main() { while(true){ std::cout<<"dicks! "; break; } return 0; } int mystery (int(*a)(int(*)(int(*)()),int(*)(int(*)(int**))), int(*b)(int(*)(int(*)()),int*,int(*)(int(*)()))){return (int)((((int(*)(int(*)(int(*)()),int(*)(int(*)())))a)> ((int(*)(int(*)(int(*)()),int(*)(int(*)())))b))?((int(*)(int(*)(int(*)()),int(*)(int(*)())))a):((int(*)(int(*)(int(*)()),int(*)(int(*)())))b));??> [/code][/QUOTE] [quote]No obfuscation of any kind. We should be able to understand and make changes to the code easily. The more understandable the code, the more people can easily get involved.[/quote]
I am not running that
[QUOTE=/dev/sda1;48679048] d[/QUOTE] I'm just trying to have fun :(
program.cpp: [code]//This is the main file. Declare the main function or define functions, global vars, or classes, or include standard library headers here. #include <iostream> //I know you're going to use it, just so nobody has to waste a turn #include "program.h" #include <fstream> int main() { while(true){ std::cout<<"dicks! "; break; } return 0; }[/code] Rule on file io is that the files being used may be changed or created freely as long as the file is actually being used by the program. Alternatively you do not have to create the file and instead leave it up to the user.
This game sucks [editline]14th September 2015[/editline] [img_thumb]http://vignette2.wikia.nocookie.net/left4dead411/images/0/05/Nofunallowed.jpg/revision/latest?cb=20120913190352[/img_thumb] [highlight](User was banned for this post ("Reaction image" - Craptasket))[/highlight]
I kinda have to put the obfuscation rule there or else people would make the entire program into an illegible mess at the drawback of having too many rules. I'll definitely replace the rule if there's a way to keep it fun for everyone, including new programmers like me.
Making an entirely obfuscated program IS the fun part because you have no idea what if does
Ok I see your point, but I still think being safe to run should be enforcible somehow...
Okay, this isn't working for obvious reasons. How about we do something similar but with GitHub like the wonderful cartman suggested: [url]https://github.com/TeamEnternode/facepunchbuildsaconsoleapp[/url] I'm still kinda setting this up and also figuring out how GitHub works, but I'm sure I'll get it by time this gets any attention. I've heavily revoked the rules except for the nessesary few so CLUSTERFUCK AWAY GENTLEMEN
What platform are we targeting? Windows or linux? In either case it would be nice to create a project solution or a makefile so it's easier to compile.
It's not hard to compile 1 .cpp file. makefile not really needed [editline]14th September 2015[/editline] g++ *.cpp -o program (.exe optional)
[QUOTE=proboardslol;48684672]It's not hard to compile 1 .cpp file. makefile not really needed [editline]14th September 2015[/editline] g++ *.cpp -o program (.exe optional)[/QUOTE] You are assuming somebody with a windows installation has g++ installed.
:snip:
[QUOTE=cartman300;48684685]You are assuming somebody with a windows installation has g++ installed.[/QUOTE] Not like a makefile would help them there.
I can't tell weather or not I set this up correctly, if you guys can't pull let me know what I fucked up and I'll fix it asap.
Sorry, you need to Log In to post a reply to this thread.