Puzzle
#1 Guest_juggler_*
Posted 08 May 2004 - 01:45 PM
This is the puzzle:
you have a field of 5 by 9. In every row of 9 must be a 1, 2, 3, 4, 5, 6, 7, 8, and a 9. So you must use all of them once in a row. The sum of every column must count exactly 25 but there may not be twice the same number in one column.
Then there is an other thing: in the first column, the first number must be a 1, in the second column the second number must be a 2, in the thirth col. the 3th number must be 3, in the 4th col. the 4th number must be a 4, and in het 5th column the last number must be 5, in the 6th col. the 4th number must be a 6, in the 7th col the 3th number is a 7 and in the 8th and 9th column on the second and the first place must be a 8 and a 9.
So like this:
1 - - - - - - - 9
- 2 - - - - - 8 -
- - 3 - - - 7 - -
- - - 4 - 6 - - -
- - - - 5 - - - -
You must fill in a number on every -
Who can make a program that can solve this in not to much time and with only the standart memoy of my machine? ? ? ? ? I'm very thankfull if somebody can help me.
(btw. I have one solution of the riddle but I want a program that finds all of them.
If you want me to, I can post that solution here )
#2
Posted 08 May 2004 - 02:32 PM
so as to make a cluster!
lol but you need a lot of calcs to do it quickly..
#3
Posted 08 May 2004 - 02:40 PM
I.e. create a matrix, 5x9, then input the constants, and then use a looooooong series of For-to commands
good luck
#4 Guest_juggler_*
Posted 08 May 2004 - 06:02 PM
I first made a Mat B 5 by 69 in witch i placed all possibillitys(?) for the first row
then in Mat C all for the second row(55)
and so on till Mat J.
This could I do with a not too long prog. witch I changend a bit after every Mat.
But then you have to see witch rows can go together and that takes lots of memory and and time. too much.
[neo]f4kill said:"hmm, uses your friends calc!
so as to make a cluster!
lol but you need a lot of calcs to do it quickly.. "
first, I have not much friends(hahaha)
second, I just have one cable for casio-casio witch not always works.
third, I have a pc-casio cable but I can't figure out how to put a part of my work on the pc and then work on, on my calc because you need every piece al the time.
If it is possible, I don't know how to write a prog. that comunicates with the pc while running. But I know something about the send( and the receive( comand because I know the passwords of the programs that are on the calc if you buy it.
Looking in those progs. learned me a little bit about about comunication with other things than a pc or an other calc.
I hope, one of you can help me because here is nobody who can help me.
(I'm just 17 and got the casio for school but even most teachers can't really work with it. )
#5
Posted 08 May 2004 - 06:29 PM
#6 Guest_juggler_*
Posted 08 May 2004 - 06:32 PM
#7
Posted 08 May 2004 - 07:03 PM
example:
BEGINING
a <- 10
WHILE a > 0
a<- a - 1
Draw Point 0, a
ENDWHILE
END
#8 Guest_juggler_*
Posted 09 May 2004 - 08:01 AM
But now, who can help me solve the riddle?
#9
Posted 09 May 2004 - 07:38 PM
And i have a theory for a solution - or - how to solve it, but i need to finish of my game first, as i have no free space on my calc. Will get to it soon
#10 Guest_juggler_*
Posted 10 May 2004 - 06:27 AM
Is it possible to make a prog on your calc. that works with information from your pc? And, is it possible to make a prog for your pc that works with information from your calc. while running?
What's your new game about, if it's finished, i'd like to try it.
#11
Posted 10 May 2004 - 12:40 PM
Yes and YesIs it possible to make a prog on your calc. that works with information from your pc? And, is it possible to make a prog for your pc that works with information from your calc. while running?
I even wrote a program once that you could control with the calculator.
(In fact it was supposed to become an emulator but it didn't work).
You'd best use a DLL (there was one arround on a site) or if you don't like
it (since it has not all functions) you might want to write your own lib that
can be done with the information on the same site
... too bad I don't
remember the addresse right now. Maybe someone could help me?
#12 Guest_juggler_*
Posted 10 May 2004 - 03:13 PM
I am now writing the program which should be possible to do the job. I will run it in casiocom and see if it works.
If one of you want the program and the matrices I have then let me know. I can e-mail them or put them on my site if neccesary.
#13
Posted 10 May 2004 - 03:36 PM
I only assumed that you know at leas ANY language on the PC
because if not what did you think how to manage comunicating with the calc?
#14 Guest_juggler_*
Posted 10 May 2004 - 05:54 PM
I unfortunattely don't know any pc-language.
But it is working already! only casiocom gives an error when I run the program.
It works on my calc. but it would take days and days before it is finished.
But it worked because I started it and it found 1 solution for my riddle very soon and when I let it run for an hour it had found 7!
The problem is, if i run the same prog in casiocom and then emulate it, after a short time it says next:
CASIOCOM heeft een fout met betrekking tot een ongeldige pagina veroorzaakt in
module KERNEL32.DLL op018f:bff87eff.
Registers:
EAX=c00309c4 CS=018f EIP=bff87eff EFLGS=00010202
EBX=bcff0604 SS=0197 ESP=01f70000 EBP=01f7007c
ECX=8179688c DS=0197 ESI=817b9670 FS=6237
EDX=bff76855 ES=0197 EDI=01f70094 GS=0000
Bytes in CS:EIP:
57 ff 75 10 6a 01 e8 ca 07 00 00 85 c0 74 08 ff
Stackdump:
01f700b0 01f7025c 817b9670 bcff0604 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
I will try to translate the first sentence for you: "CASIOCOM has a failure with a invalid page caused in module KERNEL32.DLL at ....."
Can you help me?
I'm now gona place all the stuff on my website, i'll post the adres if it is done.
#15 Guest_juggler_*
Posted 10 May 2004 - 06:03 PM
#16
Posted 10 May 2004 - 06:47 PM
This is a failure that is caused by an invalid function in the windows system file
KERNEL32.DLL that either CASIOCOM or the language it is written in calls.
Either it gives the wrong parameters or this is a windows failure.
Unfortunately the error message is near to useless. I never knew how to use them.
The are only usefull if you code in Machine Language.
#17 Guest_juggler_*
Posted 11 May 2004 - 02:33 PM
#18
Posted 11 May 2004 - 03:59 PM
#19
Posted 11 May 2004 - 04:01 PM
#20
Posted 11 May 2004 - 04:04 PM
uh.. don't flame windows for a buggy programWindows Sucks!!!!
@andy
if you want to find the combinations bruteforce, write a normal pc app and it will be finished in no time
#21 Guest_juggler_*
Posted 12 May 2004 - 08:30 AM
So, can't one of you do it for me, if you have time.
Or, maby you can tell me some websites where I can learn a simple bit of pc-programming in not to much time so I can make it myself.
#22
Posted 12 May 2004 - 06:09 PM
I would suggest looking into C/C++, or perhaps something more high level like Java or C# if you want to do RAD (although a C console app is probably easier for this task).
There are tons of resources online, all you have to do is google them
I don't know many specific introductory ones myself, but programmersheaven has alot of old school C/C++ and even assembler stuff.
You'll need to get your hands on a compiler, or even better, a full IDE.
if you have a bit of cash, go for something like Visual C++ .Net 2003 (about 50$ if you're student (in the US)). if not, DevC++ is free (although I haven't tried it) and is suppose to be a good IDE. the MS C++ compiler can even be downloaded for free in their visal c++ toolkit. it has similar flags to the intel compilers (or more like, the intel compilers have similar flags to theirs.. I'm not too sure ). alternatively you could download gcc/g++
Most important, don't be intimidated by programming on the PC.. after you pick it up, it's much faster, and more rewarding than typing basic programs on your calc.
#23
Posted 12 May 2004 - 06:57 PM
#24
Posted 13 May 2004 - 05:00 AM
is really difficult going from BASIC to C while the contrary isn't.
If you are "BASIC rotten" once you'll not have it to easy when trying C.
#25
Posted 13 May 2004 - 08:14 AM
#26
Posted 13 May 2004 - 08:44 AM
I found it really difficult to understand this.
#27 Guest_juggler_*
Posted 13 May 2004 - 09:04 AM
So, it could take some time before I post something again or before I read your posts.
#28
Posted 13 May 2004 - 07:31 PM
I believe VB is the easyest thing to teach yourself
#29
Posted 13 May 2004 - 08:30 PM
It once brought RAD to windows, but there's not much use for it anymore, since you can achieve the same with other more up to date and object oriented languages.
VB.Net adds the full object orientation to VB, but not even VB developers seem happy with that langauge.
VB is closer (in syntax) to any other Basic language (naturally), but I saying it's easier to learn is a claim without any research or statistics to back it up.
In the end, it's a all matter of personal preference.
I'd advice to start with something lower level, just to have an understanding of what's going on. Like huhn_m said, it's much easier to work your way up, than the other way around
#30 Guest_juggler_*
Posted 21 May 2004 - 02:48 PM
It's under 'tools' and then 'macro's', as you can see here: http://www.members.l.../VB in word.htm
Now I think I try VB so if somebody knows a good website to learn about VB, please tell me.
#31
Posted 21 May 2004 - 03:28 PM
Used to make simple games with VB script in excel back in boring computing classes in secondary school
If you want to learn something that lasts you for a while, at least go with VB.Net
#32
Posted 21 May 2004 - 03:59 PM
#33
Posted 21 May 2004 - 04:18 PM
#34 Guest_juggler_*
Posted 22 May 2004 - 07:51 AM
I'm not going to buy anything!
#35
Posted 22 May 2004 - 02:08 PM
VB is Microsoft only, and is unlikely to be given away for free
However, if you're in University / College, you might be able to pick up an academic licenced copy for free there
#36
Posted 22 May 2004 - 02:42 PM
#37 Guest_juggler_*
Posted 23 May 2004 - 09:19 AM
Maby one of you knows a place where to get one. Even for a manual?
#38
Posted 23 May 2004 - 03:18 PM
You also get the java sdk there
As for IDEs,
Sun One Studio is good for RAD, but it's not free (to my knowledge)
NetBeans is also suppose to very good, haven't tried that one though
JCreator is a good IDE / Editor for hard coding things (no forms designer or drag and drop). Which is probably what you'll be doing to start off with anyway. The limited version is free
-- EDIT --
A side note though...
If you learn C++, picking up Java is EASY
If you learn Java, picking up C++ is much worse..
#39
Posted 23 May 2004 - 10:54 PM
that is the one that i use, and it is pretty good, and best of all freeJCreator is a good IDE / Editor for hard coding things (no forms designer or drag and drop). Which is probably what you'll be doing to start off with anyway. The limited version is free
i learned c++ fairly easy after i learned java, but of course, i'm still a newb at itA side note though...
If you learn C++, picking up Java is EASY
If you learn Java, picking up C++ is much worse..
#40 Guest_juggler_*
Posted 24 May 2004 - 09:40 AM
I'm a bit trying out with compiler e.d. but i read the first pages of my book and java doesn't seem to be really difficult.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users