snakey Posted January 27, 2008 Share Posted January 27, 2008 Ok i had an idea to have say weekly/monthly coding challenges that anyone could enter and are run by the community so here goes. OK the structure is simple: One person makes a challenge. Anyone who want to can complete the challenge. To enter you must post the source codes and a working exe. The person who made the challenge deciedes who win then the winner makes the next challenge. There are 3 different types of challenges Coolest app wins, First to complete, Shortest code wins. So i'll start the first challenge as an example: Guessing game! Language: C++ Description: Make a small game in which the aim is to create a number at random and the user trys to guess it. Program must have: A play again option. Time limit: 1 week. How to win: Coolest App Wins. Restrictions: None. The aim of these challenges are not to win anything but to learn and have fun so there it is so just post your code and i'll tell you who wins in a week then they can make the next challenge. Quote Link to comment Share on other sites More sharing options...
digip Posted January 27, 2008 Share Posted January 27, 2008 Ok i had an idea to have say weekly/monthly coding challenges that anyone could enter and are run by the community so here goes. OK the structure is simple: One person makes a challenge. Anyone who want to can complete the challenge. To enter you must post the source codes and a working exe. The person who made the challenge deciedes who win then the winner makes the next challenge. There are 3 different types of challenges Coolest app wins, First to complete, Shortest code wins. So i'll start the first challenge as an example: Guessing game! Language: C++ Description: Make a small game in which the aim is to create a number at random and the user trys to guess it. Program must have: A play again option. Time limit: 1 week. How to win: Coolest App Wins. The aim of these challenges are not to win anything but to learn and have fun so there it is so just post your code and i'll tell you who wins in a week then they can make the next challenge. Umm, I think this was already done in another thread. In fact, Klu even posted his Source Code to his Guessing game in the coding section. There is also another challenge in progress: http://forums.hak5.org/index.php/topic,8038.0.html Quote Link to comment Share on other sites More sharing options...
snakey Posted January 27, 2008 Author Share Posted January 27, 2008 That was on K0h forums where i started it but got banned for stuff i said to him on msn so i though i'd post it here and see what happened Quote Link to comment Share on other sites More sharing options...
Sparda Posted January 27, 2008 Share Posted January 27, 2008 That was on K0h forums where i started it but got banned for stuff i said to him on msn so i though i'd post it here and see what happened Getting banned from there is similar to street crime cultures view on electronic tagging. Except in this case, you usually don't do any thing wrong and the law is wrong. Quote Link to comment Share on other sites More sharing options...
VaKo Posted January 28, 2008 Share Posted January 28, 2008 How about tightening up the "win" conditions a little? I.e. Who can do it with the least amount of lines? Who can do it without using <function that was designed to do just this task>? Who can do it in the most creative way? Quote Link to comment Share on other sites More sharing options...
snakey Posted January 28, 2008 Author Share Posted January 28, 2008 shortest way is doing it i the least amount of lines but you can just put everything in one line so the seter of the challenge can decied whos is shortest without worry about having everything squashed up. most creative is the coolest way. i like the idea about not have certain functions i'll edit it now. Quote Link to comment Share on other sites More sharing options...
VaKo Posted January 28, 2008 Share Posted January 28, 2008 Just use char count instead of line count. Quote Link to comment Share on other sites More sharing options...
snakey Posted January 28, 2008 Author Share Posted January 28, 2008 Just use char count instead of line count. Good idea so a shortest code is the lowest number of characters in your code. Quote Link to comment Share on other sites More sharing options...
SomeoneE1se Posted January 28, 2008 Share Posted January 28, 2008 Just use char count instead of line count. Good idea so a shortest code is the lowest number of characters in your code. shortest amount of NON-white space code that should keep the code easily readable Quote Link to comment Share on other sites More sharing options...
snakey Posted February 1, 2008 Author Share Posted February 1, 2008 Only 2 days left guys get your entrys in soon. Quote Link to comment Share on other sites More sharing options...
sablefoxx Posted February 1, 2008 Share Posted February 1, 2008 Here is mine, not very good at C yet (taking classes for it though), so this code is prbly really slopy and could be cut down alot but it works :) /*  Name: randum  Copyright: Fuck That  Author: SableFoXx  Date: 01/02/08 12:30  Description: Guess the random number 1 to 10  Version: 1.0 (working) */ #include <stdio.h> #include <stdlib.h> #include <time.h> int main () {  int i, x, y; //int vairables  srand ( time(NULL) ); //time seed  i = rand() % 10 + 1; //make randum number   while(1)   {        printf ("Guess the number (1 to 10):");        scanf ("%d",&x);        if(x==i) break;        if (i<x) puts ("Guess lower");        else if (i>x) puts ("Guess higher");   }   while(1)   {     printf("+++OMGz You WiN+++nn 1. Play Againn 2. Exitn ");     scanf ("%d",&y);     if (y==1)      {         system("start .randum.exe"); //start over         return 0; //exit old window      }          else     return 0; //exit     } } Download compiled/source here>> http://www.mediafire.com/?flrwg1mtybu Quote Link to comment Share on other sites More sharing options...
snakey Posted February 3, 2008 Author Share Posted February 3, 2008 stablfoxx wins YAY! Post next challenge Quote Link to comment Share on other sites More sharing options...
digip Posted February 3, 2008 Share Posted February 3, 2008 stablfoxx wins YAY! Post next challenge Because he was the only one who posted any code??? Quote Link to comment Share on other sites More sharing options...
snakey Posted February 3, 2008 Author Share Posted February 3, 2008 but thats the beauty of it you only need one person to complete it to continue Quote Link to comment Share on other sites More sharing options...
sablefoxx Posted February 4, 2008 Share Posted February 4, 2008 ====================================== New Coding Challange 2/3/08 ====================================== Crackme ---------------------Language: AnyDescription: Make a crackme.exe! Must accept some kinda of input, like a password etc. Program must also tell user if the entered password is correct/incorrect. Then also show how you cracked the password (if you can, hehe).Time limit: 1 weekHow to win: Least Chars Quote Link to comment Share on other sites More sharing options...
snakey Posted February 4, 2008 Author Share Posted February 4, 2008 I made the challenge but im stuck on how to tell how you cracked it Quote Link to comment Share on other sites More sharing options...
sablefoxx Posted February 5, 2008 Share Posted February 5, 2008 Post the code, and we'll try to help you crack it. Quote Link to comment Share on other sites More sharing options...
snakey Posted February 6, 2008 Author Share Posted February 6, 2008 If i read the challenge right i might have done it properly. #include <iostream> using namespace std; string guess; string answer("hak"); int main(){ cout<<"Crack men"; cin>>guess; cin.ignore(); if (guess == answer){ Â Â Â Â Â cout<<"Correctn"; Â Â Â Â Â } else { Â Â Â Â cout<<"Wrong"; Â Â Â Â } Â Â Â Â cin.get(); Â Â Â Â } Cracked with ollydbg Quote Link to comment Share on other sites More sharing options...
jollyrancher82 Posted February 6, 2008 Share Posted February 6, 2008 If i read the challenge right i might have done it properly. #include <iostream> using namespace std; string guess; string answer("hak"); int main(){ cout<<"Crack men"; cin>>guess; cin.ignore(); if (guess == answer){ Â Â Â Â Â cout<<"Correctn"; Â Â Â Â Â } else { Â Â Â Â cout<<"Wrong"; Â Â Â Â } Â Â Â Â cin.get(); Â Â Â Â } Cracked with ollydbg Cracked with Notepad.exe, the string is stored in plain text in the executable. Quote Link to comment Share on other sites More sharing options...
sablefoxx Posted February 6, 2008 Share Posted February 6, 2008 If i read the challenge right i might have done it properly. #include <iostream> using namespace std; string guess; string answer("hak"); int main(){ cout<<"Crack men"; cin>>guess; cin.ignore(); if (guess == answer){ Â Â Â Â Â cout<<"Correctn"; Â Â Â Â Â } else { Â Â Â Â cout<<"Wrong"; Â Â Â Â } Â Â Â Â cin.get(); Â Â Â Â } Cracked with ollydbg Nice Bro, 188 Chrs (spaces dont count) Quote Link to comment Share on other sites More sharing options...
snakey Posted February 7, 2008 Author Share Posted February 7, 2008 olly was abit of overkill but i dont no how to rename exe's to notpad without getting errors :P Quote Link to comment Share on other sites More sharing options...
Garda Posted February 7, 2008 Share Posted February 7, 2008 I actually thought something like Robocode might be fun to do as a competition. http://robocode.sourceforge.net/ We could all make little robots in java and let them fight it out to find a winner. Basically you write an algorythm out in java that describes the behaviour of a robot that fights other robots. After a few rounds of shooting at each other you have a winner. Quote Link to comment Share on other sites More sharing options...
jollyrancher82 Posted February 7, 2008 Share Posted February 7, 2008 Core Wars is better, but more advance. Quote Link to comment Share on other sites More sharing options...
snakey Posted February 8, 2008 Author Share Posted February 8, 2008 Make it we could have 2 going. Quote Link to comment Share on other sites More sharing options...
SomeoneE1se Posted February 8, 2008 Share Posted February 8, 2008 correct me if i'm wrong but code wars is where you create 2 programs each designed to 'kill-9' the other Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.