Page 1 of 2

I was bored

Posted: Thu Mar 06, 2008 6:36 pm
by nekros
I was bored and I made a simple program to screw up a text file :D
It looks like crap, but have fun.

Posted: Thu Mar 06, 2008 6:56 pm
by Zacariaz
you think you know about boredom?
I once wrote a ink lbop test. Unfortunantly i have drown away the source, but i still have the windows binary.


Damn that 64k limit sucks...

Posted: Thu Mar 06, 2008 7:00 pm
by nekros
I thought my little prog was funny.... :D Yep, very very very bored.


I just tried it on the source for the program: WHOA! :D

Posted: Thu Mar 06, 2008 8:26 pm
by Zacariaz
nekros wrote:I just tried it on the source for the program: WHOA! :D
I'm sorry, I don't quite understand what you mean by that, but it sound positive. :wink:

Posted: Thu Mar 06, 2008 8:31 pm
by nekros
I used the program to mangle it's own source :D

Posted: Thu Mar 06, 2008 9:49 pm
by Zacariaz
cool, i don't think i'd be able to understand the output.

Posted: Thu Mar 06, 2008 10:52 pm
by Zacariaz
couldn't sleep:

Code: Select all

#include <iostream>
#include <vector>
#include <stdint.h>

class Prime {
	std::vector<uint32_t> P_list;
	uint32_t test;
	uint32_t Get(uint32_t n) {
		while(n >= P_list.size()) {
			test += 2;
			for (uint32_t i = 1; test >= P_list[i] * P_list[i]; i++) {
				if(test % P_list[i] == 0) {
					test += 2;
					i = 0;
				}
			}
			P_list.push_back(test);
		}
		return P_list[n];
	}
public:
	Prime() : test(3) {
		P_list.push_back(2);
		P_list.push_back(3);
		int32_t n;
		while(true) {
			std::cout << "type in a number greater than 0 to get the corosponding prime or type 0 to exit: ";
			std::cin >> n;
			if(!n) break;
			std::cout << "the " << n;
			if(n % 10 == 1) std::cout << "st";
			else if(n % 10 == 2) std::cout << "nd";
			else if(n % 10 == 3) std::cout << "rd";
			else std::cout << "th";
			std::cout << " prime number is: " << Get(n-1) << std::endl;
		}
	}
};

Posted: Thu Mar 06, 2008 11:18 pm
by B.E
I was bored once and made a program that bar graphed random numbers with radom colors and with RBG, graphed the color component.

I also added a line to show the averages of the random numbers.

All programmed in Delphi.

Can't seem to find it again though

Posted: Fri Mar 07, 2008 12:42 am
by eddyb
the output

Code: Select all

#i#ilulu < <didih>h>ininudud<s<slilih>h>ininudud<s<s/t/teses>
>
clcle e ysystatah>h>ininudud<f<ftltl>
>
clcle e ninid.d.
t
tdedeunungngn s srtrtOROR



crcrtwtwd(d(RDRD)/)/ncncptpta a RDRDndndetetnsnshehencncptpt w wd
d
 = =WOWO)")"TTTT
r
rrnrn;
;
vovo d dwowo(W(WD D 
{
{= = /2/2}
}
t t ininntntrgrgchch * *gvgv)
)
ririf(f(ekekfifi m mglglg g ogogm\m\););ntntococptpt o on(n(gvgv],],RDRD););ntntrrrrs;s;ntntiziz = =;
;
ucucstst c catatWOWO n nypyp
v
v * *f f &n&nypyp
v
v * *ufuf & &tata
i
iococptpt)
)
ririf(f(RRRR: :  S SH H LELEN N ISISIRIRTOTO\n\n;
;
urur0;0;



(a(av[v[,s,sf)f)prprtftfTHTHSISI O OTHTHFIFI I I%d%dYTYT\n\ncscst.t._s_se)e)sisiw w cscst.t._s_se e 2;2;inini i 1;1;hihi(i(i=(=(tataststiziz2)2){
{
d(d(crcrt,t,f,f,zeze(W(WD)D)
c
ctwtwd(d(ryry););riri(t(tryry,b,b,s,seoeoWOWO))))i+i+
}
}ririf(f(ONONn"n"
r
rrnrn;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
I used also on the prog :lol: now it's dont work anymore :lol:

Posted: Fri Mar 07, 2008 6:00 am
by nekros
The long line of colons is kinda weird. :D

Posted: Fri Mar 21, 2008 5:29 pm
by AndrewAPrice
Zacariaz wrote:you think you know about boredom?
I once wrote a ink lbop test. Unfortunantly i have drown away the source, but i still have the windows binary.
I'm suppose to be writing finishing my C++ network chat program (which is nearly done) - you control 3D avatars and the speech bubble above your head fills as you type.

But I've been procrastinating and writing a multiplayer first person shooter for PC and Xbox 360 (with cross network connectivity). It's really cool since you just need the bare game (<100 kb now, but may increase later) and when you join into a game and don't have the map, the map and all content is automatically transferred to your system.

I'm making a level editor which will run on the 360 and PC, but "Content Packs" (they hold textures, meshes, sounds, etc) must be created on a PC and transferred over a network, since it's kind of pointless browsing an Xbox for textures/meshes/etc (unless I wrote a photo-editing program for it, but that's another entire project).

Posted: Sat Mar 22, 2008 7:14 pm
by iammisc
Maybe it's just me, or maybe it got downloaded wrong, but you do realize that you're program doesn't do anything right.

Look at the encrypt function:

int cryptword(WORD w)//encrypts a WORD and returns the encrypted word
{
w = (WORD)"BUTT";
return w;
}

what does that do?

it does nothing, w isn't a pointer and the return value is never used so the function could have absolutely no side effects on the program's output. If you remove the call to cryptword and run the program again, you'll get the same output. All that happens is that everything is offset by two because the file position pointer is offset by two from the read. Then you write and the position pointer is offset by two again and then you read the next two.
That is why you get the same character at the end all the time.

Posted: Sat Mar 22, 2008 7:32 pm
by nekros
I'm aware of all of this. I was tired, bored and why the heck does it matter? It's a pointless program. It can't do anything wrong if it isn't meant to do something right.

Posted: Sun Mar 23, 2008 4:48 am
by inflater
I once made a "driving game" in Delphi, where you had to spin your mouse wheel as fast as possible (the spinning didn't had to be continuous loop). First, you would set a time thresold between 10-50 seconds and then, every Windows event "MouseWheelMove" was recorded and in the end, you would get up with a score. I also made there a "gear shifter" that would move the Windows's "slider" component according to your score, "status LEDs" for "gasoline", "motor" and "gears", plus I've added some weird car sounds.
(C) 2005 :D

If you would like to try it,
"sekúnd" - number of seconds
"benzín" - gasoline
"motor" - engine
"prevodovka" - gears

"Naštartuj auto" - Start the car
"Zabrzdi" - Break
"Získal si (...) bodov!" - You scored (...) points!

Should run even on Wine.
Beware: This program is useless, I created it because I was really bored. :)

Here it is, http://ayeto.zaridi.to/inflater/weird_game.zip

Posted: Tue Mar 25, 2008 6:32 pm
by AndrewAPrice
I finished the above mentioned chat program :) I got up to 6 people all moving/typing smoothly across the college network.
Image