• What are you working on? v15
    5,001 replies, posted
How the **** do you clear the terminal in C#?! System("cls"); works fine in C++ but not in C# :(
Console.Clear(); WOW! How the **** did I figure that out.
[QUOTE=Within;28191961][img_thumb]http://localhostr.com/files/GcE3Iv3/Pseudo-Random%20Statistics.png[/img_thumb] And the conclusion: It's decently random.[/QUOTE] Whilst this seems a pretty good indication heuristically, it doesn't actually say that much about how random it is. I mean if it were going 1, 2, 3, 4, 5, 6, 10 [Random number]. You'd expect to see pretty similar results. I know I'm being anal about this, but measuring randomness is a pretty interesting problem if you think about it! [url]http://en.wikipedia.org/wiki/Diehard_tests[/url] is one set of tests they use. The whole area of pseudo randomness is pretty fascinating: the best/most frequently used algorithm (the Mersenne twister) was only invented in 1997.
snip missed a page
[QUOTE=Catdaemon;28190718]:v: It's the programming language I'm writing the game in. It's called BlitzMax if you want to read up more about it. I find it's far easier to do the same tasks in this than C++ or any other language I've tried. The downside is it costs money.[/QUOTE] Oh god, that (Blitz2D to be exact) was the first programming language I ever learnt. I never touched it again after I learned Java though.. THANK GOD! And I lost all my old programs too, another thank god as I would probably have to murder myself for all the horrible code I wrote. It's so horrible that even though I don't have any idea how the language works anymore I can still remember tons of things I did wrong in my code.... like not using local variables AT ALL!
[QUOTE=TheBoff;28192067]Whilst this seems a pretty good indication heuristically, it doesn't actually say that much about how random it is. I mean if it were going 1, 2, 3, 4, 5, 6, 10 [Random number]. You'd expect to see pretty similar results. I know I'm being anal about this, but measuring randomness is a pretty interesting problem if you think about it! [url]http://en.wikipedia.org/wiki/Diehard_tests[/url] is one set of tests they use. The whole area of pseudo randomness is pretty fascinating: the best/most frequently used algorithm (the Mersenne twister) was only invented in 1997.[/QUOTE] You're most likely right, I have little clue. I mostly did this because I wanted to practice multithreading, so the loop runs on a separate thread.
[QUOTE=Robber;28192159]Oh god, that (Blitz2D to be exact) was the first programming language I ever learnt. I never touched it again after I learned Java though.. THANK GOD! And I lost all my old programs too, another thank god as I would probably have to murder myself for all the horrible code I wrote. It's so horrible that even though I don't have any idea how the language works anymore I can still remember tons of things I did wrong in my code.... like not using local variables AT ALL![/QUOTE] Yeah the older versions are horrific.. Max is totally different though (in SuperStrict mode it even makes you code properly and runs like 4x as fast lol). It cross-compiles with C/C++/ASM code and all sorts. The code is kinda awful to look at but doesn't really leave much room for ambiguity so it's easy to understand when coming back to it at least. You get proper access to the built in libraries too (you can recompile them yourself etc) as well as the underlying opengl/directx code. Even the compiler (which someone's done a cool version of that cross-compiles for you).
[QUOTE=Robber;28192159]Oh god, that (Blitz2D to be exact) was the first programming language I ever learnt. I never touched it again after I learned Java though..[/QUOTE] you started with a terrible language and then you moved onto another terrible language? [highlight](User was banned for this post ("Shitposting in WAYWO (again)" - SteveUK))[/highlight]
[QUOTE=deloc;28192664]you started with a terrible language and then you moved onto another terrible language?[/QUOTE] I don't know why you even bother posting.
[QUOTE=deloc;28192664]you started with a terrible language and then you moved onto another terrible language?[/QUOTE] Atleast he knows a language
God, apparently shitposting is a bad habit. I should probably stop it 'cause next time I'll have to skim thru more than 160 posts.
That said, content! I'm planning to write my own makefile generator &#8211; again. This time I'm going to use a radically different format for it, though. [editline]21st February 2011[/editline] Automerge >.<
[QUOTE=Richy19;28193196]Atleast he knows a language[/QUOTE] better than knowing java.
I've decided to take a look at my build system again. This time around, I'm taking a different approach, and looking into writing it in C, with Lua configuration files. Although, I'm regretting it a bit, since I am not as familiar with Lua, as say, Python. With Python, it's not too hard for me to get an idea of how the configuration script should look. With Lua, I have absolutely no idea. For instance, I can do this: [code] project = bit.project('project-name') -- Registers the project with the internal dispatcher. Like `with` in the Python version. project.type = bit.framework -- Results in a shared library on non darwin platforms project.files = { bit.os:glob('source/shared/*.c'), bit.os:glob('source/' .. bit.platform .. '/*.c') } project.library = { 'OpenGL', 'X11' } project.cflags = { '-std=c89 -Wall -Wextra' } project.data = { bit.os:glob('data') } -- content pipeline stuff -- And so on and so forth [/code] Or I can do [code] project = bit.project:new('name', 'different', 'types', 'of', 'additional', 'targets') project.debug = project.types -- Does Lua even pass by reference like in python? This is how lost I am :/ project.debug.flags = { '-std=c89' } -- And so on and so forth [/code] This is the only problem I'm getting with the rewrite. So far I have a basic unix-like daemon running in the background, and when a change is detected in the directory (the type of event depends on the OS. Linux and Windows will have the best performance, simply due to the lack of stat() and hash checks I'll be doing), the dependency tree is checked, and the project is built immediately. You can then access your most recent build with a `bit status` or `bit log` command (I'm unsure if this is how the commands will remain). What I may do instead is write the daemon in C, with a Python client that simply sends it the data, and when you change the script, either the daemon runs it, and reloads it, or you'll need to run a manual `bit update`. (Why yes, I am taking inspiration from git's cl interface :v:) If anyone has any suggestions, I'm open to them, as I'm basically futzing around trying to figure out what I want to do :[
[QUOTE=deloc;28193528]better than knowing java.[/QUOTE] Herpderp hate bandwagon. How did you get back in here anyway, I thought you were pema'd?
[QUOTE=TheBoff;28193642]Herpderp hate bandwagon. How did you get back in here anyway, I thought you were pema'd?[/QUOTE] bandwagon? haha yeah okay [url=http://www.facepunch.com/threads/1028402-What-are-you-working-on-V14?p=26213823#post26213823]i can form my own opinions tyvm[/url]. i don't know what a pema is though.
[img]http://i52.tinypic.com/2hhlyt3.png[/img] Still fiddling with this. I noticed that amnesia(and minecraft) would disable aero if i removed the border and the resolution was the same as windows resolution, thus having the computer lag like fuck for a few seconds everytime you alt tabbed. So i made a feature to disable/enable aero manually. Also added a changelog and changed some design issues. The design is still a bit rough. [url=http://dl.dropbox.com/u/4912307/borderremover.exe]Download here[/url]
[QUOTE=deloc;28193674]bandwagon? haha yeah okay [url=http://www.facepunch.com/threads/1028402-What-are-you-working-on-V14?p=26213823#post26213823]i can form my own opinions tyvm[/url]. i don't know what a pema is though.[/QUOTE] Haha. Oh wow. That next post. Edit: I can't believe Deloc had to go back 2 whole threads to find content he actually contributed.
[QUOTE=BlkDucky;28193741]Edit: I can't believe Deloc had to go back 2 whole threads to find content he actually contributed. And this thread is almost over. And that content was at the beginning of that thread.[/QUOTE] [url]http://www.facepunch.com/threads/1044832-What-are-you-working-on-v15?p=27908601&highlight=#post27908601[/url] [url]http://www.facepunch.com/threads/1044832-What-are-you-working-on-v15?p=27530013&highlight=#post27530013[/url] [url]http://www.facepunch.com/threads/1044832-What-are-you-working-on-v15?p=27527478&highlight=#post27527478[/url] [url]http://www.facepunch.com/threads/1044832-What-are-you-working-on-v15?p=27497018&highlight=#post27497018[/url] [url]http://www.facepunch.com/threads/1028402-What-are-you-working-on-V14?p=26213823#post26213823[/url] [url]http://www.facepunch.com/threads/1000894-What-Are-You-Working-On-V13?p=24892408&viewfull=1#post24892408[/url] [url]http://www.facepunch.com/threads/1000894-What-Are-You-Working-On-V13?p=24892787&viewfull=1#post24892787[/url] [url]http://www.facepunch.com/threads/949277-What-are-You-Working-On-V-0xB?p=22835030&viewfull=1#post22835030[/url] [url]http://www.facepunch.com/threads/949277-What-are-You-Working-On-V-0xB?p=22689431&viewfull=1#post22689431[/url] [url]http://www.facepunch.com/threads/949277-What-are-You-Working-On-V-0xB?p=22695086&viewfull=1#post22695086[/url] try again
[QUOTE=deloc;28193674]bandwagon? haha yeah okay [url=http://www.facepunch.com/threads/1028402-What-are-you-working-on-V14?p=26213823#post26213823]i can form my own opinions tyvm[/url]. i don't know what a pema is though.[/QUOTE] I don't particularly care what content you post, as I post fuck all these days (most of the stuff I do is for uni, so quite boring, although I can produce quite a nice game of life gif, if anyone wants to see it), I just find anyone who hates any particularly language without justification very tedious. I don't think I can name one specific language which has no merits whatsoever, and Java is by no means a bad language.
[QUOTE=deloc;28193916][url]http://www.facepunch.com/threads/1044832-What-are-you-working-on-v15?p=27908601&highlight=#post27908601[/url] [url]http://www.facepunch.com/threads/1044832-What-are-you-working-on-v15?p=27530013&highlight=#post27530013[/url] [url]http://www.facepunch.com/threads/1044832-What-are-you-working-on-v15?p=27527478&highlight=#post27527478[/url] [url]http://www.facepunch.com/threads/1044832-What-are-you-working-on-v15?p=27497018&highlight=#post27497018[/url] [url]http://www.facepunch.com/threads/1028402-What-are-you-working-on-V14?p=26213823#post26213823[/url] [url]http://www.facepunch.com/threads/1000894-What-Are-You-Working-On-V13?p=24892408&viewfull=1#post24892408[/url] [url]http://www.facepunch.com/threads/1000894-What-Are-You-Working-On-V13?p=24892787&viewfull=1#post24892787[/url] [url]http://www.facepunch.com/threads/949277-What-are-You-Working-On-V-0xB?p=22835030&viewfull=1#post22835030[/url] [url]http://www.facepunch.com/threads/949277-What-are-You-Working-On-V-0xB?p=22689431&viewfull=1#post22689431[/url] [url]http://www.facepunch.com/threads/949277-What-are-You-Working-On-V-0xB?p=22695086&viewfull=1#post22695086[/url] try again[/QUOTE] I don't like the way you quoted me before I could remove the part where I can't count. :frown:
[QUOTE=TheBoff;28193934]Java is by no means a bad language.[/QUOTE] if you're a clown. [QUOTE=Rocket;28193962]All of those are from a month or more ago.[/QUOTE] "2 Weeks Ago" duhhhhhhhh
I'm getting bored of making my roguelike. Someone suggest another feature to add, please!
Thanks deloc. I was looking for some way to generate mazes for my roguelike. First link: [QUOTE=SamPerson123;27909194]Now my maze generator can make mazes as big as an int. I ended up moving the switch statement outside of the other switch because I realized I needed to compare it to something else. It's a bit nicer now, but I'm sure there's a cleaner way to do it. [code] public void depthFirstGen(int X, int Y){ ArrayList<Integer> options; int rand; boolean finished = false; while(!finished){ options = new ArrayList<Integer>(); maze[X][Y][0] = true; if(X>0 && !maze[X-1][Y][0]){options.add(1);} if(X<xSize-1 && !maze[X+1][Y][0]){options.add(2);} if(Y>0 && !maze[X][Y-1][0]){options.add(3);} if(Y<ySize-1 && !maze[X][Y+1][0]){options.add(4);} if(options.size()>0){ rand = (int)(Math.random()*options.size()); switch(options.get(rand)){ case 1: maze[X][Y][1] = true; X--; dir[X][Y] = 2; break; case 2: maze[X+1][Y][1] = true; X++; dir[X][Y] = 1; break; case 3: maze[X][Y][2] = true; Y--; dir[X][Y] = 4; break; case 4: maze[X][Y+1][2] = true; Y++; dir[X][Y] = 3; break; } }else{ switch(dir[X][Y]){ case 1: X--; break; case 2: X++; break; case 3: Y--; break; case 4: Y++; break; default: finished = true; break; } } } } [/code] [editline]6th February 2011[/editline] This can do a 500x500 cell maze in half a second. [editline]7th February 2011[/editline] Got it down to .25 seconds by using the clear function instead of making a new ArrayList each time.[/QUOTE] :buddy: [editline]21st February 2011[/editline] [QUOTE=spear;28194049]I'm getting bored of making my roguelike. Someone suggest another feature to add, please![/QUOTE] Mazes. :v:
[QUOTE=BlkDucky;28194088]Thanks deloc. I was looking for some way to generate mazes for my roguelike. First link:[/QUOTE] #post27908601 != #post27909194 get a better browser.
[QUOTE=deloc;28194232]#post27908601 != #post27909194 get a better browser.[/QUOTE] Uh, what? I scrolled down to read the thread.
Content Man, saving the day once again: [IMG]http://i52.tinypic.com/2dawryw.png[/IMG] I got that dungeon generation algorithm working :buddy: Now I just need to make the rooms bigger.
[QUOTE=BlkDucky;28194270]Uh, what? I scrolled down to read the thread.[/QUOTE] what a waste of a post then.
[QUOTE=deloc;28194309]what a waste of a post then.[/QUOTE] Just like 99% of yours
[QUOTE=ZenX2;28194292]Content Man, saving the day once again: [img_thumb]http://i52.tinypic.com/2dawryw.png[/img_thumb] I got that dungeon generation algorithm working :buddy: Now I just need to make the rooms bigger.[/QUOTE] This one: [url]http://roguebasin.roguelikedevelopment.org/index.php?title=Dungeon-Building_Algorithm[/url] ? I kept getting strange results. Need to back to it.
Sorry, you need to Log In to post a reply to this thread.