NANORG project ideas
Moderators: AmyCowen, kgudger, bfinio, MadelineB, Moderators
-
- Posts: 21
- Joined: Fri Sep 20, 2013 4:52 am
- Occupation: Student
- Project Question: How to program NANORGs?
- Project Due Date: January.
- Project Status: Not applicable
Running the Nanorg project
I was testing out the CONTEST06 program with the given assembler file when I got an error:
C:\Users\john>C:\CONTEST06> CONTEST06.EXE -p:samplebot.asm
'C:\CONTEST06' is not recognized as an internal or external command,
operable program or batch file.
Does anybody know the problem here?
C:\Users\john>C:\CONTEST06> CONTEST06.EXE -p:samplebot.asm
'C:\CONTEST06' is not recognized as an internal or external command,
operable program or batch file.
Does anybody know the problem here?
-
- Former Expert
- Posts: 23
- Joined: Tue Oct 22, 2013 10:59 am
- Occupation: Student: 11th grade
- Project Question: "Ask an Expert" volunteer
- Project Due Date: n/a
- Project Status: Not applicable
Re: Running the Nanorg project
Hi AgentD1,
Welcome to the forums.
I suppose you are doing the following project:
https://www.sciencebuddies.org/science- ... ml#summary
And I suppose you are using Windows PC.
From the documentation (SciBudProjectBioGenerator.pdf), it looks like the program you need to run is CONTEST06.EXE. For example,
C:\CONTEST06> CONTEST06.EXE –p:yourPlayerFile.asm
Here C:\CONTEST06 is the working directory (and "C:\CONTEST06>" is the prompt you get from the computer).
Basically, all you need to do is change directory to where you save the program file CONTEST06.EXE and the assembly file (e.g. samplebot.asm) and type in
"CONTEST06.EXE -p:samplebot.asm".
The error message you got basically said that the computer could not find the program you intended to run.
In your message, you have the following:
C:\Users\john>C:\CONTEST06> CONTEST06.EXE -p:samplebot.asm
This implies that your working directory was C:\Users\john, and you typed in "C:\CONTEST06> CONTEST06.EXE -p:samplebot.asm", so the computer thought that your program name was 'C:\CONTEST06' and couldn't find it.
To correct the problem, you should just type in "CONTEST06.EXE -p:samplebot.asm" at the prompt, assuming CONTEST06.EXE was saved under C:\Users\john.
Please let me know if this does not solve your problem.
JChang
Welcome to the forums.
I suppose you are doing the following project:
https://www.sciencebuddies.org/science- ... ml#summary
And I suppose you are using Windows PC.
From the documentation (SciBudProjectBioGenerator.pdf), it looks like the program you need to run is CONTEST06.EXE. For example,
C:\CONTEST06> CONTEST06.EXE –p:yourPlayerFile.asm
Here C:\CONTEST06 is the working directory (and "C:\CONTEST06>" is the prompt you get from the computer).
Basically, all you need to do is change directory to where you save the program file CONTEST06.EXE and the assembly file (e.g. samplebot.asm) and type in
"CONTEST06.EXE -p:samplebot.asm".
The error message you got basically said that the computer could not find the program you intended to run.
In your message, you have the following:
C:\Users\john>C:\CONTEST06> CONTEST06.EXE -p:samplebot.asm
This implies that your working directory was C:\Users\john, and you typed in "C:\CONTEST06> CONTEST06.EXE -p:samplebot.asm", so the computer thought that your program name was 'C:\CONTEST06' and couldn't find it.
To correct the problem, you should just type in "CONTEST06.EXE -p:samplebot.asm" at the prompt, assuming CONTEST06.EXE was saved under C:\Users\john.
Please let me know if this does not solve your problem.
JChang
-
- Posts: 21
- Joined: Fri Sep 20, 2013 4:52 am
- Occupation: Student
- Project Question: How to program NANORGs?
- Project Due Date: January.
- Project Status: Not applicable
Re: Running the Nanorg project
I'll be trying it out today again.
-
- Posts: 21
- Joined: Fri Sep 20, 2013 4:52 am
- Occupation: Student
- Project Question: How to program NANORGs?
- Project Due Date: January.
- Project Status: Not applicable
Re: Running the Nanorg project
It says that it isn't a valid Win32 application?
-
- Former Expert
- Posts: 23
- Joined: Tue Oct 22, 2013 10:59 am
- Occupation: Student: 11th grade
- Project Question: "Ask an Expert" volunteer
- Project Due Date: n/a
- Project Status: Not applicable
Re: Running the Nanorg project
Hi AgentD1,
I am sorry to hear that it didn't work for you.
I tried the program using the following command on a 64-bit Windows PC and on a 32-bit Windows PC, and it worked just fine for me on both PCs.
CONTEST06.EXE -p:samplebot.asm
This implies that the program is a Win32 program, which can also run on a Win64 platform.
Exactly what did you type and what was the response? It might help if you cut-and-paste what you saw on the screen?
JChang
I am sorry to hear that it didn't work for you.
I tried the program using the following command on a 64-bit Windows PC and on a 32-bit Windows PC, and it worked just fine for me on both PCs.
CONTEST06.EXE -p:samplebot.asm
This implies that the program is a Win32 program, which can also run on a Win64 platform.
Exactly what did you type and what was the response? It might help if you cut-and-paste what you saw on the screen?
JChang
-
- Posts: 21
- Joined: Fri Sep 20, 2013 4:52 am
- Occupation: Student
- Project Question: How to program NANORGs?
- Project Due Date: January.
- Project Status: Not applicable
Re: Running the Nanorg project
Err well it's a popup window so I can't copy and paste but what it says is:
C:\Users\john\CONTEST06.EXEis not a valid Win32 application.
And the prompt I used was just a copy and paste of what you said.
C:\Users\john\CONTEST06.EXEis not a valid Win32 application.
And the prompt I used was just a copy and paste of what you said.
-
- Former Expert
- Posts: 23
- Joined: Tue Oct 22, 2013 10:59 am
- Occupation: Student: 11th grade
- Project Question: "Ask an Expert" volunteer
- Project Due Date: n/a
- Project Status: Not applicable
Re: Running the Nanorg project
Hi AgentD1,
Without looking at how you run your program, I am running out of ideas on how to help you debug.
Here are the steps I took to run the program.
First I downloaded CompSci_p021_Files.zip from Science Buddies's Project Website.
Then I unzipped this file into C:\Users\Chang
Then I opened the MS-DOS command prompt (by running the cmd program).
At the command prompt, I changed directory to where CONTEST06.EXE was located (cd C:\Users\Chang).
I did a list directory command (dir) just to show you that CONTEST06.EXE is in that directory.
Then I typed in CONTEST06.EXE to run the program. The program responded back and told me what I needed to supply as parameters.
(If I type in "CONTEST06.EXE -p:samplebot.asm", then the program will run correctly.)
Below is a snapshot of how I ran the program:
The commands I typed are highlighted in blue font.
C:\Users\thyang>cd C:\Users\Chang
C:\Users\Chang>dir
Volume in drive C has no label.
Volume Serial Number is 28B5-6AB9
Directory of C:\Users\Chang
01/07/2014 06:59 PM <DIR> .
01/07/2014 06:59 PM <DIR> ..
02/08/2006 05:07 PM 143,360 contest06.exe
07/13/2006 11:59 AM 1,351 samplebot.asm
2 File(s) 144,711 bytes
2 Dir(s) 451,621,736,448 bytes free
C:\Users\Chang>contest06.exe
Symantec 2006 University Programming Competition
(C)Copyright 2006, Symantec Corporation
usage: contest06 -option1:value1 -option2:value2 ...
-g:X Single-step debug the organism specified by X (a letter)
-i:#### Specify # of iterations (default=1000000)
-l:log.txt Log organism program trace to log.txt
-p:org.asm *Specify the player's organism source file
-q Run in quiet mode (no display)
-s:#### Specify the randomization seed
-z:org.asm Show the disassembly and bytecode for this organism
* means required field
No player file specified
Without looking at how you run your program, I am running out of ideas on how to help you debug.
Here are the steps I took to run the program.
First I downloaded CompSci_p021_Files.zip from Science Buddies's Project Website.
Then I unzipped this file into C:\Users\Chang
Then I opened the MS-DOS command prompt (by running the cmd program).
At the command prompt, I changed directory to where CONTEST06.EXE was located (cd C:\Users\Chang).
I did a list directory command (dir) just to show you that CONTEST06.EXE is in that directory.
Then I typed in CONTEST06.EXE to run the program. The program responded back and told me what I needed to supply as parameters.
(If I type in "CONTEST06.EXE -p:samplebot.asm", then the program will run correctly.)
Below is a snapshot of how I ran the program:
The commands I typed are highlighted in blue font.
C:\Users\thyang>cd C:\Users\Chang
C:\Users\Chang>dir
Volume in drive C has no label.
Volume Serial Number is 28B5-6AB9
Directory of C:\Users\Chang
01/07/2014 06:59 PM <DIR> .
01/07/2014 06:59 PM <DIR> ..
02/08/2006 05:07 PM 143,360 contest06.exe
07/13/2006 11:59 AM 1,351 samplebot.asm
2 File(s) 144,711 bytes
2 Dir(s) 451,621,736,448 bytes free
C:\Users\Chang>contest06.exe
Symantec 2006 University Programming Competition
(C)Copyright 2006, Symantec Corporation
usage: contest06 -option1:value1 -option2:value2 ...
-g:X Single-step debug the organism specified by X (a letter)
-i:#### Specify # of iterations (default=1000000)
-l:log.txt Log organism program trace to log.txt
-p:org.asm *Specify the player's organism source file
-q Run in quiet mode (no display)
-s:#### Specify the randomization seed
-z:org.asm Show the disassembly and bytecode for this organism
* means required field
No player file specified
-
- Posts: 21
- Joined: Fri Sep 20, 2013 4:52 am
- Occupation: Student
- Project Question: How to program NANORGs?
- Project Due Date: January.
- Project Status: Not applicable
Re: Running the Nanorg project
Fixed it. However I ran into another problem. When I open it up the screen starts shaking like crazy and then when I lcick it stops. Every time I do it I get a different number of ticks and score.
-
- Former Expert
- Posts: 23
- Joined: Tue Oct 22, 2013 10:59 am
- Occupation: Student: 11th grade
- Project Question: "Ask an Expert" volunteer
- Project Due Date: n/a
- Project Status: Not applicable
Re: Running the Nanorg project
Hi AgentD1,
If you don't specify a "seed", then each time you run the program, it will start with a different "random seed" and you will get a different result each time.
You could specify a fixed seed with -s option, so that it will be easier for you to debug.
For example,
CONTEST06.EXE -s:1000 -p:samplebot.asm
If you stop the program at a different tick count without letting it run to completion, then you will see a different score even if you use a fixed seed.
It takes a while to run through the default 1000000 ticks (the default iteration count). You could also change this default iteration count by using the -i option.
JChang
If you don't specify a "seed", then each time you run the program, it will start with a different "random seed" and you will get a different result each time.
You could specify a fixed seed with -s option, so that it will be easier for you to debug.
For example,
CONTEST06.EXE -s:1000 -p:samplebot.asm
If you stop the program at a different tick count without letting it run to completion, then you will see a different score even if you use a fixed seed.
It takes a while to run through the default 1000000 ticks (the default iteration count). You could also change this default iteration count by using the -i option.
JChang
-
- Posts: 21
- Joined: Fri Sep 20, 2013 4:52 am
- Occupation: Student
- Project Question: How to program NANORGs?
- Project Due Date: January.
- Project Status: Not applicable
Re: Running the Nanorg project
Thanks for all the help. So all I use to debug is the stuff at the end right? Thanks again.
-
- Former Expert
- Posts: 23
- Joined: Tue Oct 22, 2013 10:59 am
- Occupation: Student: 11th grade
- Project Question: "Ask an Expert" volunteer
- Project Due Date: n/a
- Project Status: Not applicable
Re: Running the Nanorg project
If you enter the command CONTEST06.EXE without specifying any options, the program will list all the options that you can use.
To debug, you should use a fixed seed every time (by using -s option) and you can monitor a specific organism by using the -g option.
For example, the following command use 1 as the seed and will monitor (or debug) the organism represented by the letter A. With the -g option, you could run your program tick by tick by hitting the return (or enter) key repeatedly.
CONTEST06.EXE -s:1 -g:A -p:samplebot.asm -l:test.log
JChang
To debug, you should use a fixed seed every time (by using -s option) and you can monitor a specific organism by using the -g option.
For example, the following command use 1 as the seed and will monitor (or debug) the organism represented by the letter A. With the -g option, you could run your program tick by tick by hitting the return (or enter) key repeatedly.
CONTEST06.EXE -s:1 -g:A -p:samplebot.asm -l:test.log
JChang
-
- Posts: 21
- Joined: Fri Sep 20, 2013 4:52 am
- Occupation: Student
- Project Question: How to program NANORGs?
- Project Due Date: January.
- Project Status: Not applicable
Re: Running the Nanorg project
My research teacher was wondering if I could have an actual display of the NANORGs because right now my trifold board is mostly text. But there's no way to do that right?
-
- Posts: 21
- Joined: Fri Sep 20, 2013 4:52 am
- Occupation: Student
- Project Question: How to program NANORGs?
- Project Due Date: January.
- Project Status: Not applicable
NANORG project ideas
Does anybody have any ideas for the project? I need to design them as individual hypotheses. And does anyone have any good tutorials to learn the NANORG language?
-
- Posts: 21
- Joined: Fri Sep 20, 2013 4:52 am
- Occupation: Student
- Project Question: How to program NANORGs?
- Project Due Date: January.
- Project Status: Not applicable
Re: Running the Nanorg project
Nevermind the window wasn't big enough.
-
- Posts: 21
- Joined: Fri Sep 20, 2013 4:52 am
- Occupation: Student
- Project Question: How to program NANORGs?
- Project Due Date: January.
- Project Status: Not applicable
Re: NANORG project ideas
I can't seem to understand the language and it seems different from regular assembler...