Jump to content

Coding challenge


snakey
 Share

Recommended Posts

---NEW CHALLENGE---

Feb. 11, 2008

Language: any

Description: Create a mini-downloader. Must be able to download files from the internet. Size of file doesn't matter just the quality. Optional to include a GUI, extra points if you do.

Must Have: An area to input the URL, a way to submit or cancel, and a load-bar (or a way to see the downloads progress).

Time limit: 1 1/2 - 2 weeks

To win: Download successfully, looks good. Also try to make it as short as possible.

Link to comment
Share on other sites

  • Replies 237
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

wow, i havent been on in a while, but seriously we need a new challenge, and i dont think anyone wants to do that challenge i made in feb, so someone think of a good one, but make it more simple so more people can do it.

Here's another idea: how about you make something a bit more sophisticated? Creating yet another wget clone doesn't motivate anyone. There's nothing as "quality" in downloading, either you get the bits right, or you don't.

If you want to motivate people, get them to do something that will challenge their intellect. Not just send an HTTP request.

Link to comment
Share on other sites

Um... I can think of a challenge give me a day i make one

Edit:

Coding Challenge

So I was think try to make a brute forcer for htaccess. You need a word list, I will make the word list and fake htaccess page.

Time: 3 days

Example:

#########

#wordlist Ex.#

#########

lol:haha

lol:password

hak:you

http://lol:password@lol-a-website.com/

P.S. If you can get it use proxys you are 1337

P.S.S. sorry if you don't understand what I am saying

Link to comment
Share on other sites

  • 2 weeks later...

alright how about this ...a program that monitors TCP/UDP on a specific port

..idk i guess like a Windows Port Watcher

it can be simple like when a port is being accessed tell from where

i encourage C++ but if you can manage it anything else..go for it

Link to comment
Share on other sites

  • 2 weeks later...

so im guessing no one is doing that one, well anyways we need a new challenge i guess someone else should make a new challenge, keep it interesting and simple, so more people can manage it. and remember make it interesting. im not coming up with one cause i can think of one and i want to be able to do the challenge, and me not come up with the challenge. ok well if anyone has any good ideas i really would like it, and i think others would to, if i could get a small challenge to help me practice more.

Link to comment
Share on other sites

I thought olly only decompiled code to assembly. It can decompile to C++? PLEASE Let me know how or PM me link to a tutorial. thanks

No olly doesn't "decompile"... it disassembles! Its a disassembler/debugger. It's impossible to go from a compiled executable back to the source code of which it was compiled in...

If it was coded in pure assembly though to begin with, then looking at it in olly will be like looking at the source code :P

Link to comment
Share on other sites

I thought olly only decompiled code to assembly. It can decompile to C++? PLEASE Let me know how or PM me link to a tutorial. thanks

Dunno if that was sarcasm or not... So I will answer as if it isn't.

Ollydbg cannot do that.

IDA on the other hand can generate pseudo C with a plugin.

Link to comment
Share on other sites

how about this:

Duration: 7days

Language: any

Challenge: make a txt adventure. a fairly short one. but the more convoluted your method of creating this the better. i/e if the code is complicated but the game only has 2 moves. long code short game. but no comment spam to make the code longer.

Winner: the one who's code is extremely convoluted and full of pointless redundancy yet it is glitch free and is a complete text adventure.

its simple enough for anyone to enter (all you need to know about a language is taking input, printing to screen, if/then, and goto) but can provide a challenge to someone who really tries

Link to comment
Share on other sites

Corny as and so lame wrote it in 5 minutes :P

dont flame just do better.

#include<iostream>

using namespace std;

int WhatToHack;
int Option;

int main(){
Start:
cout<<"Welcome to Snakeys text adventure :)\n";
cout<<"please press any key to start your journey\n";
cin.get();
system("cls");
cout<<"Hello you are 'Snakey' elite hacker and friend of all\n";
cout<<"What would you like to do?\n";
cout<<"1. Hack the gibson\n";
cout<<"2. Hack NASA\n";
cin>>WhatToHack;
cin.ignore();
system("cls");
if (WhatToHack == 1){
    cout<<"You have chosen to hack the gibson.";
}
else if (WhatToHack == 2){
    cout<<"You have chosen to hack NASA.";
}
cout<<" Prepare your wordlists and dial-up connection\n";
cout<<"Press enter to start hacking\n";
cin.get();
system("cls");
cout<<"Oh no, a firewall\n";
cout<<"What to do?\n";
cout<<"1. Disable firewall\n";
cout<<"2. Take a different route\n";
cin>>Option;
cin.ignore();
if (Option == 1){
    cout<<"You have succesfully hacked the server yipee\n";
}
else if (Option == 2){
    cout<<"You fail hard!\n";
}
cin.get();
system("cls");
goto Start;
}

Link to comment
Share on other sites

Corny as and so lame wrote it in 5 minutes :P

dont flame just do better.

#include<iostream>

using namespace std;

int WhatToHack;
int Option;

int main(){
Start:
cout<<"Welcome to Snakeys text adventure :)\n";
cout<<"please press any key to start your journey\n";
cin.get();
system("cls");
cout<<"Hello you are 'Snakey' elite hacker and friend of all\n";
cout<<"What would you like to do?\n";
cout<<"1. Hack the gibson\n";
cout<<"2. Hack NASA\n";
cin>>WhatToHack;
cin.ignore();
system("cls");
if (WhatToHack == 1){
    cout<<"You have chosen to hack the gibson.";
}
else if (WhatToHack == 2){
    cout<<"You have chosen to hack NASA.";
}
cout<<" Prepare your wordlists and dial-up connection\n";
cout<<"Press enter to start hacking\n";
cin.get();
system("cls");
cout<<"Oh no, a firewall\n";
cout<<"What to do?\n";
cout<<"1. Disable firewall\n";
cout<<"2. Take a different route\n";
cin>>Option;
cin.ignore();
if (Option == 1){
    cout<<"You have succesfully hacked the server yipee\n";
}
else if (Option == 2){
    cout<<"You fail hard!\n";
}
cin.get();
system("cls");
goto Start;
}

lol :P i believe i could use blitz basic and make my code much more pointless lol

good work!

Link to comment
Share on other sites

Ok, well this is my text game. What you have to do is choose a path, if you are correct then you go to the next path, once you get to the end (if you can get to the end) you win. Enjoy.

Link to jar file: [link]

//
//  KazesTextGame.java
//  KazesTextGame
//
//  Created by Kaz on 10/29/08.
//  Copyright (c) 2008 __k4z0.com__. All rights reserved.
//
import java.util.*;

public class KazesTextGame {
    public static void main(String[] args){
        // Vars
        int guess;
        int paths =  0;
        Random gen = new Random();
        String go;
        String option;
        
        System.out.println("******************************\n" +
                           "* Welcome to Kazes pathways. *\n" +
                           "******************************\n");
        
        // Play input        
        System.out.println("Do you want to play? Y or N");
        Scanner inGo = new Scanner(System.in);
        go = inGo.next();
        
        // Yes to play
        if(go.equalsIgnoreCase("Y")){
           System.out.println("******************************\n" +
                                "Ok, so first to get you started. \n" +
                                "Well, here you will have to choose carefully. \n" +
                                "If you choose wrong, well it wont be pretty. \n" +
                                "There are two paths infront of you, \n" +
                                "you much choose wisely, \n" +
                                "one will lead on and continue to the end, \n" +
                                "and the other to doom.");
            while(paths < 4){
                // left or right input
                System.out.println("******************************\n" +
                                   "Choose your path. Left (L) or Right (R)");
                Scanner leftRight = new Scanner(System.in);
                option = leftRight.next();
                
                // chooses right
                if(option.equalsIgnoreCase("R")){
                    guess = gen.nextInt(2);
                    if(guess == 0){
                        System.out.println("******************************\n" +
                                           "Correct, continue forward");
                        paths++;
                    } else if(guess == 1){
                        System.out.println("******************************\n" +
                                           "Worng, you fail");
                        break;
                    }
                // chooses left
                } else if(option.equalsIgnoreCase("L")){
                    guess = gen.nextInt(2);
                    if(guess == 0){
                        System.out.println("******************************\n" +
                                           "Correct, continue forward");
                        paths++;
                    } else if(guess == 1){
                        System.out.println("******************************\n" +
                                           "Worng, you fail");
                        break;
                    }
                }
            }
            while(paths == 4){
                  System.out.println("******************************\n" +
                                     "Congratulations, you won!");
                break;
                  }
            // No to play
        } else if(go.equalsIgnoreCase("N")){
            System.out.println("******************************\n" +
                               "Ok, well bye. I understand so just leave it you realy want to.");
        }
        System.out.println("******************************\n" +
                           "Thanks for playing");
    }
}

Link to comment
Share on other sites

okay i just want to clarify this and give an example since theres still plenty of time to change your entries.

when i said convoluted i meant something like this

pseudo code:
variable1= print "welcome";
print variable1

Link to comment
Share on other sites

Here is my text adventure.

Choose a Character or Random.

It has characters like MMORPGs but it is hardly a MMORPG.

Choose a Weapon. Beat other 'characters'

or Die

Hope you guys like it.

Its my first actual program. :)

To run it you will need to download Python Website

#Text Adventure
#Zimmer
#Python
#The Below Defines Everything to prevent errors when called
import random
def Magician():
    print "You know take the Magicians path."
    print "You first fight the Knight"
    ch1=raw_input("Spell 1 or 2 ")
    if ch1=="1":
        print "You have been killed. R.I.P"
        exit
    if ch1=="2":
        print "You have mortaly wounded him/her. You win."
        Magician2()
def Magician2():
    print "You have suceeded in beating the Knight but will you beat the Foot Soldier."
    print "The Foot Soldier is two times stronger."
    ch2=raw_input("Spell 1, 2, or 3 ")
    if ch2=="1":
        print "You have hit him/her but he still stands."
        Magician23()
    if ch2=="2":
        print "He/She counters. You become mortally wounded."
        exit
    if ch2=="3":
        print "You miss and nothing happens."
        Magician2()
def Magician23():
    print "You have gotten half way."
    ch23=raw_input("Spell 1, 2, 3, 4, or 5 " )
    if ch23=="1":
        print "You are dead. R.I.P"
        exit
    if ch23=="2":
        print "Champion!!"
        print "Well done..."
        print "The secret at the end..."
        print "Yes what about it?"
        print "Fine. It is '14569390'"
        input("Pause")
    if ch23=="3":
        print "You have died"
        exit
    if ch23=="4":
        print "You have missed. Improve you acuracy."
        Magician23()
    if ch23=="5":
        print "You have missed. Improve you acuracy."
        Magician23()

def Knight():
    print "You know take the Knights path."
    print "You first fight the Foot Soldier"
    ch1=raw_input("Lance or Sword ")
    if ch1=="Lance":
        print "You have been killed. R.I.P"
        exit
    if ch1=="Sword":
        print "You have mortaly wounded him/her. You win."
        Knight2()
def Knight2():
    print "You have suceeded in beating the Knight but will you beat the Foot Soldier."
    print "The Foot Soldier is two times stronger."
    ch2=raw_input("Lance, Sword, or Flail ")
    if ch2=="Lance":
        print "You have hit him/her but he still stands."
        Knight23()
    if ch2=="Sword":
        print "He/She counters. You become mortally wounded."
        exit
    if ch2=="Flail":
        print "You miss and nothing happens."
        Knight2()
def Knight23():
    print "You have gotten half way."
    ch23=raw_input("Lance, Flail, Sword, Axe, Crossbow " )
    if ch23=="Lance":
        print "You are dead. R.I.P"
        exit
    if ch23=="Flail":
        print "Champion!!"
        print "Well done..."
        print "The secret at the end..."
        print "Yes what about it?"
        print "Fine. It is '14569390'"
        input("Pause")
    if ch23=="Sword":
        print "You have died"
        exit
    if ch23=="Axe":
        print "You have missed. Improve you acuracy."
        Knights23()
    if ch23=="Crossbow":
        print "You have missed. Improve you acuracy."
        Knights23()
def Foot_Soldier():
    print "You know take the Foot Soldiers path."
    print "You first fight the Knight"
    ch1=raw_input("Lance or Sword ")
    if ch1=="Lance":
        print "You have been killed. R.I.P"
        exit
    if ch1=="Sword":
        print "You have mortaly wounded him/her. You win."
        Foot_Soldier2()
def Foot_Soldier2():
    print "You have suceeded in beating the Knight but will you beat the Foot Soldier."
    print "The Foot Soldier is two times stronger."
    ch2=raw_input("Sword, Lance, Broadsword ")
    if ch2=="Sword":
        print "You have hit him/her but they still stands."
        Foot_Soldier23()
    if ch2=="Lance":
        print "He/She counters. You become mortally wounded."
        exit
    if ch2=="Broadsword":
        print "You miss and nothing happens."
        Foot_Soldier2()
def Foot_Soldier23():
    print "You have gotten half way."
    ch23=raw_input("Lance, Sword, Broadsword, Axe, Crossbow" )
    if ch23=="Lance":
        print "You are dead. R.I.P"
        exit
    if ch23=="Sword":
        print "Champion!!"
        print "Well done..."
        print "The secret at the end..."
        print "Yes what about it?"
        print "Fine. It is '14569390'"
        input("Pause")
    if ch23=="Broadsword":
        print "You have died"
        exit
    if ch23=="Axe":
        print "You have missed. Improve you acuracy."
        Foot_Soldier23()
    if ch23=="Crossbow":
        print "You have missed. Improve you acuracy."
        Foot_Soldier23()
Welcome = "Welcome to this text adveture!"
print Welcome
Q1="What do you wish to be?"
Q12="Magician."
Q13="Knight."
Q14="Foot Soldier."
Q15="Random"
def Start():
    if ch=="Magician":
        print "You have chosen Magician."
        Magician()
    if ch=="Knight":
        print "You have chosen Knight"
    if ch=="Foot Soldier":
        print "You have chosen Foot Soldier"
    if ch=="Random":
        print "You have chosen Random"
        print "Random chose "
        x=random.randrange(1, 100, 1)
        if x<=33:
            Magician()
        if x<=66:
            Knight()
        if x<=99:
            Foot_Soldier()
print Q1
print Q12
print Q13
print Q14
print Q15
ch = raw_input("Choice? ")
Start()

Link to comment
Share on other sites

i declare kaizen the winner lmao. you guys made good txt games but i'd say that kaizen had the more convoluted code.

Link to comment
Share on other sites

hmmmmmmm

this may be too advanced or too simple depending on how you look at it.

duration: 7 days again

language: any

challange: make a program that will take any number of images and string them together into an animated gif. the winner will be determined by 1: cross platform, 2: features(selecting time delay and such), and 3: well written and commented code that would allow a complete noob to understand how it works.

i thought this would be a good idea(actually kaizens avatar is to blame) since it shouldnt be a complicated endeavor and shouldnt be too time consuming. and the code could be archived somewhere to help noobs in their respective language

Link to comment
Share on other sites

Are we allowed to use another program as a back end for conversion or the pictures?

as long as your not just using a scripting engine of another program like creating a gimp script. you can use another program but your code must be in an actual programming language

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...