See!
Made you look!!
:thumb:
Printable View
See!
Made you look!!
:thumb:
Hey! THIS IS THE BEST THREAD EVAR!!!!111111!!!111!1!1+?+?+1+?+1?!?!?!?1?+1+1+!
I feel n00b cells are gathering around my head...
Don't expect me to quote you on anything. It will take me 3 minutes just to type your name correctly.
yrwyddfa is easy to type and remember. Y-R-W-Y-D-D-F-A.
Y R
W Y D D
F A
Took me about 20 seconds to write this whole message and I'm not even a native speaker of this darn language.
I know it's childish but hey: I still made you look!
It's Welsh for 'The Tomb' or somthing.Quote:
Originally Posted by Merri
. . . and once you start . . . well you'll know where you'll end up.
Posting a silly message in this thread.
Indeed.
Now IS the time for all good men to come to the aid of the party
Fine then, dont invite me! :mad: :(
Mario Party?
Girls are, of course, invited. But their aid to the party is somewhat different from that which is provided by men (or boys in the case of most on this forum)Quote:
Originally Posted by kfcSmitty
I was referring to the "good men" part of your post ;) :afrog:Quote:
Originally Posted by yrwyddfa
There is only "a few good men" (sorry) available around here.Quote:
Originally Posted by kfcSmitty
are you bored today? You're going crazy on the CC posts :sick:
Come to think of it, I think i've only really seen you post in the world events forum
I post all over the place. I've helped many a poor soul out of their well of doom.
Normally with a well place bucket and rope.
Yes, I'm bored.
I post all over the place. I've helped many a poor soul out of their well of doom.
Normally with a well placed bucket and rope.
Yes, I'm bored.
Take part in the sudoku contest. No more need to be bored. Actually, it takes most of you life and sucks you into the world of sudoku, where there is no return out of. My English rocks.
I wanted to try the sudoku solver, but I don't udnerstand how the puzzels work, and I have no idea where to start....Damn me being a newbie
Yeah - I looked at the Sudoku problem it appears it's just a graph-colouring problem - albeit it an NP one.
Still you can use partial transitive closure techniques to 'guess' the hard ones.
Didn't think it was particularly fair on the noobs .. . .
(and I can't be bothered)
If you get enough interest into it and just start pondering and coding, you ought to learn a lot when you get into it. Even if you don't manage to get it ready for the contest you get valuable experience :)
This almost sounds like a non Chit Chat post... no wait! There is something fishy about this... yes! A non CC person posts in CC!
I still can't be bothered.Quote:
Originally Posted by Merri
Now if there was $$$$$$ then that is certainly a motivation . . .
The challenge here is to make (in my case VB6) perform well outside of the box particulary as this problem screams for heap memory and I feel that I would need proper dereferencing (copymemory too slow) in order to get it fly
That means inline machine code which is probably against the rules.
Why the problem would need heap memory? My solver runs any sudoku well under 2800 bytes, most don't require even 400 bytes to solve...
It depends on how the 2.8k is allocated. If it's stack allocated that's fine. If it's heap allocated then you'll be agreeing with me.
if you're using SAFEARRAY's (VB's native array type) then you're using heap memory unless you're using very very special techniques to keep the pvData and it's associated memory on th stack.
If you're not then you're using heap memory. If you're accessing directly using pvData then you're gonna need to dereference it.
You can do this using the array syntax (at least one multiplication happens on each access; more (and much less efficient) if you're using more than one dimension) or you can dereference directly using pvData, pointer arithmetic, and CopyMemory.
It's faster to use :
VB Code:
mov ecx, [esp+4] mov eax, [ebp + ecx] ret 4
which dereferences a pointer and returns it in the eax register.
See - I told you I'm bored.
I'm not good with terms. Probably need to Google to figure out what heap memory actually means. But yes, I'm using native fixed size VB arrays without any tricks into them. They're fast enough and never really bothered to try to figure out other ways to access them. I do optimize so that I use them the least I can though, a lot of temporary variables used.
I guess you can already figure that I don't know ASM either. As we discussed at some point: it is more about the programmer than the language :)
Yes I am bored. I dragged that assembler from some code that derived from some book published years ago . . can't even remember the name.
That was when I was interested in kicking the butts of nasty C++ programmers. DO you remember when those who programmed in C++ thought they were efficient programmers? They never realised it was the compiler. Those were the days when it was easy to get VB to outperform C++ . . . .
Still was a long time ago, and I don't care too much for this now. I occasionally come across a problem that I'll spent days investigating, but those days are generally long gone.
I'm more interested in playing cricket with my kids.
Yup :thumb:Quote:
Originally Posted by Merri
Yeah that's good technique. VB can really optimise access to them, and the SAFEARRAY code in oleaut is optimised for fixed length stuff.Quote:
Originally Posted by Merri
It's also a good lesson for noobs to learn: That is to never to exceed the problem domain. In this example you never need more than nine 81 element arrays. To make those arrays dynamic is a waste of time and resources (assuming you're going for a brute force aproachrather than a more heuristic approach)
I may give it a go this weekend using evolved neural nets. Might be fun. But I bet the sun comes out and I end up the village green with my kids, my beautiful wife, and a pint of ale . . .
Ah, I'm too young in this case :) Though I've had to do my own small part to show VB isn't slow like many seem to think, especially C programmers and Linux users. There are still some roaming around every now and then, but not that often. And actually, I'm not looking for them either. I did hear about those things but I weren't old enough to get into it. Besides had only VB4 at the time, which of course was the P-code hell.
Thought I'd put this thread back on top. See how many more people look!
Me! But only because it was in my userCP!
Pleeease join the contest smitty? I thought the same thing, but then Lou offered me some help in this thread:Quote:
Originally Posted by kfcSmitty
http://www.vbforums.com/showthread.php?t=350314&page=3
(Posts #84 and #95).
And that made it all make sense and got me started. Then I went back and read the whole sudoky discussion thread and picked up a few more tips before starting my program. Now the discussion thread has a ton more tips and if you read if before you start you will have a leg up on most people.
If you want some more help on understanding out it works let me know.
I'm a noob, too (I think we started around the same time) and it has been an AWESOME learning experience.
I'll PM you about this if I don't see a response in a day or so.
Oh god, Im 3 lines in and my head already hurtsQuote:
Then, for each revealed cell, delete all of that cells could be's, then place in it its must be.
Then, for every cell in that mustbe's row, delete that must be from each of those cells,
Ditto per column,
Ditto for the actual 3x3 parent SQUARE.
Can someone just explain in lamens terms the end result?
IE) You need to fill all 9 squares, each with a different number........etc
Oh, you mean basic basics. I would say read this:
http://en.wikipedia.org/wiki/Sudoku
... but that is really confusing too. TIn the most basic terms you are trying to fill in each row with the numbers 1-9, each column with the numbers 1-9 and each 3x3 square of cells with the numbers 1-9. You can't have the same number twice in any row/column/group.
That link I posted explains how to apply logic rules to your solver which help solve the puzzle.
Here is a sample:
The top is the clues you are given to start and the bottom is the solver version of the puzzle. You can see that all the 8's are highlighted and that no 8 appears 2 times and any row/col/3x3 square.
Make more sense?
EDIT: Screen shots are thanks to Merri's solver. :afrog:
well I understand how to solve it now! gawd damn :/
Guess I'll start cracking at this tonight
Cool. If you get stuck on anything PM me or post somewhere and I will see what I can do. The more people who participate the better. The deadline is approaching fast, but don't worry about it, just get what you can done. Its worth it. :)Quote:
Originally Posted by kfcSmitty
At the time of writing there has been 150 views.
See if I can get you nosey gits to look here 200 times :p
Go for it!
This is really weird. For ages i thought Merri was a chick, and now I find out that smitty is a chick! I thought smitty was a guy.
You dudes really need to choose better avatars or something.
Also, sudoku is the most boring subject in the known multiverse next to trainspotting, to quote visualDalek: "PLEASE POST IN THE CORRECT FORUM!!! EXTERMINATE!" :lol: :D
Merri, ever think of turning your optimisations skills to a worthwhile project? Such as graphics programming (seriously).
Graphics programming is for those who can't handle real programming. After all, the algorithms are out there - all you need to do is code them
;) Whooooaaaaa haw ahaw haw haw
:eek: No way!Quote:
Originally Posted by wossname
Quote:
Graphics programming is for those who can't handle real programming. After all, the algorithms are out there - all you need to do is code them
D# is being written from scratch. Since there are no decent practical sources of GDI+ info available at the moment I'm inventing the rendering code myself. Note is writing the 3d math from the ground up too so this is all our own work. So yrwddllldcchchhsddfa, bring it on!
ps. I love you. Give us a kiss.
If you pay me, I can optimize and fix all your D# code. If your code is good, then my code must be excellent :DQuote:
Originally Posted by wossname
I don't see much worthwhile in graphics programming. What is interesting to someone isn't interesting to someone else. If you think about it, there is nothing worthwhile in the whole life besides sleeping, eating and having sex. Worthwhile = something you like to do.
I might do graphics code and optimize it, but that'll be done in my own game project with FreeBASIC, if I'll ever start doing the game. I have the idea, I have the vision, but I don't have the time and atm not enough interest to do it.
The graphics primitives are all available freely on line. You can't lie to me loverboy.
Then why aren't we using any of them Mr Smartypants :cool:
Probably because you're reinventing the wheel whether you know it or not. Mr MilkywayPants.
218 and counting . . .
How many other nosey parkers are there out there?
You guys... really, marry eachother! You sound like a good pair.
Smitty is a chick? For serious?
She was last time I woke up next to her ;)
Oh shutup Mr SnickersknickersQuote:
Originally Posted by yrwyddfa
Its you I really fancy ValleysBoy.
:eek:
Why have you painted eyes on your bum?Quote:
Originally Posted by Valleysboy1978
this thread is such a waste of time *sigh*
thats why i like it!
Time to put this one back at the top of the list. :rolleyes:
Seemed like a good idea at the timeQuote:
Originally Posted by yrwyddfa
Made you look
Made you look